Exception: Apimaster::MissingError
- Inherits:
-
NormalError
- Object
- StandardError
- NormalError
- Apimaster::MissingError
- Defined in:
- lib/apimaster/error.rb
Instance Attribute Summary
Attributes inherited from NormalError
#code, #error, #field, #resource
Instance Method Summary collapse
-
#initialize(resource = nil) ⇒ MissingError
constructor
A new instance of MissingError.
Constructor Details
#initialize(resource = nil) ⇒ MissingError
Returns a new instance of MissingError.
26 27 28 |
# File 'lib/apimaster/error.rb', line 26 def initialize(resource = nil) super("Resource '#{resource}' does not exist.", 410, :missing, resource) end |