Types.ValidationError exception (Jigsaw v0.1.0)

Copy Markdown View Source

This represents a validation error of a Node, Tree or a Pane.

Summary

Types

reason()

@type reason() ::
  :unkown
  | :position_less_than_zero
  | :ratio_invariant
  | :direction_invariant
  | :ratio_and_direction_invariant
  | :invalid_pane_shape

subject()

@type subject() :: :layout | :pane | :node | :shape

t()

@type t() :: %Types.ValidationError{
  __exception__: true,
  id: String.t() | nil,
  message: term(),
  reason: reason(),
  subject: subject(),
  validation: validation()
}

validation()

@type validation() :: :node | :pane | :pane_shape