import AggregateError from '@flex-development/aggregate-error-ponyfill'; import { NullishString } from '@flex-development/tutils'; import { ExceptionDataDTO } from '../dtos'; import { ExceptionClassName, ExceptionCode, ExceptionId } from '../enums'; import { AxiosError, ExceptionJSON, FirebaseError, NextError } from '../interfaces'; import { ExceptionData, ExceptionErrors } from '../types'; export default class Exception extends AggregateError { readonly errors: ExceptionErrors; readonly name: 'Exception'; readonly className: ExceptionClassName; readonly code: ExceptionCode; readonly data: ExceptionData; readonly id: ExceptionId; constructor(code?: ExceptionCode, message?: NullishString, data?: ExceptionDataDTO, stack?: string); static findIdByCode(code: ExceptionCode): ExceptionId; static formatCode(code?: any): ExceptionCode; static fromAxiosError(error: AxiosError): Exception; static fromFirebaseError(error: FirebaseError): Exception; static fromNextError(error: NextError): Exception; toJSON(): Readonly>; } //# sourceMappingURL=base.exception.d.ts.map