UNPKG

@webfaas/webfaas-core

Version:

WebFaaS Framework - Core

51 lines (50 loc) 1.54 kB
export declare namespace WebFaasError { enum NotFoundErrorTypeEnum { TARBALL = "TARBALL", MANIFEST = "MANIFEST", VERSION = "VERSION", DEPENDENCY = "DEPENDENCY", METHOD = "METHOD" } class NotFoundError extends Error { type: NotFoundErrorTypeEnum; artefactName: string; constructor(type: NotFoundErrorTypeEnum, artefactName: string); } class ClientHttpError extends Error { code?: string; url: string; method: string; constructor(err: Error, url: string, method?: string); } class CompileError extends Error { code?: string; constructor(err: Error); } class FileError extends Error { code?: string; constructor(err: Error); } class InvokeError extends Error { code?: string; constructor(err: Error); } enum SecurityErrorTypeEnum { MISSING_CREDENTIALS = "MISSING_CREDENTIALS", INVALID_CREDENTIALS = "INVALID_CREDENTIALS", FORBIDDEN = "FORBIDDEN", THROTTLED = "THROTTLED", PAYLOAD_LARGE = "PAYLOAD_LARGE", PAYLOAD_INVALID = "PAYLOAD_INVALID", UNCLASSIFIED = "UNCLASSIFIED" } class SecurityError extends Error { type: SecurityErrorTypeEnum; constructor(type: SecurityErrorTypeEnum, message: string); } class ValidateError extends Error { code: string; field: string; constructor(code: string, field: string, message: string); } }