Function isExceptionInstanceOf

  • Checks if the given exception is an instance of the specified class.

    Parameters

    • e: unknown

      The exception to check.

    • instanceOf: typeof ArgsParserException

      The class to check against.

    Returns boolean

    true if the exception is an instance of the specified class, false otherwise.