final case class Error(message: ErrorMessage, path: Path = Path.Empty) extends Product with Serializable
Data structure for representing path-annotated error
- message
error message
- path
error path annotation
- Since
0.7.0
- Alphabetic
- By Inheritance
- Error
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Error(message: ErrorMessage, path: Path = Path.Empty)
- message
error message
- path
error path annotation
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def asErrorPathMessage: (String, ErrorMessage)
Returns a tuple with conventional string representation of a path and error message
Returns a tuple with conventional string representation of a path and error message
- Since
0.7.0
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val message: ErrorMessage
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val path: Path
- def prependErrorPath(pathElement: PathElement): Error
Prepends path with a given path element
Prepends path with a given path element
- pathElement
path element to be prepended
- returns
error with a path prepended with provided path element
- Since
0.7.0
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def unsealErrorPath(): Error
Unseals the io.scalaland.chimney.partial.Path of current io.scalaland.chimney.partial.Error.
Unseals the io.scalaland.chimney.partial.Path of current io.scalaland.chimney.partial.Error.
When derivation is building up the result it automatically appends fields/indices/map keys - however values obtained with withFieldComputed(Partial)(From) contains the whole Path already, so prependErrorPath should be a noop for them.
However, this path can only be precomputed only up to the boundaries of a io.scalaland.chimney.PartialTransformer, and when one transformer calls another, path should be appended again. This method allows this.
- returns
error with a path prepended with provided path element
- Since
1.6.0
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()