I get an exception type using
catch(Exception e){
log.Error(e.GetType());
}
so I change my code to catch this exception,
try{
...
}catch(EntityException a){
log.Error("I got it!");
}catch(Exception e){
log.Error("No");
}
and the code only writes "No."
How can I catch an EntityException before an Exception exception?
thank
source
share