Interface ErrorResponse

The shape of an error response from rippled. xrpl.js handles rejections by throwing, and allowing the user to handle in the catch block of a promise.

interface ErrorResponse {
    api_version?: number;
    error: string;
    error_code?: string;
    error_message?: string;
    id: string | number;
    request: Request;
    status: "error";
    type: string;
}

Properties

api_version?: number
error: string
error_code?: string
error_message?: string
id: string | number
request: Request
status: "error"
type: string