Weavr.Error.InvalidRequest exception (Weavr v1.0.0)

Copy Markdown View Source

Raised/returned for client-side validation failures that are caught before a request is sent — e.g. a required parameter is missing, or an enum value isn't one Weavr accepts. Catching these early saves a round trip and gives a much more specific error than a generic 400.

Summary

Types

t()

@type t() :: %Weavr.Error.InvalidRequest{
  __exception__: true,
  field: atom() | String.t() | nil,
  message: String.t()
}