Exception: JSONAPI::Exceptions::RecordLocked
- Defined in:
- lib/jsonapi/exceptions.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
Returns the value of attribute message.
Instance Method Summary collapse
- #errors ⇒ Object
-
#initialize(message) ⇒ RecordLocked
constructor
A new instance of RecordLocked.
Constructor Details
#initialize(message) ⇒ RecordLocked
Returns a new instance of RecordLocked.
291 292 293 |
# File 'lib/jsonapi/exceptions.rb', line 291 def initialize() = end |
Instance Attribute Details
#message ⇒ Object
Returns the value of attribute message.
290 291 292 |
# File 'lib/jsonapi/exceptions.rb', line 290 def end |
Instance Method Details
#errors ⇒ Object
295 296 297 298 299 300 |
# File 'lib/jsonapi/exceptions.rb', line 295 def errors [JSONAPI::Error.new(code: JSONAPI::LOCKED, status: :locked, title: 'Locked resource', detail: "#{message}")] end |