View Source NeoSaxy.ParseError exception (NeoSaxy v1.0.2)

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() :: %NeoSaxy.ParseError{
  __exception__: true,
  binary: term(),
  position: term(),
  reason: reason()
}

Functions

Callback implementation for Exception.message/1.