Exception: Okonomi::Taskmanager::Resource::TaskClientError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/okonomi/taskmanager/resource.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message)
  @code = code
  @uri = uri
  @body = body
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



121
122
123
# File 'lib/okonomi/taskmanager/resource.rb', line 121

def body
  @body
end

#codeObject (readonly)

Returns the value of attribute code.



121
122
123
# File 'lib/okonomi/taskmanager/resource.rb', line 121

def code
  @code
end

#uriObject (readonly)

Returns the value of attribute uri.



121
122
123
# File 'lib/okonomi/taskmanager/resource.rb', line 121

def uri
  @uri
end