summaryrefslogtreecommitdiff
path: root/extensions/source/abpilot
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-03-01 17:55:09 +0100
committerThomas Arnhold <thomas@arnhold.org>2011-03-02 15:00:30 +0100
commitfdeb50167836803f1a79082ddd25e4ae8ac20611 (patch)
tree3e9ff2e3cba72052ce97b0b16575791d2cdbdf6f /extensions/source/abpilot
parent096b61aa08ee37c6d6818791a7c5fb94d2f1ef7d (diff)
Move DBG_ERROR to OSL_FAIL
Diffstat (limited to 'extensions/source/abpilot')
-rw-r--r--extensions/source/abpilot/abspilot.cxx6
-rw-r--r--extensions/source/abpilot/admininvokationimpl.cxx2
-rw-r--r--extensions/source/abpilot/datasourcehandling.cxx16
-rw-r--r--extensions/source/abpilot/fieldmappingimpl.cxx8
4 files changed, 16 insertions, 16 deletions
diff --git a/extensions/source/abpilot/abspilot.cxx b/extensions/source/abpilot/abspilot.cxx
index 13ddcf175909..826657b2a283 100644
--- a/extensions/source/abpilot/abspilot.cxx
+++ b/extensions/source/abpilot/abspilot.cxx
@@ -319,7 +319,7 @@ namespace abp
case AST_EVOLUTION_GROUPWISE:
case AST_EVOLUTION_LDAP : pGuess = "Personal"; break;
default:
- DBG_ERROR( "OAddessBookSourcePilot::implDefaultTableName: unhandled case!" );
+ OSL_FAIL( "OAddessBookSourcePilot::implDefaultTableName: unhandled case!" );
return;
}
const ::rtl::OUString sGuess = ::rtl::OUString::createFromAscii( pGuess );
@@ -398,7 +398,7 @@ namespace abp
break;
case AST_INVALID:
- DBG_ERROR( "OAddessBookSourcePilot::implCreateDataSource: illegal data source type!" );
+ OSL_FAIL( "OAddessBookSourcePilot::implCreateDataSource: illegal data source type!" );
break;
}
m_eNewDataSourceType = m_aSettings.eType;
@@ -437,7 +437,7 @@ namespace abp
return new FinalPage( this );
default:
- DBG_ERROR("OAddessBookSourcePilot::createPage: invalid state!");
+ OSL_FAIL("OAddessBookSourcePilot::createPage: invalid state!");
return NULL;
}
}
diff --git a/extensions/source/abpilot/admininvokationimpl.cxx b/extensions/source/abpilot/admininvokationimpl.cxx
index 622c913201d0..3512e99cce86 100644
--- a/extensions/source/abpilot/admininvokationimpl.cxx
+++ b/extensions/source/abpilot/admininvokationimpl.cxx
@@ -123,7 +123,7 @@ namespace abp
}
catch(const Exception&)
{
- DBG_ERROR("OAdminDialogInvokation::invokeAdministration: caught an exception while executing the dialog!");
+ OSL_FAIL("OAdminDialogInvokation::invokeAdministration: caught an exception while executing the dialog!");
}
return sal_False;
}
diff --git a/extensions/source/abpilot/datasourcehandling.cxx b/extensions/source/abpilot/datasourcehandling.cxx
index acce49187c94..e0073cad0481 100644
--- a/extensions/source/abpilot/datasourcehandling.cxx
+++ b/extensions/source/abpilot/datasourcehandling.cxx
@@ -145,7 +145,7 @@ namespace abp
}
catch(const Exception&)
{
- DBG_ERROR( "lcl_implCreateAndSetURL: caught an exception while creating the data source!" );
+ OSL_FAIL( "lcl_implCreateAndSetURL: caught an exception while creating the data source!" );
}
return aReturn;
@@ -217,7 +217,7 @@ namespace abp
}
catch( const Exception& )
{
- DBG_ERROR( "ODataSourceContext::ODataSourceContext: caught an exception!" );
+ OSL_FAIL( "ODataSourceContext::ODataSourceContext: caught an exception!" );
}
}
@@ -395,7 +395,7 @@ namespace abp
}
catch(const Exception&)
{
- DBG_ERROR( "ODataSource::registerDataSource: caught an exception while creating the data source!" );
+ OSL_FAIL( "ODataSource::registerDataSource: caught an exception while creating the data source!" );
}
}
//---------------------------------------------------------------------
@@ -412,7 +412,7 @@ namespace abp
}
catch(const Exception&)
{
- DBG_ERROR( "ODataSource::registerDataSource: caught an exception while creating the data source!" );
+ OSL_FAIL( "ODataSource::registerDataSource: caught an exception while creating the data source!" );
}
}
@@ -444,7 +444,7 @@ namespace abp
}
catch(const Exception&)
{
- DBG_ERROR( "ODataSource::remove: caught an exception while creating the data source!" );
+ OSL_FAIL( "ODataSource::remove: caught an exception while creating the data source!" );
}
}
@@ -483,7 +483,7 @@ namespace abp
m_pImpl->aTables.clear();
if ( !isConnected() )
{
- DBG_ERROR( "ODataSource::getTableNames: not connected!" );
+ OSL_FAIL( "ODataSource::getTableNames: not connected!" );
}
else
{
@@ -564,7 +564,7 @@ namespace abp
catch( const SQLException& e ) { aError <<= e; }
catch( const Exception& )
{
- DBG_ERROR( "ODataSource::connect: caught a generic exception!" );
+ OSL_FAIL( "ODataSource::connect: caught a generic exception!" );
}
// ................................................................
@@ -593,7 +593,7 @@ namespace abp
}
catch( const Exception& )
{
- DBG_ERROR( "ODataSource::connect: caught an exception while trying to display the error!" );
+ OSL_FAIL( "ODataSource::connect: caught an exception while trying to display the error!" );
}
}
diff --git a/extensions/source/abpilot/fieldmappingimpl.cxx b/extensions/source/abpilot/fieldmappingimpl.cxx
index 88c6c4747d71..9c4c3b2e4bec 100644
--- a/extensions/source/abpilot/fieldmappingimpl.cxx
+++ b/extensions/source/abpilot/fieldmappingimpl.cxx
@@ -148,7 +148,7 @@ namespace abp
}
catch(const Exception&)
{
- DBG_ERROR("fieldmapping::invokeDialog: caught an exception while executing the dialog!");
+ OSL_FAIL("fieldmapping::invokeDialog: caught an exception while executing the dialog!");
}
return sal_False;
}
@@ -228,20 +228,20 @@ namespace abp
aDriverFieldAliasing.getNodeValue( sDriverProgrammatic ) >>= sDriverUI;
if ( 0 == sDriverUI.getLength() )
{
- DBG_ERROR( "fieldmapping::defaultMapping: invalid driver UI column name!");
+ OSL_FAIL( "fieldmapping::defaultMapping: invalid driver UI column name!");
}
else
_rFieldAssignment[ sAddressProgrammatic ] = sDriverUI;
}
else
{
- DBG_ERROR( "fieldmapping::defaultMapping: invalid driver programmatic name!" );
+ OSL_FAIL( "fieldmapping::defaultMapping: invalid driver programmatic name!" );
}
}
}
catch( const Exception& )
{
- DBG_ERROR("fieldmapping::defaultMapping: code is assumed to throw no exceptions!");
+ OSL_FAIL("fieldmapping::defaultMapping: code is assumed to throw no exceptions!");
// the config nodes we're using herein should not do this ....
}
}