GraderException

abstract class GraderException(message: String, cause: Throwable?) : ContextedRuntimeException

Exception which serves as the basis for all custom exceptions thrown by the Grader.

Parameters

message

Exception message.

cause

Cause of the exception, if any.

Constructors

Link copied to clipboard
constructor(message: String, cause: Throwable?)

Types

Link copied to clipboard
object Companion

Properties

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

The context of this if this is an exception with context.

Link copied to clipboard
Link copied to clipboard
open override val message: String?
Link copied to clipboard

The raw message of this, without the exception context.

Link copied to clipboard

The user-facing message, if the exception is propagated to the user.

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Recursively collects the causes of this exception, with the direct cause of this exception appearing first.

Link copied to clipboard
Link copied to clipboard
open override fun getContextEntries(): MutableList<Pair<String, Any>>
Link copied to clipboard
open override fun getContextLabels(): MutableSet<String>
Link copied to clipboard
open override fun getContextValues(p0: String): MutableList<Any>
Link copied to clipboard
open override fun getFirstContextValue(p0: String): Any
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getRawMessage(): String
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
inline fun Exception.withContext(vararg context: Pair<String?, Any?>): ContextedException

Converts this into a ContextedException with context attached.

Converts this exception into a ContextedRuntimeException with context attached.