← ZIO Parser docs

Failure

zio.parser.Parser.ParserError.Failure
final case class Failure[Err](nameStack: List[String], position: Int, failure: Err) extends ParserError[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

Source
Parser.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait ParserError[Err]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def addFailedBranch[Err2 >: Err](error: ParserError[Err2]): ParserError[Err2]

Attributes

Inherited from:
ParserError
Source
Parser.scala
def map[Err2](f: Err => Err2): ParserError[Err2]

Attributes

Inherited from:
ParserError
Source
Parser.scala

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product