import { CamundaRestError } from '../c8/lib/C8Dto'; import * as Http from './HttpClient'; import { BeforeErrorHook, HTTPError as BaseHTTPError } from './HttpClient'; import { CamundaPlatform8Configuration } from './Configuration'; export declare class HTTPError extends BaseHTTPError implements CamundaRestError { statusCode: number; title: string; detail: string; instance: string; type: "about:blank"; status: number; originalMessage: string; method: string | undefined; url: string | undefined; constructor({ response, method, url, message, }: { response: Http.Response; method?: string; url?: string; message: string; }); /** * Provides a rich string representation including method, URL, and response * detail for debugging (e.g. console.log, uncaught exception traces) while * keeping error.message static for error-monitoring grouping (Sentry, etc.). * See: https://github.com/camunda/camunda-8-js-sdk/issues/658 */ toString(): string; } export type RestError = HTTPError | Http.RequestError | Http.ParseError | Http.TimeoutError | Http.CancelError; /** * This function adds the call point to the error stack trace of got errors. * This enables users to see where the error originated from. * * It also logs the error to the Camunda Support log. * This is useful for debugging and support purposes. */ export declare const gotBeforeErrorHook: (config: CamundaPlatform8Configuration) => BeforeErrorHook;