sovain

GetValue / TagException

Discussion created by sovain on May 8, 2012
Latest reply on May 10, 2012 by RyanBrown

Hello All,

 

Is there any option to catch the Exception on GetValue() when PI point is not found ex. ?

 

I noticed that the exception is occured but not catched like "catch (Exception ex)".

 

Becides that, I see the details and seems to be used TagException but it is not working as below

 

Any ideas ?

 

Thanks

 

Oleg

 
try{
    tempAFValue = CurStation.Attributes[attr_name].GetValue();
}
catch (Exception ex){    return new AFValue();}

 

Outcomes