UNPKG

@itwin/clash-detection-client

Version:

Clash Detection client for the iTwin platform

23 lines 971 B
import type { ClashDetectionError, ClashDetectionErrorDetail } from "./interfaces/ClashDetectionErrorInterfaces"; import { ClashDetectionErrorCode } from "./interfaces/ClashDetectionErrorInterfaces"; export declare function isClashDetectionApiError(error: unknown): error is ClashDetectionError; export declare class ClashDetectionErrorImpl extends Error implements ClashDetectionError { code: ClashDetectionErrorCode; details?: ClashDetectionErrorDetail[]; constructor(params: { code: ClashDetectionErrorCode; message: string; details?: ClashDetectionErrorDetail[]; }); } export declare class ClashDetectionErrorParser { private static readonly _defaultErrorMessage; static parse(response: { statusCode?: number; body?: unknown; }): Error; private static parseCode; private static parseDetails; private static parseAndFormatMessage; } //# sourceMappingURL=ClashDetectionErrorParser.d.ts.map