UNPKG

jsm-exceptions

Version:

A comprehensive TypeScript exception library with HTTP status code support, detailed JSDoc documentation, and backward compatibility. Provides structured error handling for web applications and APIs.

31 lines (30 loc) 1.03 kB
import BaseException from "./base.exception"; /** * @fileoverview Not Implemented exception (HTTP 501) * @author dr. Salmi <reevosolutions@gmail.com> */ /** * Exception thrown when a feature or functionality is not implemented. * Corresponds to HTTP 501 Not Implemented status code. * * @class NotImplementedException * @extends {BaseException} * @example * ```typescript * throw new NotImplementedException('Feature not yet implemented'); * throw new NotImplementedException('Payment method not supported', { * paymentMethod: 'cryptocurrency' * }); * ``` */ declare class NotImplementedException extends BaseException { /** * Creates an instance of NotImplementedException. * * @param {string} [message='Not Implemented'] - The error message * @param {Record<string, any>} [context] - Additional context about what's not implemented * @memberof NotImplementedException */ constructor(message?: string, context?: Record<string, any>); } export default NotImplementedException;