TraceVisitor

upickle.core.TraceVisitor$
See theTraceVisitor companion class
object TraceVisitor

Adds a JSON Path to exceptions thrown by the delegate Visitor.

Useful for debugging failures. Adds ~10% overhead depending on the parser.

Attributes

See also
Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

trait HasPath

Internally, the paths form a linked list back to the root by the visitors themselves. Compared to something like a List[String] or List[Object], this does not require extra String allocation or boxing unless we actually ask for the path.

Internally, the paths form a linked list back to the root by the visitors themselves. Compared to something like a List[String] or List[Object], this does not require extra String allocation or boxing unless we actually ask for the path.

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
object RootHasPath.type
object RootHasPath extends HasPath

Attributes

Supertypes
trait HasPath
class Object
trait Matchable
class Any
Self type
class TraceException(val jsonPath: String, cause: Throwable) extends Exception, NoStackTrace

JSON Path indicating where the problem occurred. Added as a suppressed exception.

JSON Path indicating where the problem occurred. Added as a suppressed exception.

Attributes

Supertypes
trait NoStackTrace
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
class Wrapper[T, J]

Attributes

Supertypes
class Object
trait Matchable
class Any

Value members

Concrete methods

def withTrace[T, J](trace: Boolean, v: Visitor[T, J])(f: Visitor[T, J] => J): J