Exception: RunApi::Core::ConflictError

Inherits:
Error
  • Object
show all
Defined in:
lib/runapi/core/errors.rb

Overview

Raised when request conflicts with current resource state (HTTP 409).

Constant Summary

Constants inherited from Error

Error::DEFAULT_MESSAGES, Error::STATUS_MAP

Instance Attribute Summary

Attributes inherited from Error

#details, #request_id, #status

Instance Method Summary collapse

Methods inherited from Error

from_response, #to_h

Constructor Details

#initialize(message = "Conflict", **kwargs) ⇒ ConflictError

Returns a new instance of ConflictError.



234
235
236
# File 'lib/runapi/core/errors.rb', line 234

def initialize(message = "Conflict", **kwargs)
  super(message, status: 409, **kwargs)
end