locked
Handle TargetInvocationException with Microsoft Enterprise library RRS feed

  • Question

  • Hi,

        I am working on Custom Exception handling by inheriting Exception Class of all my exception classes [DataAccessExcetions, BusinessException, ServiceException]. All these inherit Base Exception class.

    I cretaed one   Exception   policy  class which excutes different policies w.r.t layer (DAL,BLL, Service Layer)  & wraps message.

    It is working fine for basic exceptions like DividedByZeroException, FormatExceptions which are inherited from System.Exception class & wrapping exception message. Today i got one exception like TargetInvocationException  of [System.reflection ] my exception handling policy  class is  giving "Unable to handle exception : Wrap Handler" means my policy is not supporting.

    I have cretaed exception type as system.Exception while creating policy in Enterprise library. It is not supporting all different types of exceptions as we know Exception is the base class for all type of exceptions.

        Can any one help me on this issue.

    Thursday, December 23, 2010 10:16 AM

Answers