Link Search Menu Expand Document

Exceptions

Table of contents

  1. ClassNotExtensionMethodException
  2. ExtensionGuardedException
  3. ExtensionNotCallableException
  4. ExtensionNotFoundException
  5. MethodDefinedInClassException

The following is a list of the different exceptions that are used within this package.

ClassNotExtensionMethodException

Exception thrown when trying to register an extension method that does not implement the ExtensionMethod contract.

ExtensionGuardedException

Exception thrown when trying to unregister or replace a guarded extension method.

ExtensionNotCallableException

Exception thrown when trying to register an extension method that is not callable.

ExtensionNotFoundException

Exception thrown when trying to get a nonexistent extension from the extension collection.

MethodDefinedInClassException

Exception thrown when trying to register an extension method with the same name as a defined class method.