Sha256: 231b787ea031bb3be93e2ddc30ff87ebd42050b595a23d0d8c4716326ff30010

Contents?: true

Size: 1.09 KB

Versions: 6

Compression:

Stored size: 1.09 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
end
# exception for unauthorized requests, if you see it, probably Bearer Token is not set correctly
class Auth0::Unauthorized  < Auth0::Exception; end
# exception for not found resource, you query for an unexistent resource, or wrong path
class Auth0::NotFound      < Auth0::Exception; end
# exception for unknown error
class Auth0::Unsupported   < Auth0::Exception; end
# exception for server error
class Auth0::ServerError   < Auth0::Exception; end
# exception for incorrect request, you've sent wrong params
class Auth0::BadRequest    < Auth0::Exception; end
# exception for unset user_id, this might cause removal of all users, or other unexpected bahaviour
class Auth0::UserIdIsBlank < Auth0::Exception; end
# Api v2 access denied
class Auth0::AccessDenied  < Auth0::Exception; end
# Invalid parameter passed, e.g. empty where ID is required
class Auth0::InvalidParameter < Auth0::Exception; end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
auth0-3.2.0 lib/auth0/exception.rb
auth0-3.1.2 lib/auth0/exception.rb
auth0-3.1.1 lib/auth0/exception.rb
auth0-3.1.0 lib/auth0/exception.rb
auth0-3.0.0 lib/auth0/exception.rb
auth0-ruby-0.10 lib/auth0/exception.rb