export declare class PerxError extends Error { readonly code: string; readonly errorMessage: string; readonly additionalInfo: Record; /** * Please use static methods to initialize PerxError * * @param code * @param errorMessage * @param additionalInfo */ protected constructor(code: string, errorMessage: string, additionalInfo?: Record); /** * Use this error when Service layer cannot determine the root cause of the problem. * (Basically response.data was empty.) * * @param httpStatusCode * @returns */ static networkFailed(httpStatusCode: number): PerxError; /** * Perx's service intentionally reply an error back to our client. * * @param perxServiceErrorCode * @param perxComplaintMessage * @returns */ static serverRejected(perxServiceErrorCode: string, perxComplaintMessage: string): PerxError; /** * PerxService reject call due to invalid authorization * * @returns */ static unauthorized(): PerxError; /** * Our internal service layer detected bad input that cannot construct the request properly. * * @param reason * @returns */ static badRequest(reason: string): PerxError; }