ReplMessageOnlyException

open class ReplMessageOnlyException(message: String, cause: Throwable? = null) : ReplException

The kind of exception that renders only its message, no stacktrace or cause

Inheritors

Constructors

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

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
open override val customHeader: String?

If this exception is a cause of runtime failure, this header will be specified after the exception traceback, if not null. If null, the default header will be specified, which is ": "

Link copied to clipboard

Type (in JVM sense) and message of this exception that will end up as ename and evalue in the Jupyter error reply message

Link copied to clipboard
open val message: String?
Link copied to clipboard
open override val traceback: List<String>

Traceback (in the Jupyter sense) of this exception

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getAdditionalInfoJson(): JsonObject?

This JSON may contain some extra metadata for a Jupyter client, i.e., a line of code to highlight as an error's cause

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun Throwable.messageAndStackTrace(withMessage: Boolean = true): String
Link copied to clipboard
Link copied to clipboard
open override fun render(): String

Sometimes errors should be printed to the error stream instead of being returned as an error reply. I.e., in cases when they appear in the library integration and not in the user code. In such cases this method is called to calculate a string representation of them

Link copied to clipboard
Link copied to clipboard