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.
27 lines (26 loc) • 893 B
TypeScript
import BaseException from "./base.exception";
/**
 * @fileoverview Generic JSM exception for backward compatibility
 * @author dr. Salmi <reevosolutions@gmail.com>
 * @since 03-03-2024 17:31:13
 * @deprecated Use BaseException or specific exception types instead
 */
/**
 * Generic JSM exception class for backward compatibility.
 *
 * @deprecated Use BaseException or specific exception types instead
 * @class JsmException
 * @extends {BaseException}
 */
declare class JsmException extends BaseException {
    /**
     * Creates an instance of JsmException.
     *
     * @deprecated Use BaseException or specific exception types instead
     * @param {string} [message='Internal system error'] - The error message
     * @param {number} [status=500] - HTTP status code
     * @memberof JsmException
     */
    constructor(message?: string, status?: number);
}
export default JsmException;