From df1e65bc8aee65d7545530c5f7f8e92b4873722b Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Fri, 14 Nov 2003 16:52:55 +0000 Subject: [PATCH] throw a standard exception --- src/db/dbChannelIO.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/db/dbChannelIO.cpp b/src/db/dbChannelIO.cpp index 413041e01..2d522cb52 100644 --- a/src/db/dbChannelIO.cpp +++ b/src/db/dbChannelIO.cpp @@ -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 (count) ); + status = db_put_field ( &this->addr, type, pValue, + static_cast (count) ); if ( status ) { - throw -1; + throw std::logic_error ( + "db_put_field() completed unsuccessfully" ); } }