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
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, ReplExceptionCause

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
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
inline fun mergeExceptions(actions: ExceptionMerger.() -> Unit)

Runs all ExceptionMerger.catchIndependently blocks, even if there was an exception in one or more of them. If there were exceptions, the first one is thrown, and the others are added as suppressed to it.

Link copied to clipboard
fun <T> rethrowAsLibraryException(part: LibraryProblemPart, action: () -> T): T