View Source Sentry.ClientError exception (Sentry v10.8.0)
An exception struct that represents an error returned by Sentry when reporting an error or a message.
This struct is designed to manage and handle errors originating from operations
in the Sentry client. The :reason
field contains the cause of the error
as an atom or tuple (see reason/0
).
To raise instances of this exception, you can use raise/1
. When crafting
formatted error messages for purposes such as logging or presentation, consider
leveraging Exception.message/1
.
Summary
Functions
The exception struct for a Sentry error.
Types
@type reason() :: :too_many_retries | :server_error | {:invalid_json, Exception.t()} | {:request_failure, reason :: :inet.posix() | term()} | {Exception.kind(), reason :: term(), Exception.stacktrace()}
The reason for a Sentry error exception.
@type t() :: %Sentry.ClientError{ __exception__: true, http_response: nil | {status :: 100..599, headers :: [{String.t(), String.t()}], body :: binary()}, reason: reason() }
The type for a Sentry error exception.
Functions
The exception struct for a Sentry error.