Exception: JSONAPI::Exceptions::RecordLocked
- Defined in:
- lib/jsonapi/exceptions.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
Returns the value of attribute message.
Attributes inherited from Error
Instance Method Summary collapse
- #errors ⇒ Object
-
#initialize(message, error_object_overrides = {}) ⇒ RecordLocked
constructor
A new instance of RecordLocked.
Methods inherited from Error
Constructor Details
#initialize(message, error_object_overrides = {}) ⇒ RecordLocked
Returns a new instance of RecordLocked.
436 437 438 439 |
# File 'lib/jsonapi/exceptions.rb', line 436 def initialize(, error_object_overrides = {}) = super(error_object_overrides) end |
Instance Attribute Details
#message ⇒ Object
Returns the value of attribute message.
434 435 436 |
# File 'lib/jsonapi/exceptions.rb', line 434 def end |
Instance Method Details
#errors ⇒ Object
441 442 443 444 445 446 447 |
# File 'lib/jsonapi/exceptions.rb', line 441 def errors [create_error_object(code: JSONAPI::LOCKED, status: :locked, title: I18n.translate('jsonapi-resources.exceptions.record_locked.title', default: 'Locked resource'), detail: "#{message}")] end |