class Honeybadger::HttpPayload
- Honeybadger::HttpPayload
- Honeybadger::Payload
- Reference
- Object
Overview
An HttpPayload renders request metadata in addition to the Exception data
provided by Payload
, and should be used for errors which happen during an
HTTP::Server request cycle.
Defined in:
honeybadger/http_payload.crConstructors
Instance Method Summary
-
#exception : Exception?
:inherit:
-
#http_request : HTTP::Request
The request in which the exception was triggered.
-
#request_json(builder)
Renders the "request" stanza of the json payload.
Instance methods inherited from class Honeybadger::Payload
context_json(builder)
context_json,
error_class : String | Nil
error_class,
error_class=(error_class : String | Nil)
error_class=,
error_message : String | Nil
error_message,
error_message=(error_message : String | Nil)
error_message=,
request_json(builder)
request_json,
set_context(hash_context : Hash) : Nil
set_context,
to_json(builder : JSON::Builder)
to_json
Constructor methods inherited from class Honeybadger::Payload
new(exception : Exception)new(message : String, *, error_class : String | Nil = nil) new