module Asana::Errors

Public: Defines the different errors that the Asana API may throw, which the client code may want to catch.

Constants

APIError

Public: A generic, catch-all API error. It contains the whole response object for debugging purposes.

Note: This exception should never be raised when there exists a more specific subclass.

Forbidden

Public: A 403 error. Raised when the user doesn’t have permission to access the requested resource or to perform the requested action on it.

InvalidRequest

Public: A 400 error. Raised when the request was malformed or missing some parameters. It contains a list of errors indicating the specific problems.

NotAuthorized

Public: A 401 error. Raised when the credentials used are invalid and the user could not be authenticated.

NotFound

Public: A 404 error. Raised when the requested resource doesn’t exist.

RateLimitEnforced

Public: A 429 error. Raised when the Asana API enforces rate-limiting on the client to avoid overload. It contains the number of seconds to wait before retrying the operation.

ServerError

Public: A 500 error. Raised when there is a problem in the Asana API server. It contains a unique phrase that can be used to identify the problem when contacting developer support.