Slackblocks.ValidationError exception (slackblocks v2.8.0)

View Source

A categorized validation failure with wire keys and zero-based indexes in path.

Summary

Types

category()

@type category() ::
  :length_exceeded
  | :out_of_range
  | :mutually_exclusive
  | :type_mismatch
  | :missing_required
  | :invalid_usage

t()

@type t() :: %Slackblocks.ValidationError{
  __exception__: true,
  category: category(),
  message: binary(),
  path: [binary() | non_neg_integer()]
}