Class: Err

Err

new tart.Err(message, name)

Returns a new Error object which contains a custom error name and message.

Name Type Description
message string optional

Message to set as the error message.

name string optional

Optional error name.

Extends

  • Error

Methods

statictart.Err.unimplementedMethod(methodName)

Returns a new Error object which contains a implementation error message.

Name Type Description
methodName string

Name of the unimplemented method. This will be set as the error message.

Throws:

Error object containing the details.

Type
Error