Exception: SimpleAuthSdk::Exception

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

Overview

Default exception in namespace of SimpleAuthSdk 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.



10
11
12
13
# File 'lib/simple_auth_sdk/exception.rb', line 10

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.



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

def error_data
  @error_data
end