View Source LogSnag.Error exception (LogSnag v1.0.0)

An error caused by a request to the LogSnag API.

Link to this section Summary

Link to this section Types

@type error_type() :: :system | :user
@type reason() :: :invalid_auth_header | :network_error | :unknown | :validation_error
@type t() :: %LogSnag.Error{
  __exception__: term(),
  context: any(),
  reason: reason(),
  type: error_type()
}

Link to this section Functions

@spec new(Keyword.t()) :: t()