Exception: Mysigner::ClientError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/mysigner/client.rb

Overview

Custom errors

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, error_code: nil, suggestion: nil, details: nil, timestamp: nil) ⇒ ClientError

Returns a new instance of ClientError.



180
181
182
183
184
185
186
# File 'lib/mysigner/client.rb', line 180

def initialize(message, error_code: nil, suggestion: nil, details: nil, timestamp: nil)
  super(message)
  @error_code = error_code
  @suggestion = suggestion
  @details = details
  @timestamp = timestamp
end

Instance Attribute Details

#detailsObject (readonly)

Returns the value of attribute details.



178
179
180
# File 'lib/mysigner/client.rb', line 178

def details
  @details
end

#error_codeObject (readonly)

Returns the value of attribute error_code.



178
179
180
# File 'lib/mysigner/client.rb', line 178

def error_code
  @error_code
end

#suggestionObject (readonly)

Returns the value of attribute suggestion.



178
179
180
# File 'lib/mysigner/client.rb', line 178

def suggestion
  @suggestion
end

#timestampObject (readonly)

Returns the value of attribute timestamp.



178
179
180
# File 'lib/mysigner/client.rb', line 178

def timestamp
  @timestamp
end