Exception: Apimaster::MissingError

Inherits:
NormalError
  • Object
show all
Defined in:
lib/apimaster/error.rb

Instance Attribute Summary

Attributes inherited from NormalError

#code, #error, #field, #resource

Instance Method Summary collapse

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