P
philipl
hi,
i am having a problem catching a user defined exception, defined in a
class A library on its own, thrown from another class B. I am trying
to catch it in a console app which invokes class B using the Activator
class like this:
instob = Activator.CreateInstance(type, args1);
The problem is that the try block in my console app treats it as an
unhandledexception when i create the object this way, If I
instantiate class B directly then it catches the cutom error without
problems.
Anyone know why this is?
i am having a problem catching a user defined exception, defined in a
class A library on its own, thrown from another class B. I am trying
to catch it in a console app which invokes class B using the Activator
class like this:
instob = Activator.CreateInstance(type, args1);
The problem is that the try block in my console app treats it as an
unhandledexception when i create the object this way, If I
instantiate class B directly then it catches the cutom error without
problems.
Anyone know why this is?