package stacktraces
Contains the model classes for stack traces.
Overview
Examples of interesting nodes are:
- StackTraceNode which represent a full stacktrace;
- StackTraceLineNode which represents a single line of a stacktrace.
- Alphabetic
- By Inheritance
- stacktraces
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
case class
ExceptionMessageNode
(message: String) extends StackTraceASTNode with Product with Serializable
It wraps the string representing the message of an exception.
It wraps the string representing the message of an exception.
- message
The exception message.
-
case class
SourceLocationNode
(fileName: String, lineNumber: Option[Int]) extends StackTraceASTNode with Product with Serializable
It represent the location of the source code.
It represent the location of the source code.
- fileName
a string representing the Java or a Scala source file. It can also assume values like "Compiled Source", "Unknown Source" or "Native Method".
- lineNumber
an optional integer presenting the line where the exception has been propagated. Not available if there is no source file available.
-
trait
StackTraceASTNode
extends HASTNode
It represent the root trait for all the StackTrace AST nodes.
-
case class
StackTraceLineNode
(methodName: QualifiedIdentifierNode, location: SourceLocationNode) extends StackTraceASTNode with Product with Serializable
It represents a stacktrace line in the form "at QualifiedName(SourceLocation).
It represents a stacktrace line in the form "at QualifiedName(SourceLocation). For example ch.usi.inf.parsing.ClassQualifiedName.methodName(ClassQualifiedName.java:10)"
- See also
QualifiedName, SourceLocation
-
case class
StackTraceMoreExceptions
(missingExceptions: Int) extends StackTraceASTNode with Product with Serializable
Wraps the number of missing exceptions in a stack trace.
Wraps the number of missing exceptions in a stack trace.
- missingExceptions
the number of missing exceptions in a stack trace.
-
case class
StackTraceNode
(threadName: Option[StackTraceThreadNameNode], exceptionName: QualifiedIdentifierNode, message: Option[String], lines: Seq[StackTraceLineNode], moreExceptions: Option[StackTraceMoreExceptions], causedByTraces: Seq[StackTraceNode]) extends StackTraceASTNode with Product with Serializable
It represents a stack trace.
It represents a stack trace. in the form QualifiedName (":" ?) (message ?) (StackTraceLine +)
- exceptionName
a qualified name representing the the exception raised
- message
a string representing an optional message for the exception
- lines
a list of stacktrace lines representing the trace.
- See also
QualifiedName, SourceLocation, StackTraceLine
-
case class
StackTraceThreadNameNode
(threadName: String) extends StackTraceASTNode with Product with Serializable
Wraps the thread name in an exception.
Wraps the thread name in an exception.
- threadName
the name of the thread.
Value Members
-
object
StackTraceImplicits
If imported, allows to generate code from a StackTraceASTNode