Class/Object

com.lucidchart.open.xtract

ParseFailure

Related Docs: object ParseFailure | package xtract

Permalink

case class ParseFailure(errors: Seq[ParseError]) extends ParseResult[Nothing] with Product with Serializable

A ParseResult indicating a failed

Linear Supertypes
Serializable, Serializable, Product, Equals, ParseResult[Nothing], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ParseFailure
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. ParseResult
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ParseFailure(errors: Seq[ParseError])

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def collect[B](pf: PartialFunction[Nothing, B]): ParseResult[B]

    Permalink

    Apply a PartialFunction to the result value.

    Apply a PartialFunction to the result value. If the pf function isn't defined for the result value a ParseFailure is returned.

    Definition Classes
    ParseResult
  7. final def collect[B](otherwise: ⇒ ParseError)(pf: PartialFunction[Nothing, B]): ParseResult[B]

    Permalink

    Apply a PartialFunction to the result value.

    Apply a PartialFunction to the result value. If the pf isn't defined for the result value, a ParseFailure with the otherwise error is returned.

    Definition Classes
    ParseResult
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. val errors: Seq[ParseError]

    Permalink

    A sequence of all ParseErrors that occurred.

    A sequence of all ParseErrors that occurred.

    Definition Classes
    ParseFailureParseResult
  10. def filter(f: (Nothing) ⇒ Boolean): ParseResult[Nothing]

    Permalink

    f

    Predicate to filter the ParseResult by

    returns

    this if the test passes, or ParseFailure if the test fails.

    Definition Classes
    ParseResult
  11. def filter(error: ⇒ ParseError)(f: (Nothing) ⇒ Boolean): ParseResult[Nothing]

    Permalink

    error

    The error to use if the test fails.

    f

    Predicate to filter the ParseResult by

    returns

    if the result is successful and the filter fails ParseFailure is returned

    Definition Classes
    ParseResult
  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. def flatMap[B](f: (Nothing) ⇒ ParseResult[B]): ParseResult[B]

    Permalink

    FlatMap over the result value.

    FlatMap over the result value.

    One thing to note is that if this is a PartialParseSuccess, then the errors are prepended to the result of calling f on the value. So for example, if f returns a ParseSuccess, but this is a PartialParseSuccess the final result will be a PartialParseSuccess containing the result from f and the errors from this.

    Definition Classes
    ParseResult
  14. def fold[B](onFailure: (Seq[ParseError]) ⇒ B)(onSuccess: (Nothing) ⇒ B): B

    Permalink

    Handle both success and failure.

    Handle both success and failure.

    onFailure

    Function to handle a ParseFailure.

    onSuccess

    Function to process a successful parse.

    Definition Classes
    ParseResult
  15. def foreach(f: (Nothing) ⇒ Unit): Unit

    Permalink

    Execute f on the result value if and only if this ParseResult is successful.

    Execute f on the result value if and only if this ParseResult is successful.

    f

    the function to execute.

    Definition Classes
    ParseResult
    Annotations
    @inline()
  16. def get: Nothing

    Permalink
    Attributes
    protected
    Definition Classes
    ParseFailureParseResult
  17. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  18. def getOrElse[B >: Nothing](otherwise: ⇒ B): B

    Permalink

    returns

    the result value, unless this is a ParseFailure in which case return otherwise.

    Definition Classes
    ParseResult
  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. def isSuccessful: Boolean

    Permalink

    Is the result a success, i.e.

    Is the result a success, i.e. either a ParseSuccess or a PartialParseSuccess.

    Definition Classes
    ParseFailureParseResult
  21. def map[B](f: (Nothing) ⇒ B): ParseResult[B]

    Permalink

    Map a function over the result value.

    Map a function over the result value. The level of success, and any errors are propagated.

    Definition Classes
    ParseResult
  22. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. def orElse[B >: Nothing](otherwise: ⇒ ParseResult[B]): ParseResult[B]

    Permalink

    returns

    this if this is successful otherwise return otherwise.

    Definition Classes
    ParseResult
  26. def recoverPartial[B >: Nothing](otherwise: ⇒ B): ParseResult[B]

    Permalink

    If this is a ParseFailure recover as a PartialParseSuccess containing otherwise so that the errors are kept.

    If this is a ParseFailure recover as a PartialParseSuccess containing otherwise so that the errors are kept.

    Definition Classes
    ParseResult
  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  28. def toOption: Option[Nothing]

    Permalink

    Convert to an Option

    Convert to an Option

    returns

    a Some containing the result if successful, or a None if a failure

    Definition Classes
    ParseResult
  29. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. def withFilter(f: (Nothing) ⇒ Boolean): ParseResult[Nothing]

    Permalink

    Alias for filter

    Alias for filter

    Definition Classes
    ParseResult

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from ParseResult[Nothing]

Inherited from AnyRef

Inherited from Any

Ungrouped