MetisException

abstract class MetisException(message: String, val backtrace: MutableList<Span>, cause: Throwable? = null) : RuntimeException

An exception thrown by Metis by the parser, compiler, or runtime.

Parameters

message

The error message.

backtrace

The backtrace of the error.

cause

The cause of the error.

Inheritors

Constructors

Link copied to clipboard
constructor(message: String, backtrace: MutableList<Span>, cause: Throwable? = null)

Properties

Link copied to clipboard
Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
open val message: String?

Functions

Link copied to clipboard
fun addStackFrame(span: Span)

Adds a stack frame to the backtrace.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun report(sourceName: String): String

Returns a string representation of this exception.

Link copied to clipboard