throw a standard exception

This commit is contained in:
Jeff Hill
2003-11-14 16:52:55 +00:00
parent 19dd302bd8
commit df1e65bc8a

View File

@@ -79,9 +79,11 @@ void dbChannelIO::write ( unsigned type, unsigned long count, const void *pValue
if ( count > LONG_MAX ) {
throw outOfBounds();
}
status = db_put_field ( &this->addr, type, pValue, static_cast <long> (count) );
status = db_put_field ( &this->addr, type, pValue,
static_cast <long> (count) );
if ( status ) {
throw -1;
throw std::logic_error (
"db_put_field() completed unsuccessfully" );
}
}