Saxy v1.3.0 Saxy.ParseError exception 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

Link to this type reason() View Source
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()}}
Link to this type t() View Source
t() :: %Saxy.ParseError{
  __exception__: term(),
  binary: term(),
  position: term(),
  reason: reason()
}

Link to this section Functions

Callback implementation for Exception.message/1.