Exception: TsJsonApi::ResourceNotFound

Inherits:
Exception
  • Object
show all
Defined in:
lib/ts_json_api/exceptions.rb

Overview

Not found

Instance Attribute Summary

Attributes inherited from Exception

#http_code, #message, #rest_client_exception

Instance Method Summary collapse

Methods inherited from Exception

#to_s

Constructor Details

#initialize(*args) ⇒ ResourceNotFound

Returns a new instance of ResourceNotFound.



61
62
63
64
65
66
# File 'lib/ts_json_api/exceptions.rb', line 61

def initialize(*args)
	options = args.extract_options!
	options.merge! http_code: 404
	super options
	self.message = "Resource not found"
end