error

fun error(content: List<Node>, title: String? = null): Box

A box that shows an error content with a monospaced text content.

Return

a box containing the error message

Parameters

content

error message to display

title

additional error title


fun error(message: InlineContent, title: String? = null, sourceText: CharSequence?): Box

A box that shows an error content with an optional source code snippet.

Return

a box containing the error message

Parameters

message

error message to display

title

additional error title

sourceText

optional source code snippet to display