Timber v0.4.5 Timber.Events.ExceptionEvent

The exception event is used to track exceptions.

Timber can automatically keep track of errors reported by the VM by hooking into the SASL reporting system to collect exception information, so it should be unnecessary to track exceptions manually. See Timber.ErrorLogger for more details.

Summary

Types

backtrace_entry()
backtrace_entry :: %{function: String.t, file: String.t | nil, line: non_neg_integer | nil}
stacktrace_entry()
stacktrace_entry :: {module, atom, arity, [file: IO.chardata, line: non_neg_integer] | []}
t()
t :: %Timber.Events.ExceptionEvent{backtrace: [backtrace_entry] | [], data: map | nil, message: String.t, name: String.t}

Functions

message(exception_event)
message(t) :: IO.chardata

Callback implementation for Timber.Event.message/1.

new(error, stacktrace \\ [])
new(atom | Exception.t, [stacktrace_entry] | []) :: t