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
270 271 272 |
# File 'lib/jsonapi/exceptions.rb', line 270 def initialize() = end |
Instance Attribute Details
#message ⇒ Object
Returns the value of attribute message.
269 270 271 |
# File 'lib/jsonapi/exceptions.rb', line 269 def end |
Instance Method Details
#errors ⇒ Object
274 275 276 277 278 279 |
# File 'lib/jsonapi/exceptions.rb', line 274 def errors [JSONAPI::Error.new(code: JSONAPI::LOCKED, status: :locked, title: 'Locked resource', detail: "#{message}")] end |