Sax.ParseError exception (sax v1.0.0) View Source

Returned when parser encounters errors during parsing.

Link to this section Summary

Functions

Callback implementation for Exception.message/1.

Link to this section Types

Specs

reason() ::
  {:token, token :: String.t()}
  | {:wrong_closing_tag, open_tag :: String.t(), close_tag :: String.t()}
  | {:invalid_pi, pi_name :: String.t()}
  | {:invalid_encoding, encoding :: String.t()}
  | {:bad_return, {event :: atom(), return :: term()}}

Specs

t() :: %Sax.ParseError{
  __exception__: term(),
  binary: term(),
  position: term(),
  reason: reason()
}

Link to this section Functions

Callback implementation for Exception.message/1.