View Source LenraCommon.Errors.TechnicalError exception (lenra_common v2.9.0)

LenraCommon.Errors.TechnicalError creates all error functions based on the @errors list. For each error in the list, this module creates two function, one that creates and returns a TechnicalError struct, the second that creates a TechnicalError struct and returns it into an tuple.

Summary

Types

@type t() :: %LenraCommon.Errors.TechnicalError{
  __exception__: term(),
  message: String.t(),
  metadata: any(),
  reason: atom(),
  status_code: integer()
}

Functions

Link to this function

bad_request(metadata \\ %{})

View Source
Link to this function

bad_request_tuple(metadata \\ %{})

View Source
Link to this function

error_404(metadata \\ %{})

View Source
Link to this function

error_404_tuple(metadata \\ %{})

View Source
Link to this function

error_500(metadata \\ %{})

View Source
Link to this function

error_500_tuple(metadata \\ %{})

View Source
Link to this function

unknown_error(metadata \\ %{})

View Source
Link to this function

unknown_error_tuple(metadata \\ %{})

View Source