ExceptionInfo
struct
Defined in src/logit/events/event.cr:285
Structured exception information for log events.
Captures exception details in a format suitable for logging and analysis. Created automatically when an exception occurs in an instrumented method.
Constructors
.from_exception(ex : Exception) : self
Creates an ExceptionInfo from a Crystal exception.
.new(type : String, message : String, stacktrace : Nil | Array(String) = nil)
Creates a new ExceptionInfo with the given details.
Instance Methods
#message
The exception message.
#stacktrace
Stack trace as an array of strings, or nil if not available.
#type
The exception class name (e.g., "ArgumentError").