toggle menu
metis-lang
jvm
switch theme
search in API
metis-lang
/
io.github.seggan.metis.parsing
/
UnexpectedTokenException
Unexpected
Token
Exception
class
UnexpectedTokenException
(
val
token
:
Token
,
val
expected
:
List
<
Token.Type
>
,
val
consumed
:
Int
,
span
:
Span
)
:
SyntaxException
Members
Constructors
Unexpected
Token
Exception
Link copied to clipboard
constructor
(
token
:
Token
,
expected
:
List
<
Token.Type
>
,
consumed
:
Int
,
span
:
Span
)
Properties
backtrace
Link copied to clipboard
val
backtrace
:
MutableList
<
Span
>
cause
Link copied to clipboard
open
val
cause
:
Throwable
?
consumed
Link copied to clipboard
val
consumed
:
Int
expected
Link copied to clipboard
val
expected
:
List
<
Token.Type
>
message
Link copied to clipboard
open
val
message
:
String
?
token
Link copied to clipboard
val
token
:
Token
Functions
add
Stack
Frame
Link copied to clipboard
fun
addStackFrame
(
span
:
Span
)
Adds a stack frame to the backtrace.
add
Suppressed
Link copied to clipboard
fun
addSuppressed
(
p0
:
Throwable
)
fill
In
Stack
Trace
Link copied to clipboard
open
fun
fillInStackTrace
(
)
:
Throwable
get
Localized
Message
Link copied to clipboard
open
fun
getLocalizedMessage
(
)
:
String
get
Stack
Trace
Link copied to clipboard
open
fun
getStackTrace
(
)
:
Array
<
StackTraceElement
>
get
Suppressed
Link copied to clipboard
fun
getSuppressed
(
)
:
Array
<
Throwable
>
init
Cause
Link copied to clipboard
open
fun
initCause
(
p0
:
Throwable
)
:
Throwable
print
Stack
Trace
Link copied to clipboard
open
fun
printStackTrace
(
)
open
fun
printStackTrace
(
p0
:
PrintStream
)
open
fun
printStackTrace
(
p0
:
PrintWriter
)
report
Link copied to clipboard
fun
report
(
sourceName
:
String
)
:
String
Returns a string representation of this exception.
set
Stack
Trace
Link copied to clipboard
open
fun
setStackTrace
(
p0
:
Array
<
StackTraceElement
>
)