Exception: Enotas::EnotasError
- Inherits:
-
StandardError
- Object
- StandardError
- Enotas::EnotasError
- Defined in:
- lib/enotas/errors/enotas_error.rb
Instance Attribute Summary collapse
-
#http_message ⇒ Object
readonly
Returns the value of attribute http_message.
-
#http_status ⇒ Object
readonly
Returns the value of attribute http_status.
-
#json_message ⇒ Object
readonly
Returns the value of attribute json_message.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(http_status = nil, json_message = nil, http_message = nil, message = nil) ⇒ EnotasError
constructor
A new instance of EnotasError.
Constructor Details
#initialize(http_status = nil, json_message = nil, http_message = nil, message = nil) ⇒ EnotasError
Returns a new instance of EnotasError.
5 6 7 8 9 10 |
# File 'lib/enotas/errors/enotas_error.rb', line 5 def initialize(http_status=nil, =nil, =nil, =nil) @http_status = http_status @json_message = @http_message = @message = end |
Instance Attribute Details
#http_message ⇒ Object (readonly)
Returns the value of attribute http_message.
3 4 5 |
# File 'lib/enotas/errors/enotas_error.rb', line 3 def @http_message end |
#http_status ⇒ Object (readonly)
Returns the value of attribute http_status.
3 4 5 |
# File 'lib/enotas/errors/enotas_error.rb', line 3 def http_status @http_status end |
#json_message ⇒ Object (readonly)
Returns the value of attribute json_message.
3 4 5 |
# File 'lib/enotas/errors/enotas_error.rb', line 3 def @json_message end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
3 4 5 |
# File 'lib/enotas/errors/enotas_error.rb', line 3 def @message end |