ExGram.Error exception (ex_gram v0.65.0)

Copy Markdown View Source

Error struct for representing errors in ExGram.

Can represent both errors returned by Telegram (API errors with codes and descriptions) and errors that occur within the library itself.

Implements the Exception behaviour.

Summary

Types

t()

@type t() :: %ExGram.Error{
  __exception__: true,
  code: number() | atom(),
  message: String.t() | any(),
  metadata: any()
}