UNPKG

@teknologi-umum/pesto

Version:
80 lines (79 loc) 2.27 kB
/** * Some parameters are missing on the HTTP request or the request body is empty. */ export declare class MissingParameterError extends Error { message: string; constructor(message: string); } /** * Token was empty during Client creation. */ export declare class EmptyTokenError extends Error { constructor(); } /** * Token was not sent during the HTTP request. */ export declare class MissingTokenError extends Error { constructor(); } /** * Unauthorized request with unknown reason */ export declare class UnauthorizedError extends Error { constructor(); } /** * An error occurred on Pesto's server. Client should retry the request after a few seconds. * * If the error persist, please contact the Pesto team. */ export declare class InternalServerError extends Error { message: string; constructor(message: string); } /** * Given Client token was not registered on Pesto's API. */ export declare class TokenNotRegisteredError extends Error { constructor(); } /** * Provided token is already revoked on Pesto's API. */ export declare class TokenRevokedError extends Error { constructor(); } /** * The token exceeds the monthly quota limit defined by the Pesto's API. * * To increase your limit, please contact the Pesto team. */ export declare class MonthlyLimitExceededError extends Error { constructor(); } /** * Client got rate limited by the API for sending burst or too many concurrent requests to Pesto's API. * * To get around this, you can implement your own semaphore to handle parallel requests. * To learn more about semaphore, you can see this Wikipedia article: * https://en.wikipedia.org/wiki/Semaphore_(programming) */ export declare class ServerRateLimitedError extends Error { constructor(); } /** * Provided language-version combination does not exists on Pesto's API. */ export declare class RuntimeNotFoundError extends Error { constructor(language?: string, version?: string); } /** * The files "entrypoint" parameter exceeds what was defined on the language package. * * Please refer to the documentation of each language. */ export declare class MaximumAllowedEntrypointsExceededError extends Error { message: string; constructor(message: string); }