Exception: Mysigner::ClientError
- Inherits:
-
StandardError
- Object
- StandardError
- Mysigner::ClientError
- Defined in:
- lib/mysigner/client.rb
Overview
Custom errors
Direct Known Subclasses
ConnectionError, ForbiddenError, 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.
180 181 182 183 184 185 186 |
# File 'lib/mysigner/client.rb', line 180 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.
178 179 180 |
# File 'lib/mysigner/client.rb', line 178 def details @details end |
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code.
178 179 180 |
# File 'lib/mysigner/client.rb', line 178 def error_code @error_code end |
#suggestion ⇒ Object (readonly)
Returns the value of attribute suggestion.
178 179 180 |
# File 'lib/mysigner/client.rb', line 178 def suggestion @suggestion end |
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp.
178 179 180 |
# File 'lib/mysigner/client.rb', line 178 def @timestamp end |