Exception: Velix::VelixError
- Inherits:
-
StandardError
- Object
- StandardError
- Velix::VelixError
- Defined in:
- lib/velix/error.rb
Direct Known Subclasses
AuthError, BiometricError, NotFoundError, RateLimitError, ServerError
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(message, status: nil, code: nil) ⇒ VelixError
constructor
A new instance of VelixError.
Constructor Details
#initialize(message, status: nil, code: nil) ⇒ VelixError
Returns a new instance of VelixError.
7 8 9 10 11 |
# File 'lib/velix/error.rb', line 7 def initialize(, status: nil, code: nil) super() @status = status @code = code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
5 6 7 |
# File 'lib/velix/error.rb', line 5 def code @code end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
5 6 7 |
# File 'lib/velix/error.rb', line 5 def status @status end |