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