Exception: OpenReceive::Server::InternalHostError
- Inherits:
-
StandardError
- Object
- StandardError
- OpenReceive::Server::InternalHostError
- Defined in:
- lib/openreceive/server/errors.rb
Overview
500 INTERNAL raised deliberately (for example: the host resolved an order without an amount). Unlike an unexpected exception, the message is payer-safe by construction and stays on the wire — mirroring the JS handler's HttpError(500, "INTERNAL", ...).
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 = "Internal server error.") ⇒ InternalHostError
constructor
A new instance of InternalHostError.
Constructor Details
#initialize(message = "Internal server error.") ⇒ InternalHostError
Returns a new instance of InternalHostError.
87 88 89 90 91 |
# File 'lib/openreceive/server/errors.rb', line 87 def initialize( = "Internal server error.") super() @status = 500 @code = "INTERNAL" end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
85 86 87 |
# File 'lib/openreceive/server/errors.rb', line 85 def code @code end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
85 86 87 |
# File 'lib/openreceive/server/errors.rb', line 85 def status @status end |