Object

scala.pickling

PicklingErrors

Related Doc: package pickling

Permalink

object PicklingErrors

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. PicklingErrors
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

  1. class BasePicklingException extends RuntimeException

    Permalink

    Super class of any pickling exception that can be thrown.

  2. final case class BinaryParseFailed(value: String) extends ParsingException with Product with Serializable

    Permalink

    Exception thrown when the parsing of a message is not successful.

    Exception thrown when the parsing of a message is not successful.

    value

    Message that gave the error

  3. final case class FailedPicklerGeneration(tpe: String, concreteTpe: String, cause: Option[Throwable] = None) extends BasePicklingException with Product with Serializable

    Permalink

    Exception thrown when the generation of a Pickler for a type fails because scala pickling wasn't able to find or generate it.

    Exception thrown when the generation of a Pickler for a type fails because scala pickling wasn't able to find or generate it.

    tpe

    General type to be pickled

    concreteTpe

    Concrete type that caused the error

    cause

    Exception causing the pickling exception if any

  4. final case class FailedUnpicklerGeneration(tpe: String, concreteTpe: String, cause: Option[Throwable] = None) extends BasePicklingException with Product with Serializable

    Permalink

    Exception thrown when the generation of a Unpickler for a type fails because scala pickling wasn't able to find or generate it.

    Exception thrown when the generation of a Unpickler for a type fails because scala pickling wasn't able to find or generate it.

    tpe

    General type to be pickled

    concreteTpe

    Concrete type that caused the error

    cause

    Exception causing the pickling exception if any

  5. final case class FailedUnpickling(name: String, tag: String, message: String, cause: Option[Throwable] = None) extends BasePicklingException with Product with Serializable

    Permalink

    Exception thrown when the unpickling of a message is not successful.

    Exception thrown when the unpickling of a message is not successful.

    name

    Name of the type

    tag

    Tag in the message to unpickle

    message

    Error message

    cause

    Exception causing the pickling exception if any

  6. final case class FieldNotFound(name: String, lastReadTag: String, fields: Map[String, Any]) extends LogicException with Product with Serializable

    Permalink

    Exception thrown when an expected field hasn't been found.

    Exception thrown when an expected field hasn't been found. unpickler hasn't been elided.

    name

    Name of the expected field

    lastReadTag

    Last read tag in the unpickler

    fields

    Fields that were read from the message

  7. final case class JsonParseFailed(value: String) extends ParsingException with Product with Serializable

    Permalink

    Exception thrown when the parsing of a message is not successful.

    Exception thrown when the parsing of a message is not successful.

    value

    Message that gave the error

  8. class LogicException extends BasePicklingException

    Permalink

    Represent any error that violates an assumption made by scala pickling.

  9. case class LogicPicklingError(feedbackMsg: String) extends LogicException with Product with Serializable

    Permalink

    Exception thrown to represent any logic error when pickling or unpickling.

    Exception thrown to represent any logic error when pickling or unpickling.

    feedbackMsg

    Feedback on the error

  10. case class NoTypeHint(suffix: String) extends ParsingException with Product with Serializable

    Permalink

    Exception thrown when there is no type hint and the type in the unpickler hasn't been elided.

  11. class ParsingException extends BasePicklingException

    Permalink

    Represent any error related to parsing.

  12. class PicklingRuntimeException extends BasePicklingException

    Permalink

    Represent any error that violates an assumption made by scala pickling.

  13. final case class RuntimeGenerationDisabled(tpe: String, failed: String) extends UnsupportedOperationException with Product with Serializable

    Permalink

    Exception thrown when it's not possible to generated a Pickler or Unpickler at runtime because runtime generation has been disabled.

  14. final case class TypeMismatch(expected: List[FastTypeTag[_]], found: List[FastTypeTag[_]]) extends LogicException with Product with Serializable

    Permalink

    Exception thrown to represent a mismatch between FastTypeTags.

    Exception thrown to represent a mismatch between FastTypeTags.

    expected

    Expected type tag

    found

    Received type tags

  15. final case class UnrecognizedClass(clz: Class[_], extra: Option[String]) extends PicklingRuntimeException with Product with Serializable

    Permalink

    Exception thrown when a pickler is unable to recognize a class.

    Exception thrown when a pickler is unable to recognize a class.

    clz

    Java class

    extra

    Extra information that enriches the feedback

  16. final case class UnrecognizedTag(tagKey: String, context: String) extends PicklingRuntimeException with Product with Serializable

    Permalink

    Exception thrown when a pickler is unable to recognize a tag.

    Exception thrown when a pickler is unable to recognize a tag.

    tagKey

    The string representation of a tag

    context

    Information about where or how has happened

  17. final case class Wrapper(e: Throwable, msg: String, delimiter: String = "\n") extends BasePicklingException with Product with Serializable

    Permalink

    Used to add some top message to a captured exception, that usually gives some information on the context in which it happened.

    Used to add some top message to a captured exception, that usually gives some information on the context in which it happened.

    e

    Wrapped throwable

    msg

    Information about the context

    delimiter

    Delimiter between the e and msg.

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. object BasePicklingException extends Serializable

    Permalink

    Provides apply and extractors that allow the new change in the errors api while keeping the same public old interface.

  5. object EndOfStreamException extends RuntimeException

    Permalink

    Exception thrown when a stream ends unexpectedly during unpickling.

  6. object NoTypeHint extends NoTypeHint

    Permalink
  7. object NothingIsNotUnpicklable extends PicklingRuntimeException with Product with Serializable

    Permalink

    Exception thrown when one tries to unpickle on a Unpickler[Nothing].

  8. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  19. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  20. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  21. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped