Exception: Okonomi::Taskmanager::Resource::TaskClientError
- Inherits:
-
StandardError
- Object
- StandardError
- Okonomi::Taskmanager::Resource::TaskClientError
- Defined in:
- lib/okonomi/taskmanager/resource.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(code:, message:, uri:, body: nil) ⇒ TaskClientError
constructor
A new instance of TaskClientError.
Constructor Details
#initialize(code:, message:, uri:, body: nil) ⇒ TaskClientError
Returns a new instance of TaskClientError.
123 124 125 126 127 128 |
# File 'lib/okonomi/taskmanager/resource.rb', line 123 def initialize(code:, message:, uri:, body: nil) super() @code = code @uri = uri @body = body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
121 122 123 |
# File 'lib/okonomi/taskmanager/resource.rb', line 121 def body @body end |
#code ⇒ Object (readonly)
Returns the value of attribute code.
121 122 123 |
# File 'lib/okonomi/taskmanager/resource.rb', line 121 def code @code end |
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
121 122 123 |
# File 'lib/okonomi/taskmanager/resource.rb', line 121 def uri @uri end |