Exception: Auth0::Exception

Inherits:
StandardError
  • Object
show all
Defined in:
lib/auth0/exception.rb

Overview

Default exception in namespace of Auth0 if you want to catch all exceptions, then you should use this one. Network exceptions are not included

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, error_data = {}) ⇒ Exception

Returns a new instance of Exception.



7
8
9
10
# File 'lib/auth0/exception.rb', line 7

def initialize(message,error_data={})
  super(message)
  @error_data = error_data
end

Instance Attribute Details

#error_dataObject (readonly)

Returns the value of attribute error_data.



6
7
8
# File 'lib/auth0/exception.rb', line 6

def error_data
  @error_data
end