Exception: JSONAPI::Exceptions::DocumentExceptions::InvalidDocument

Inherits:
StandardError
  • Object
show all
Defined in:
lib/easy/jsonapi/exceptions/document_exceptions.rb

Overview

A more specific standard error to raise when an exception is found

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status_code) ⇒ InvalidDocument

Init w a status code, so that it can be accessed when rescuing an exception



50
51
52
53
# File 'lib/easy/jsonapi/exceptions/document_exceptions.rb', line 50

def initialize(status_code)
  @status_code = status_code
  super
end

Instance Attribute Details

#status_codeObject

Returns the value of attribute status_code.



47
48
49
# File 'lib/easy/jsonapi/exceptions/document_exceptions.rb', line 47

def status_code
  @status_code
end