Files
outline/app/utils/errors.ts
Tom MoorandClaude Fable 5 a1d0520c9f Add missing JSDoc to exported members in app and server utils (#12940)
* Add missing JSDoc to exported members in app and server utils

Documents all exported functions, classes, enums, and constants in
app/utils and server/utils that were missing JSDoc, per the project
documentation guidelines.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AsEQYA8zN813thxu7GjjzU

* Use @returns tag to match codebase convention

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AsEQYA8zN813thxu7GjjzU

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-07-08 08:30:11 -04:00

38 lines
1.6 KiB
TypeScript

import ExtendableError from "es6-error";
/** Error thrown when the user is not authorized to perform a request. */
export class AuthorizationError extends ExtendableError {}
/** Error thrown when the server could not understand the request. */
export class BadRequestError extends ExtendableError {}
/** Error thrown when a network-level failure prevents a request. */
export class NetworkError extends ExtendableError {}
/** Error thrown when the requested resource could not be found. */
export class NotFoundError extends ExtendableError {}
/** Error thrown when the request requires payment or an upgraded plan. */
export class PaymentRequiredError extends ExtendableError {}
/** Error thrown when a request is made while the client is offline. */
export class OfflineError extends ExtendableError {}
/** Error thrown when the service is temporarily unavailable. */
export class ServiceUnavailableError extends ExtendableError {}
/** Error thrown when an upstream server returned an invalid response. */
export class BadGatewayError extends ExtendableError {}
/** Error thrown when the request was well-formed but could not be processed. */
export class UnprocessableEntityError extends ExtendableError {}
/** Error thrown when the client has exceeded the allowed request rate. */
export class RateLimitExceededError extends ExtendableError {}
/** Error thrown when a request fails for a generic reason. */
export class RequestError extends ExtendableError {}
/** Error thrown when the client version is too old to use the API. */
export class UpdateRequiredError extends ExtendableError {}