/**
 * Exceptions
 * TODO: finish implementation. this is actually n.
 */
export var Exceptions;
(function (Exceptions) {
    // #region Types
    // #endregion
    // #region Fields
    const EXCEPTIONS = new Map();
    // #endregion
    // #region Methods
    /**
     * @public
     */
    function registerException(type, message) {
        if (EXCEPTIONS.has(type)) {
            throw new Error(`The exception '${type}' is already registered.`);
        }
        EXCEPTIONS.set(type, message);
    }
    Exceptions.registerException = registerException;
    /**
     * @public
     */
    function getExceptionMessage(type) {
        const message = EXCEPTIONS.get(type);
        if (message === undefined) {
            throw new Error(`The exception '${type}' is not registered.`);
        }
        return message;
    }
    Exceptions.getExceptionMessage = getExceptionMessage;
    // #endregion
})(Exceptions || (Exceptions = {}));
//# sourceMappingURL=Exceptions.js.map