InInput

io.dylemma.spac.SpacTraceElement.InInput
case class InInput[A](input: A) extends SpacTraceElement

The top of a typical SpacException's spacTrace, representing whichever raw input caused the parser to throw. If the input is an instance of HasLocation, the location will be displayed as part of the render of this element. XmlEvent and JsonEvent (from xml-spac and json-spac respectively) both extend HasLocation,

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def render: String

Create a String that somewhat resembles a StackTraceElement, without actually conforming to StackTraceElement's toString.

Create a String that somewhat resembles a StackTraceElement, without actually conforming to StackTraceElement's toString.

Attributes

def toStackTraceElement: StackTraceElement

Create a StackTraceElement, abusing the className/methodName/fileName arguments such that the created StackTraceElement's toString returns something similar to the render method.

Create a StackTraceElement, abusing the className/methodName/fileName arguments such that the created StackTraceElement's toString returns something similar to the render method.

The general pattern is that SpacTraceElements that include CallerPos arguments will use either parser or client as the "className" and provide a real fileName and line number. Input-related events will use "input" as the "className" and "data source" as the fileName.

Attributes

Returns

A StackTraceElement that resembles this SpacTraceElement's render output

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product