Commit 260e8b64 authored by claes's avatar claes

A trow added if class not found

parent 1dbf1cc5
/* /*
* Proview $Id: wb_volume.cpp,v 1.37 2007-09-05 13:02:13 claes Exp $ * Proview $Id: wb_volume.cpp,v 1.38 2007-09-19 15:16:01 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
...@@ -195,12 +195,16 @@ wb_cdef wb_volume::cdef(wb_object o) ...@@ -195,12 +195,16 @@ wb_cdef wb_volume::cdef(wb_object o)
pwr_tStatus sts; pwr_tStatus sts;
wb_orep *orep = o; wb_orep *orep = o;
wb_cdrep *cdrep; wb_cdrep *cdrep;
try {
if (orep->vrep() == m_vrep) if (orep->vrep() == m_vrep)
// Object in this volume // Object in this volume
cdrep = m_vrep->merep()->cdrep(&sts, *orep); cdrep = m_vrep->merep()->cdrep(&sts, *orep);
else else
// Object in other volume, get class info from this volume's meta environment // Object in other volume, get class info from this volume's meta environment
cdrep = m_vrep->erep()->cdrep(&sts, *orep); cdrep = m_vrep->erep()->cdrep(&sts, *orep);
} catch ( wb_error &e) {
return wb_cdef();
}
return wb_cdef(cdrep); return wb_cdef(cdrep);
} }
......
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