Squirrelix.Error (Squirrelix v0.1.0)

Copy Markdown View Source

Formatting and normalization helpers for Squirrelix errors.

Summary

Functions

attach_query(error, query)

@spec attach_query(
  struct(),
  Squirrelix.Query.t()
) :: struct()

format(error)

@spec format(struct()) :: String.t()

format_all(errors)

@spec format_all([struct()]) :: String.t()

normalize(error)

@spec normalize(struct()) :: struct()

postgresql_code(arg1)

@spec postgresql_code(struct()) :: String.t() | nil