Exception: Synapsis::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Synapsis::Error
- Defined in:
- lib/synapsis_v3/error.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
-
#http_code ⇒ Object
readonly
Returns the value of attribute http_code.
-
#success ⇒ Object
readonly
Returns the value of attribute success.
Instance Method Summary collapse
-
#initialize(error_code:, http_code:, error:, success:) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(error_code:, http_code:, error:, success:) ⇒ Error
Returns a new instance of Error.
4 5 6 7 8 9 |
# File 'lib/synapsis_v3/error.rb', line 4 def initialize(error_code:, http_code:, error:, success:) @error = error @http_code = http_code @error_code = error_code @success = success end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
2 3 4 |
# File 'lib/synapsis_v3/error.rb', line 2 def error @error end |
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code.
2 3 4 |
# File 'lib/synapsis_v3/error.rb', line 2 def error_code @error_code end |
#http_code ⇒ Object (readonly)
Returns the value of attribute http_code.
2 3 4 |
# File 'lib/synapsis_v3/error.rb', line 2 def http_code @http_code end |
#success ⇒ Object (readonly)
Returns the value of attribute success.
2 3 4 |
# File 'lib/synapsis_v3/error.rb', line 2 def success @success end |