Exception: Togul::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Togul::Error
- Defined in:
- lib/togul/error.rb
Instance Attribute Summary collapse
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
-
#status_code ⇒ Object
readonly
Returns the value of attribute status_code.
Instance Method Summary collapse
-
#initialize(message = nil, status_code: nil, error_code: nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message = nil, status_code: nil, error_code: nil) ⇒ Error
Returns a new instance of Error.
7 8 9 10 11 |
# File 'lib/togul/error.rb', line 7 def initialize( = nil, status_code: nil, error_code: nil) super() @status_code = status_code @error_code = error_code end |
Instance Attribute Details
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code.
5 6 7 |
# File 'lib/togul/error.rb', line 5 def error_code @error_code end |
#status_code ⇒ Object (readonly)
Returns the value of attribute status_code.
5 6 7 |
# File 'lib/togul/error.rb', line 5 def status_code @status_code end |