ParserError

zio.parser.Parser.ParserError
See theParserError companion trait
object ParserError

Attributes

Companion
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

final case class AllBranchesFailed[Err](left: ParserError[Err], right: ParserError[Err]) extends ParserError[Err]

All branches failed in a sequence of orElse or orElseEither parsers.

All branches failed in a sequence of orElse or orElseEither parsers.

Every failed branch's failure is preserved.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait ParserError[Err]
class Object
trait Matchable
class Any
Show all
final case class Failure[Err](nameStack: List[String], position: Int, failure: Err) extends ParserError[Err]

User-defined parser error of type 'Err'

User-defined parser error of type 'Err'

Type parameters

Err

Failure type

Value parameters

failure

The custom failure

nameStack

Stack of named parsers until reaching the failure

position

Input stream position

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait ParserError[Err]
class Object
trait Matchable
class Any
Show all
final case class NotConsumedAll[Err](nameStack: List[String], position: Int) extends ParserError[Err]

The parser was supposed to consume the full input but it did not.

The parser was supposed to consume the full input but it did not.

Value parameters

lastFailure

the last encountered failure, if any

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait ParserError[Err]
class Object
trait Matchable
class Any
Show all
final case class UnexpectedEndOfInput(nameStack: List[String]) extends ParserError[Nothing]

The input stream ended before the parser finished

The input stream ended before the parser finished

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait ParserError[Nothing]
class Object
trait Matchable
class Any
Show all
final case class UnknownFailure(nameStack: List[String], position: Int) extends ParserError[Nothing]

Unknown parser error. This is only produced in exceptional cases that should not happen, for example if the unsafe regex variants encounter an error.

Unknown parser error. This is only produced in exceptional cases that should not happen, for example if the unsafe regex variants encounter an error.

Value parameters

nameStack

Stack of named parsers until reaching the failure

position

Input stream position

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait ParserError[Nothing]
class Object
trait Matchable
class Any
Show all

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror