Exception: Hitch::MCP::Internal::VerifiedRequest::Failure
- Inherits:
-
StandardError
- Object
- StandardError
- Hitch::MCP::Internal::VerifiedRequest::Failure
- Defined in:
- app/models/hitch/mcp/internal/verified_request.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#http_status ⇒ Object
readonly
Returns the value of attribute http_status.
-
#request_id ⇒ Object
readonly
Returns the value of attribute request_id.
Instance Method Summary collapse
-
#initialize(http_status:, code:, message:, request_id: nil, data: nil) ⇒ Failure
constructor
A new instance of Failure.
Constructor Details
#initialize(http_status:, code:, message:, request_id: nil, data: nil) ⇒ Failure
Returns a new instance of Failure.
17 18 19 20 21 22 23 |
# File 'app/models/hitch/mcp/internal/verified_request.rb', line 17 def initialize(http_status:, code:, message:, request_id: nil, data: nil) @http_status = http_status @code = code @request_id = request_id @data = data super() end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
15 16 17 |
# File 'app/models/hitch/mcp/internal/verified_request.rb', line 15 def code @code end |
#data ⇒ Object (readonly)
Returns the value of attribute data.
15 16 17 |
# File 'app/models/hitch/mcp/internal/verified_request.rb', line 15 def data @data end |
#http_status ⇒ Object (readonly)
Returns the value of attribute http_status.
15 16 17 |
# File 'app/models/hitch/mcp/internal/verified_request.rb', line 15 def http_status @http_status end |
#request_id ⇒ Object (readonly)
Returns the value of attribute request_id.
15 16 17 |
# File 'app/models/hitch/mcp/internal/verified_request.rb', line 15 def request_id @request_id end |