/** * Base class of Errors. * * @category Errors */ export declare class CdnError extends Error { } /** * Base class of errors related to loading graph resolution. See also {@link CdnLoadingGraphErrorEvent}. * * @category Errors */ export declare class LoadingGraphError extends CdnError { constructor(); } /** * Error related to 401 response. See also {@link UnauthorizedEvent}. * * @category Errors */ export declare class Unauthorized extends CdnError { readonly detail: { assetId: any; name: any; url: any; }; static exceptionType: string; constructor(detail: { assetId: any; name: any; url: any; }); static isInstance(resp: any): resp is Unauthorized; } /** * Error related to 404 response. See also {@link UrlNotFoundEvent}. * * @category Errors */ export declare class UrlNotFound extends CdnError { readonly detail: { assetId: any; name: any; url: any; }; static exceptionType: string; constructor(detail: { assetId: any; name: any; url: any; }); static isInstance(resp: any): resp is UrlNotFound; } /** * Error happening while fetching a source file. * * @category Errors */ export declare class FetchErrors extends CdnError { readonly detail: { errors: any; }; static exceptionType: string; constructor(detail: { errors: any; }); static isInstance(resp: any): resp is FetchErrors; } /** * Error occurring while parsing a source content of a script. See also {@link ParseErrorEvent}. * * @category Errors */ export declare class SourceParsingFailed extends CdnError { readonly detail: { assetId: any; name: any; url: any; message: any; }; static exceptionType: string; constructor(detail: { assetId: any; name: any; url: any; message: any; }); static isInstance(resp: any): resp is SourceParsingFailed; } /** * Error occurred trying to resolve a direct or indirect dependency while resolving a loading graph. * See also {@link CdnLoadingGraphErrorEvent}. * * @category Errors */ export declare class DependenciesError extends LoadingGraphError { readonly detail: { context: string; errors: { query: string; fromPackage: { name: string; version: string; }; detail: string; }[]; }; static exceptionType: string; constructor(detail: { context: string; errors: { query: string; fromPackage: { name: string; version: string; }; detail: string; }[]; }); static isInstance(resp: any): resp is DependenciesError; } /** * Dependencies resolution while resolving a loading graph lead to a circular dependency problem. * See also {@link CdnLoadingGraphErrorEvent}. * * @category Errors */ export declare class CircularDependencies extends LoadingGraphError { readonly detail: { context: string; packages: { [key: string]: { name: string; version: string; }[]; }; }; static exceptionType: string; constructor(detail: { context: string; packages: { [key: string]: { name: string; version: string; }[]; }; }); static isInstance(resp: any): resp is CircularDependencies; } /** * Errors factory. * * @category Errors */ export declare function errorFactory(error: any): CircularDependencies | DependenciesError | Unauthorized;