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.



229
230
231
232
233
234
235
# File 'lib/mysigner/client.rb', line 229

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.



227
228
229
# File 'lib/mysigner/client.rb', line 227

def details
  @details
end

#error_codeObject (readonly)

Returns the value of attribute error_code.



227
228
229
# File 'lib/mysigner/client.rb', line 227

def error_code
  @error_code
end

#suggestionObject (readonly)

Returns the value of attribute suggestion.



227
228
229
# File 'lib/mysigner/client.rb', line 227

def suggestion
  @suggestion
end

#timestampObject (readonly)

Returns the value of attribute timestamp.



227
228
229
# File 'lib/mysigner/client.rb', line 227

def timestamp
  @timestamp
end