TypeClass v1.2.0 TypeClass.Property.UndefinedError exception View Source

Warning if a type class is missing properties. Properties are required for all type classes.

Link to this section Summary

Functions

Callback implementation for Exception.exception/1

Callback implementation for Exception.message/1

Convenience constructor

Link to this section Types

Link to this type t() View Source
t() :: %TypeClass.Property.UndefinedError{__exception__: term, message: String.t, type_class: module}

Link to this section Functions

Callback implementation for Exception.exception/1.

Callback implementation for Exception.message/1.

Link to this function new(class) View Source
new(module) :: t

Convenience constructor

Examples

iex> TypeClass.Property.UndefinedError.new(CoolClass)
%TypeClass.Property.UndefinedError{
  type_class: CoolClass,
  message: ~S"
  CoolClass has not defined any properties, but they are required.

  See [`TypeClass.properties/1`](TypeClass.html#properties/1) for more
  "
}