View Source Momento.Error (Momento Elixir SDK v0.4.0)

Link to this section Summary

Link to this section Types

@type t() :: %Momento.Error{
  cause: Exception.t() | nil,
  error_code: Momento.Error.Code.t(),
  message: String.t()
}

Link to this section Functions

@spec convert(error :: Exception.t()) :: t()
Link to this function

invalid_argument(message, cause \\ nil)

View Source
@spec invalid_argument(message :: String.t(), cause :: Exception.t() | nil) :: t()