An error message.

interface ApiError {
    code: string;
    message: string;
    more_info?: string;
    target?: WatsonXAI.ApiErrorTarget;
}

Properties

code: string

A simple code that should convey the general sense of the error.

message: string

The message that describes the error.

more_info?: string

A reference to a more detailed explanation when available.

The target of the error.