Commit cfabe484 authored by claes's avatar claes

Try/catch added in ldh_ArefANameToAref

parent 2ea18ecb
/* /*
* Proview $Id: wb_ldh.cpp,v 1.55 2006-05-21 22:30:50 lw Exp $ * Proview $Id: wb_ldh.cpp,v 1.56 2006-10-10 07:40:10 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB. * Copyright (C) 2005 SSAB Oxelsund AB.
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
...@@ -1267,6 +1267,7 @@ ldh_ArefANameToAref(ldh_tSession session, pwr_sAttrRef *arp, char *aname, pwr_sA ...@@ -1267,6 +1267,7 @@ ldh_ArefANameToAref(ldh_tSession session, pwr_sAttrRef *arp, char *aname, pwr_sA
{ {
wb_session *sp = (wb_session *)session; wb_session *sp = (wb_session *)session;
try {
wb_attribute a = sp->attribute(arp); wb_attribute a = sp->attribute(arp);
if (!a) return a.sts(); if (!a) return a.sts();
...@@ -1275,6 +1276,10 @@ ldh_ArefANameToAref(ldh_tSession session, pwr_sAttrRef *arp, char *aname, pwr_sA ...@@ -1275,6 +1276,10 @@ ldh_ArefANameToAref(ldh_tSession session, pwr_sAttrRef *arp, char *aname, pwr_sA
oa.aref(oarp); oa.aref(oarp);
return oa.sts(); return oa.sts();
}
catch ( wb_error& e) {
return e.sts();
}
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment