Exception: Mysigner::ClientError
- Inherits:
-
StandardError
- Object
- StandardError
- Mysigner::ClientError
- Defined in:
- lib/mysigner/client.rb
Overview
Custom errors
Direct Known Subclasses
ConnectionError, ForbiddenError, InsecureUrlError, NotFoundError, RateLimitError, ServerError, TimeoutError, UnauthorizedError, ValidationError
Instance Attribute Summary collapse
-
#details ⇒ Object
readonly
Returns the value of attribute details.
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
-
#suggestion ⇒ Object
readonly
Returns the value of attribute suggestion.
-
#timestamp ⇒ Object
readonly
Returns the value of attribute timestamp.
Instance Method Summary collapse
-
#initialize(message, error_code: nil, suggestion: nil, details: nil, timestamp: nil) ⇒ ClientError
constructor
A new instance of ClientError.
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(, error_code: nil, suggestion: nil, details: nil, timestamp: nil) super() @error_code = error_code @suggestion = suggestion @details = details @timestamp = end |
Instance Attribute Details
#details ⇒ Object (readonly)
Returns the value of attribute details.
227 228 229 |
# File 'lib/mysigner/client.rb', line 227 def details @details end |
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code.
227 228 229 |
# File 'lib/mysigner/client.rb', line 227 def error_code @error_code end |
#suggestion ⇒ Object (readonly)
Returns the value of attribute suggestion.
227 228 229 |
# File 'lib/mysigner/client.rb', line 227 def suggestion @suggestion end |
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp.
227 228 229 |
# File 'lib/mysigner/client.rb', line 227 def @timestamp end |