Exception: OpenReceive::Server::NotFoundError
- Inherits:
-
StandardError
- Object
- StandardError
- OpenReceive::Server::NotFoundError
- Defined in:
- lib/openreceive/server/errors.rb
Overview
404 — the order or checkout was not found.
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(message = "Not found.") ⇒ NotFoundError
constructor
A new instance of NotFoundError.
Constructor Details
#initialize(message = "Not found.") ⇒ NotFoundError
Returns a new instance of NotFoundError.
51 52 53 54 55 |
# File 'lib/openreceive/server/errors.rb', line 51 def initialize( = "Not found.") super() @status = 404 @code = "NOT_FOUND" end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
49 50 51 |
# File 'lib/openreceive/server/errors.rb', line 49 def code @code end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
49 50 51 |
# File 'lib/openreceive/server/errors.rb', line 49 def status @status end |