Interface CommandErrorBuilder

The object to create a new CommandError.

interface CommandErrorBuilder {
    data?: any;
    message: string;
    type: CommandErrorType;
}

Properties

Properties

data?: any

The data of the error, can be anything but should be related to the error type.

See

CommandErrorBuilder#type.

message: string

The message of the error, to inform what is the problem.

The type of error.

Generated using TypeDoc