Exceptions

List of exceptions that Pyot uses.

Module: pyot.core.exceptions

class PyotException

Extends: Exception

Base Pyot exception class.

class NotFindable

Extends: PyotException

Message: [600] Pipeline token matching pair not found

class SessionNotFound

Extends: PyotException

Message: [601] Session Not Found.

class DecodeError

Extends: PyotException

Message: [602] AioHttp took too long to decode the response.

class NoContent

Extends: PyotException

Message: [204] No Content.

class NotFound

Extends: PyotException

Message: [404] Data Not Found.

class MethodNotAllowed

Extends: PyotException

Message: [405] Method Not Allowed.

class ServerError

Extends: PyotException

Messages: Mapping[int, str]

  • 500: Internal Server Error

  • 502: Bad Gateway

  • 503: Service Unavailable

  • 504: Gateway Timeout [{code}] {self.messages[code]}.

class RateLimited

Extends: PyotException

Message: [429] Rate limit Exceeded.

class Forbidden

Extends: PyotException

Message: [403] Access Forbidden.

class Unauthorized

Extends: PyotException

Message: [401] Access Unauthorized.

class BadRequest

Extends: PyotException

Message: [400] Bad Request.

class Timeout

Extends: PyotException

Message: [408] Timeout Connection.

class UnidentifiedResponse

Extends: PyotException

Message: [{code}] Unidentified Response {code}.

Last updated