Static
addAdd an exception class to the registry.
a string, Expected to be the literal name of the class.
an exception constructor inherited from BaseException.
an exception extended by BaseException
Static
getGet the exception constructor/class from its name if it's registered.
is the exception name.
the exception constructor/class or null if the name is not registered.
Static
getGet the exception name from the exception's constructor (class).
the constructor/class of an exception.
the exception name of null if the exception is not registered in the registry.
Static
requireGet the exception constructor/class from its name, Or throws an Error.
is the exception name.
the exception constructor/class.
Static
requireGet the exception name from the exception's constructor (class), Or throw an Error.
the constructor/class of an exception.
the exception name.
A registry for exceptions to be referenced by their name.