Skip to content

Home > llm-ops > error

error() function ​

Returns an Error object.

Signature:

typescript
export declare function error(message: string): Error;
export declare function error(message: string): Error;

Parameters ​

ParameterTypeDescription
messagestringThe value for the message property of the result.

Returns:

Error

An Error object.

Released under the MIT License.