Sha256: 01aad154ac42b7906f0f07570b2b84dc61be5a2c3c8280163f5584e382e102a3

Contents?: true

Size: 1.51 KB

Versions: 4

Compression:

Stored size: 1.51 KB

Contents

module Auth0
  # Default exception in namespace of Auth0
  # if you want to catch all exceptions, then you should use this one.
  # Network exceptions are not included
  class Exception < StandardError; end
  # exception for unauthorized requests, if you see it,
  # probably Bearer Token is not set correctly
  class Unauthorized < Auth0::Exception; end
  # exception for not found resource, you query for an
  # unexistent resource, or wrong path
  class NotFound < Auth0::Exception; end
  # exception for unknown error
  class Unsupported < Auth0::Exception; end
  # exception for server error
  class ServerError < Auth0::Exception; end
  # exception for incorrect request, you've sent wrong params
  class BadRequest < Auth0::Exception; end
  # exception for timeouts
  class RequestTimeout < Auth0::Exception; end
  # exception for unset user_id, this might cause removal of
  # all users, or other unexpected behaviour
  class MissingUserId < Auth0::Exception; end
  # exception for unset client_id
  class MissingClientId < Auth0::Exception; end
  # exception for an unset parameter
  class MissingParameter < Auth0::Exception; end
  # Api v2 access denied
  class AccessDenied < Auth0::Exception; end
  # Invalid parameter passed, e.g. empty where ID is required
  class InvalidParameter < Auth0::Exception; end
  # Invalid Auth0 credentials either client_id/secret for API v1
  # or JWT for API v2/
  class InvalidCredentials < Auth0::Exception; end
  # Invalid Auth0 API namespace
  class InvalidApiNamespace < Auth0::Exception; end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
auth0-4.7.0 lib/auth0/exception.rb
auth0-4.6.0 lib/auth0/exception.rb
auth0-4.5.0 lib/auth0/exception.rb
auth0-4.4.0 lib/auth0/exception.rb