The is() prototype method of the Exception object can be used to test if the Exception matches a given tag.
is()
Exception
MDN Reference