diff options
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/mork/MConnection.cxx | 10 | ||||
-rw-r--r-- | connectivity/source/drivers/mork/MErrorResource.hxx | 6 |
2 files changed, 1 insertions, 15 deletions
diff --git a/connectivity/source/drivers/mork/MConnection.cxx b/connectivity/source/drivers/mork/MConnection.cxx index 03ff6372ed9c..0ca4b1712ea9 100644 --- a/connectivity/source/drivers/mork/MConnection.cxx +++ b/connectivity/source/drivers/mork/MConnection.cxx @@ -359,20 +359,10 @@ void OConnection::throwSQLException( const ErrorDescriptor& _rError, const Refer { if (_rError.getResId() != nullptr) { - OSL_ENSURE( ( _rError.getErrorCondition() == 0 ), - "OConnection::throwSQLException: unsupported error code combination!" ); - throwGenericSQLException( _rError.getResId(), _rxContext ); OSL_FAIL( "OConnection::throwSQLException: unreachable (2)!" ); } - if ( _rError.getErrorCondition() != 0 ) - { - SQLError aErrorHelper; - aErrorHelper.raiseException( _rError.getErrorCondition(), _rxContext); - OSL_FAIL( "OConnection::throwSQLException: unreachable (3)!" ); - } - throwGenericSQLException( STR_UNSPECIFIED_ERROR, _rxContext ); } diff --git a/connectivity/source/drivers/mork/MErrorResource.hxx b/connectivity/source/drivers/mork/MErrorResource.hxx index f8ab0a7ef983..0691b18134f4 100644 --- a/connectivity/source/drivers/mork/MErrorResource.hxx +++ b/connectivity/source/drivers/mork/MErrorResource.hxx @@ -28,12 +28,10 @@ namespace connectivity { private: const char* m_pErrorResourceId; - sal_Int32 m_nErrorCondition; public: ErrorDescriptor() :m_pErrorResourceId(nullptr) - ,m_nErrorCondition(0) { } @@ -44,13 +42,11 @@ namespace connectivity void reset() { m_pErrorResourceId = nullptr; - m_nErrorCondition = 0; } const char* getResId() const { return m_pErrorResourceId; } - sal_Int32 getErrorCondition() const { return m_nErrorCondition; } - bool is() const { return ( m_pErrorResourceId != nullptr ) || ( m_nErrorCondition != 0 ); } + bool is() const { return m_pErrorResourceId != nullptr; } }; } } |