lightningdevkit
Version:
Lightning Development Kit
38 lines (37 loc) • 1.27 kB
text/typescript
import { Option_StrZ } from '../structs/Option_StrZ.mjs';
import { CommonBase } from './CommonBase.mjs';
/**
* An error returned in response to an JSON-RPC request.
*
* Please refer to the [JSON-RPC 2.0 specification](https://www.jsonrpc.org/specification#error_object) for
* more information.
*/
export declare class LSPSResponseError extends CommonBase {
/**
* A string providing a short description of the error.
*/
get_message(): string;
/**
* A string providing a short description of the error.
*/
set_message(val: string): void;
/**
* A primitive or structured value that contains additional information about the error.
*/
get_data(): Option_StrZ;
/**
* A primitive or structured value that contains additional information about the error.
*/
set_data(val: Option_StrZ): void;
clone_ptr(): bigint;
/**
* Creates a copy of the LSPSResponseError
*/
clone(): LSPSResponseError;
/**
* Checks if two LSPSResponseErrors contain equal inner contents.
* This ignores pointers and is_owned flags and looks at the values in fields.
* Two objects with NULL inner values will be considered "equal" here.
*/
eq(b: LSPSResponseError): boolean;
}