K
koltti
Hello,
I have situation similar like this.
class Class1{
private Class2 obj2;
...
public bool method1(Class3 ob3j, DateTime dt){
try{
obj2.Method2(obj3, dt);
}
catch(Exception e) {
Console.WriteLine(e.ToString())
}
}
}
class Class2{
public bool method2(Class3 obj3, DateTime dt){
try{
Console.WriteLine("Class2,method2");
...
}
catch{
return false;
}
return true;
}
When I call method1 from COM client. Sometimes I got excepion from
method2 but it not catched in method2. It will catched in method1 and
exception says that it happen in method2. Exception is "Arithmetic
operation resulted in an overflow".
What could be a reason that exception is not catched in method2?
I have situation similar like this.
class Class1{
private Class2 obj2;
...
public bool method1(Class3 ob3j, DateTime dt){
try{
obj2.Method2(obj3, dt);
}
catch(Exception e) {
Console.WriteLine(e.ToString())
}
}
}
class Class2{
public bool method2(Class3 obj3, DateTime dt){
try{
Console.WriteLine("Class2,method2");
...
}
catch{
return false;
}
return true;
}
When I call method1 from COM client. Sometimes I got excepion from
method2 but it not catched in method2. It will catched in method1 and
exception says that it happen in method2. Exception is "Arithmetic
operation resulted in an overflow".
What could be a reason that exception is not catched in method2?