Packages

final class UnpickleFailure extends Unpickled[Nothing]

A class representing unpickle failures

Source
Pickler.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. UnpickleFailure
  2. Unpickled
  3. AnyRef
  4. Any
Implicitly
  1. by TildeDecorator
  2. by any2stringadd
  3. by StringFormat
  4. by Ensuring
  5. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new UnpickleFailure(msg: => String, rd: Lexer)

    msg

    an error message describing what failed.

    rd

    the lexer unpickled values were read from (can be used to get error position, for instance).

Value Members

  1. def errMsg: String
  2. def flatMap[U](f: (Nothing) => Unpickled[U]): Unpickled[U]

    Transforms success values to successes or failures using given function, leaves failures alone.

    Transforms success values to successes or failures using given function, leaves failures alone.

    f

    the function to apply.

    Definition Classes
    Unpickled
  3. def map[U](f: (Nothing) => U): Unpickled[U]

    Transforms success values to success values using given function, leaves failures alone

    Transforms success values to success values using given function, leaves failures alone

    f

    the function to apply.

    Definition Classes
    Unpickled
  4. def orElse[U >: Nothing](alt: => Unpickled[U]): Unpickled[U]

    Tries alternate expression if current result is a failure

    Tries alternate expression if current result is a failure

    alt

    the alternate expression to be tried in case of failure

    Definition Classes
    Unpickled
  5. val rd: Lexer
  6. def requireSuccess: UnpickleSuccess[Nothing]

    Transforms failures into thrown MalformedInput exceptions.

    Transforms failures into thrown MalformedInput exceptions.

    Definition Classes
    Unpickled
    Exceptions thrown

    Lexer.MalformedInput if current result is a failure

  7. def toString(): String
    Definition Classes
    UnpickleFailure → AnyRef → Any
  8. def ~[T](y: T): ~[UnpickleFailure, T]

    Infix method that forms a ~-pair.

    Infix method that forms a ~-pair.

    Implicit
    This member is added by an implicit conversion from UnpickleFailure toTildeDecorator[UnpickleFailure] performed by method TildeDecorator in scala.tools.nsc.interactive.Pickler.
    Definition Classes
    TildeDecorator