Exception: Apiwork::DomainError

Inherits:
ConstraintError show all
Defined in:
lib/apiwork/domain_error.rb

Instance Attribute Summary

Attributes inherited from ConstraintError

#issues

Instance Method Summary collapse

Methods inherited from ConstraintError

#initialize, #status

Constructor Details

This class inherits a constructor from Apiwork::ConstraintError

Instance Method Details

#error_codeObject



9
10
11
# File 'lib/apiwork/domain_error.rb', line 9

def error_code
  @error_code ||= ErrorCode.find!(:unprocessable_entity)
end

#layerObject



5
6
7
# File 'lib/apiwork/domain_error.rb', line 5

def layer
  :domain
end