@mozaic-io/mozaic-sdk-node
Version:
The Mozaic Node SDK enables you to pay your creators easily via the Mozaic API.
22 lines • 740 B
TypeScript
import { AxiosError, AxiosResponse } from "axios";
export declare class MozaicError extends Error {
/**
* An HTTP Status code from any underlying api call
*/
status: number;
/**
* The raw exception or other data object that was wrapped by MozaicError.
* This can be logged if you need additional details about the issue.
*/
rawError: any;
/**
* @internal - To be used by the internal system only.
* @param axiosResponse
*/
private constructor();
static create(obj: AxiosResponse): MozaicError;
static create(obj: AxiosError): MozaicError;
static create(obj: Error): MozaicError;
static create(obj: any): MozaicError;
}
//# sourceMappingURL=MozaicError.d.ts.map