View Source Saxy.ParseError exception (Saxy v1.6.0)

Returned when parser encounters errors during parsing.

Summary

Functions

Callback implementation for Exception.message/1.

Types

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

Functions

Callback implementation for Exception.message/1.