Package-level declarations

Types

Link copied to clipboard
class CompositeReplException(exceptions: Collection<Throwable>, libraryProblemPart: LibraryProblemPart?) : ReplException
Link copied to clipboard
class ErrorLocation(val jupyterRequestCount: Int, val lineNumber: Int, val visibleSourceLines: Int)

Class wrapping metadata for locating the source of the error in the user's notebook.

Link copied to clipboard

Marker interface to mark renderers, code processors etc. that are defined inside kernel source code

Link copied to clipboard
class ReplCompilerException(val failedCode: String, val errorResult: ResultWithDiagnostics.Failure? = null, message: String? = null, metadata: CellErrorMetaData? = null) : ReplException

Exception type for compile time errors happening in the user's code.

Link copied to clipboard
class ReplEvalRuntimeException(fileExtension: String, scriptFqnToJupyterExecutionCount: Map<String, CellErrorMetaData>, message: String, cause: Throwable? = null) : ReplException

Thrown if the user's REPL code threw an exception at runtime.

Link copied to clipboard
open class ReplException(message: String, cause: Throwable? = null) : Exception
Link copied to clipboard
class ReplLibraryException(libraryName: String? = null, val part: LibraryProblemPart, cause: Throwable? = null) : ReplException
Link copied to clipboard
class ReplLibraryLoadingException(libraryName: String? = null, message: String? = null, cause: Throwable? = null) : ReplException
Link copied to clipboard
open class ReplPreprocessingException(message: String, cause: Throwable? = null) : ReplException

Functions

Link copied to clipboard
Link copied to clipboard
fun compilerDiagnosticToString(path: String, line: Int, column: Int, lineEnd: Int, columnEnd: Int): String
Link copied to clipboard

Returns a list of all the causes of a throwable.

Link copied to clipboard
fun <T> ResultWithDiagnostics<T>.getErrors(): String
Link copied to clipboard
fun Throwable.messageAndStackTrace(withMessage: Boolean = true): String
Link copied to clipboard
Link copied to clipboard
fun <T> rethrowAsLibraryException(part: LibraryProblemPart, action: () -> T): T