Ludwig.Error

Module Members

error

(Function)

Throw an error.

Type Signature

 fun (String) -> anything
Argument: message

Message for the error.

Type: String

Returns:

Nothing, this throws an exception.

Type: anything

errorAt

(Function)

Throw an error, but remove a number of frames from the stack trace that is shown to the user.

This allows you to customize the location and code that is shown to the user. In most cases, using 1 is a good choice.

Type Signature

 fun (Int, String) -> anything
Argument: n

Frames to drop from the stack trace.

Type: Int

Argument: message

Message for the error.

Type: String

Returns:

Nothing, this throws an exception.

Type: anything