Exception: TimestampAPI::ResourceNotFound
- Inherits:
-
StandardError
- Object
- StandardError
- TimestampAPI::ResourceNotFound
- Defined in:
- lib/timestamp_api/errors.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#klass ⇒ Object
readonly
Returns the value of attribute klass.
Instance Method Summary collapse
-
#initialize(klass, id) ⇒ ResourceNotFound
constructor
A new instance of ResourceNotFound.
- #message ⇒ Object
Constructor Details
#initialize(klass, id) ⇒ ResourceNotFound
Returns a new instance of ResourceNotFound.
75 76 77 78 |
# File 'lib/timestamp_api/errors.rb', line 75 def initialize(klass, id) @klass = klass @id = id end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
73 74 75 |
# File 'lib/timestamp_api/errors.rb', line 73 def id @id end |
#klass ⇒ Object (readonly)
Returns the value of attribute klass.
73 74 75 |
# File 'lib/timestamp_api/errors.rb', line 73 def klass @klass end |
Instance Method Details
#message ⇒ Object
80 81 82 |
# File 'lib/timestamp_api/errors.rb', line 80 def "No `#{klass}` was found with id `#{id}` (API returned 404)" end |