s/catched/caught

Change-Id: I7ea6977a9749e86f8058b78cdb91cd2c62da8264
Reviewed-on: https://gerrit.libreoffice.org/39164
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin 2017-06-23 12:47:20 +02:00
parent 979c8c56b7
commit 3f3181522b
50 changed files with 82 additions and 82 deletions

View File

@ -396,7 +396,7 @@ void Container::fire( const EventBroadcastHelper &helper )
} }
catch ( css::uno::RuntimeException & ) catch ( css::uno::RuntimeException & )
{ {
OSL_ENSURE( false, "exception catched" ); OSL_ENSURE( false, "exception caught" );
// loose coupling, a runtime exception shall not break anything // loose coupling, a runtime exception shall not break anything
// TODO: log away as warning ! // TODO: log away as warning !
} }

View File

@ -93,7 +93,7 @@ OXMLHierarchyCollection::OXMLHierarchyCollection( ODBFilter& rImport
} }
catch(Exception&) catch(Exception&)
{ {
OSL_FAIL("OXMLHierarchyCollection::OXMLHierarchyCollection -> exception catched"); OSL_FAIL("OXMLHierarchyCollection::OXMLHierarchyCollection -> exception caught");
} }
} }
} }

View File

@ -129,7 +129,7 @@ void OXMLQuery::setProperties(Reference< XPropertySet > & _xProp )
} }
catch(Exception&) catch(Exception&)
{ {
OSL_FAIL("OXMLTable::EndElement -> exception catched"); OSL_FAIL("OXMLTable::EndElement -> exception caught");
} }
} }

View File

@ -172,7 +172,7 @@ void OXMLTable::setProperties(uno::Reference< XPropertySet > & _xProp )
} }
catch(Exception&) catch(Exception&)
{ {
OSL_FAIL("OXMLTable::EndElement -> exception catched"); OSL_FAIL("OXMLTable::EndElement -> exception caught");
} }
} }
@ -205,7 +205,7 @@ void OXMLTable::EndElement()
} }
catch(Exception&) catch(Exception&)
{ {
OSL_FAIL("OXMLQuery::EndElement -> exception catched"); OSL_FAIL("OXMLQuery::EndElement -> exception caught");
} }
} }

View File

@ -112,7 +112,7 @@ ErrCode ReadThroughComponent(
catch (const SAXParseException& r) catch (const SAXParseException& r)
{ {
#if OSL_DEBUG_LEVEL > 0 #if OSL_DEBUG_LEVEL > 0
SAL_WARN("dbaccess", "SAX parse exception catched while importing: " << r.Message << r.LineNumber << "," << r.ColumnNumber); SAL_WARN("dbaccess", "SAX parse exception caught while importing: " << r.Message << r.LineNumber << "," << r.ColumnNumber);
#else #else
(void)r; (void)r;
#endif #endif

View File

@ -2734,7 +2734,7 @@ namespace accessibility
} }
catch (const lang::IndexOutOfBoundsException&) catch (const lang::IndexOutOfBoundsException&)
{ {
// this one needs to be catched since this interface does not allow for it. // this one needs to be caught since this interface does not allow for it.
} }
return aResult; return aResult;
} }
@ -2750,7 +2750,7 @@ namespace accessibility
} }
catch (const lang::IndexOutOfBoundsException&) catch (const lang::IndexOutOfBoundsException&)
{ {
// this one needs to be catched since this interface does not allow for it. // this one needs to be caught since this interface does not allow for it.
} }
return nRes; return nRes;
} }

View File

@ -224,7 +224,7 @@ void SAL_CALL SvxUnoTextContent::dispose()
SolarMutexGuard aGuard; SolarMutexGuard aGuard;
if( mbDisposing ) if( mbDisposing )
return; // catched a recursion return; // caught a recursion
mbDisposing = true; mbDisposing = true;

View File

@ -179,7 +179,7 @@ Reference< XNameAccess > getColumns(const Reference< XForm > & _rxForm)
} }
catch (const Exception& e) catch (const Exception& e)
{ {
SAL_WARN( "extensions.biblio", "::getColumns : catched an exception. " << e.Message); SAL_WARN( "extensions.biblio", "::getColumns : caught an exception. " << e.Message);
} }
} }

View File

@ -417,7 +417,7 @@ void BibFrameController_Impl::dispatch(const util::URL& _rURL, const uno::Sequen
} }
catch(const Exception&) catch(const Exception&)
{ {
OSL_FAIL("Exception catched while changing the data source"); OSL_FAIL("Exception caught while changing the data source");
} }
} }
} }

View File

@ -530,7 +530,7 @@ OUStringList FilterFactory::impl_readSortedFilterListFromConfig(const OUString&
try try
{ {
css::uno::Reference< css::container::XNameAccess > xUISortConfig = officecfg::TypeDetection::UISort::ModuleDependendFilterOrder::get(xContext); css::uno::Reference< css::container::XNameAccess > xUISortConfig = officecfg::TypeDetection::UISort::ModuleDependendFilterOrder::get(xContext);
// don't check the module name here. If it does not exists, an exception is thrown and catched below. // don't check the module name here. If it does not exists, an exception is thrown and caught below.
// We return an empty list as result then. // We return an empty list as result then.
css::uno::Reference< css::container::XNameAccess > xModule; css::uno::Reference< css::container::XNameAccess > xModule;
xUISortConfig->getByName(sModule) >>= xModule; xUISortConfig->getByName(sModule) >>= xModule;

View File

@ -2474,7 +2474,7 @@ void ConvertEnhancedCustomShapeEquation( SdrObjCustomShape* pCustoShape,
catch ( ... ) catch ( ... )
{ {
EnhancedCustomShapeEquation aEquation; // #i112309# EnhancedCustomShape::Parse error EnhancedCustomShapeEquation aEquation; // #i112309# EnhancedCustomShape::Parse error
aEquation.nOperation = 0; // not catched on linux platform aEquation.nOperation = 0; // not caught on linux platform
aEquation.nPara[ 0 ] = 1; aEquation.nPara[ 0 ] = 1;
rEquations.push_back( aEquation ); rEquations.push_back( aEquation );
} }

View File

@ -214,7 +214,7 @@ void TypeDetectionExporter::doExport( const Reference< XOutputStream >& xOS, co
} }
catch( const Exception& ) catch( const Exception& )
{ {
OSL_FAIL( "TypeDetectionExporter::doExport exception catched!" ); OSL_FAIL( "TypeDetectionExporter::doExport exception caught!" );
} }
} }
@ -244,7 +244,7 @@ void TypeDetectionExporter::addProperty( const Reference< XWriter >& xHandler, c
} }
catch( const Exception& ) catch( const Exception& )
{ {
OSL_FAIL( "TypeDetectionExporter::addProperty exception catched!" ); OSL_FAIL( "TypeDetectionExporter::addProperty exception caught!" );
} }
} }
@ -275,7 +275,7 @@ void TypeDetectionExporter::addLocaleProperty( const Reference< XWriter >& xHand
} }
catch( const Exception& ) catch( const Exception& )
{ {
OSL_FAIL( "TypeDetectionExporter::addLocaleProperty exception catched!" ); OSL_FAIL( "TypeDetectionExporter::addLocaleProperty exception caught!" );
} }
} }

View File

@ -62,7 +62,7 @@ void TypeDetectionImporter::doImport( const Reference< XComponentContext >& rxCo
} }
catch( const Exception& /* e */ ) catch( const Exception& /* e */ )
{ {
OSL_FAIL( "TypeDetectionImporter::doImport exception catched!" ); OSL_FAIL( "TypeDetectionImporter::doImport exception caught!" );
} }
} }

View File

@ -224,7 +224,7 @@ bool XMLFilterJarHelper::savePackage( const OUString& rPackageURL, const XMLFilt
} }
catch( const Exception& ) catch( const Exception& )
{ {
OSL_FAIL( "XMLFilterJarHelper::savePackage exception catched!" ); OSL_FAIL( "XMLFilterJarHelper::savePackage exception caught!" );
} }
osl::File::remove( rPackageURL ); osl::File::remove( rPackageURL );
@ -294,7 +294,7 @@ void XMLFilterJarHelper::openPackage( const OUString& rPackageURL, XMLFilterVect
} }
catch( const Exception& ) catch( const Exception& )
{ {
OSL_FAIL( "XMLFilterJarHelper::savePackage exception catched!" ); OSL_FAIL( "XMLFilterJarHelper::savePackage exception caught!" );
} }
} }
@ -365,7 +365,7 @@ bool XMLFilterJarHelper::copyFile( const Reference< XHierarchicalNameAccess >& x
} }
catch( const Exception& ) catch( const Exception& )
{ {
OSL_FAIL( "XMLFilterJarHelper::copyFile exception catched" ); OSL_FAIL( "XMLFilterJarHelper::copyFile exception caught" );
} }
return false; return false;
} }

View File

@ -134,7 +134,7 @@ XMLFilterSettingsDialog::XMLFilterSettingsDialog(vcl::Window* pParent,
} }
catch(const Exception&) catch(const Exception&)
{ {
OSL_FAIL( "XMLFilterSettingsDialog::XMLFilterSettingsDialog exception catched!" ); OSL_FAIL( "XMLFilterSettingsDialog::XMLFilterSettingsDialog exception caught!" );
} }
} }
@ -427,7 +427,7 @@ OUString XMLFilterSettingsDialog::createUniqueInterfaceName( const OUString& rIn
} }
catch( const Exception& ) catch( const Exception& )
{ {
OSL_FAIL( "XMLFilterSettingsDialog::createUniqueInterfaceName exception catched!" ); OSL_FAIL( "XMLFilterSettingsDialog::createUniqueInterfaceName exception caught!" );
} }
OUString aInterfaceName( rInterfaceName ); OUString aInterfaceName( rInterfaceName );
@ -469,7 +469,7 @@ bool XMLFilterSettingsDialog::insertOrEdit( filter_info_impl* pNewInfo, const fi
} }
catch( const Exception& ) catch( const Exception& )
{ {
OSL_FAIL( "XMLFilterSettingsDialog::insertOrEdit exception catched!" ); OSL_FAIL( "XMLFilterSettingsDialog::insertOrEdit exception caught!" );
bOk = false; bOk = false;
} }
} }
@ -590,7 +590,7 @@ bool XMLFilterSettingsDialog::insertOrEdit( filter_info_impl* pNewInfo, const fi
} }
catch( const Exception& ) catch( const Exception& )
{ {
OSL_FAIL( "XMLFilterSettingsDialog::insertOrEdit exception catched!" ); OSL_FAIL( "XMLFilterSettingsDialog::insertOrEdit exception caught!" );
bOk = false; bOk = false;
} }
} }
@ -648,7 +648,7 @@ bool XMLFilterSettingsDialog::insertOrEdit( filter_info_impl* pNewInfo, const fi
} }
catch( const Exception& ) catch( const Exception& )
{ {
OSL_FAIL( "XMLFilterSettingsDialog::insertOrEdit exception catched!" ); OSL_FAIL( "XMLFilterSettingsDialog::insertOrEdit exception caught!" );
bOk = false; bOk = false;
} }
} }
@ -663,7 +663,7 @@ bool XMLFilterSettingsDialog::insertOrEdit( filter_info_impl* pNewInfo, const fi
} }
catch( const Exception& ) catch( const Exception& )
{ {
OSL_FAIL( "XMLFilterSettingsDialog::insertOrEdit exception catched!" ); OSL_FAIL( "XMLFilterSettingsDialog::insertOrEdit exception caught!" );
bOk = false; bOk = false;
} }
} }
@ -677,7 +677,7 @@ bool XMLFilterSettingsDialog::insertOrEdit( filter_info_impl* pNewInfo, const fi
} }
catch( const Exception& ) catch( const Exception& )
{ {
OSL_FAIL( "XMLFilterSettingsDialog::insertOrEdit exception catched!" ); OSL_FAIL( "XMLFilterSettingsDialog::insertOrEdit exception caught!" );
bOk = false; bOk = false;
} }
} }
@ -693,7 +693,7 @@ bool XMLFilterSettingsDialog::insertOrEdit( filter_info_impl* pNewInfo, const fi
} }
catch( const Exception& ) catch( const Exception& )
{ {
OSL_FAIL( "XMLFilterSettingsDialog::insertOrEdit exception catched!" ); OSL_FAIL( "XMLFilterSettingsDialog::insertOrEdit exception caught!" );
bOk = false; bOk = false;
} }
@ -706,7 +706,7 @@ bool XMLFilterSettingsDialog::insertOrEdit( filter_info_impl* pNewInfo, const fi
} }
catch( const Exception& ) catch( const Exception& )
{ {
OSL_FAIL( "XMLFilterSettingsDialog::insertOrEdit exception catched!" ); OSL_FAIL( "XMLFilterSettingsDialog::insertOrEdit exception caught!" );
} }
} }
@ -876,7 +876,7 @@ void XMLFilterSettingsDialog::onDelete()
} }
catch( const Exception& ) catch( const Exception& )
{ {
OSL_FAIL( "XMLFilterSettingsDialog::onDelete exception catched!" ); OSL_FAIL( "XMLFilterSettingsDialog::onDelete exception caught!" );
} }
} }
} }
@ -1204,7 +1204,7 @@ void XMLFilterSettingsDialog::initFilterList()
} }
catch( const Exception& ) catch( const Exception& )
{ {
OSL_FAIL( "XMLFilterSettingsDialog::initFilterList exception catched!" ); OSL_FAIL( "XMLFilterSettingsDialog::initFilterList exception caught!" );
} }
} }
@ -1656,7 +1656,7 @@ bool copyStreams( const Reference< XInputStream >& xIS, const Reference< XOutput
} }
catch(const Exception&) catch(const Exception&)
{ {
OSL_FAIL( "copyStreams() exception catched!" ); OSL_FAIL( "copyStreams() exception caught!" );
} }
return false; return false;

View File

@ -126,7 +126,7 @@ bool XMLFilterTabDialog::onOk()
} }
catch( const Exception& ) catch( const Exception& )
{ {
OSL_FAIL( "XMLFilterTabDialog::onOk exception catched!" ); OSL_FAIL( "XMLFilterTabDialog::onOk exception caught!" );
} }
} }
} }
@ -184,7 +184,7 @@ bool XMLFilterTabDialog::onOk()
} }
catch( const Exception& ) catch( const Exception& )
{ {
OSL_FAIL( "XMLFilterTabDialog::onOk exception catched!" ); OSL_FAIL( "XMLFilterTabDialog::onOk exception caught!" );
} }
} }
} }

View File

@ -124,7 +124,7 @@ static bool checkComponent( Reference< XComponent >& rxComponent, const OUString
} }
catch( const Exception& ) catch( const Exception& )
{ {
OSL_FAIL( "checkComponent exception catched!" ); OSL_FAIL( "checkComponent exception caught!" );
} }
return false; return false;
@ -169,7 +169,7 @@ XMLFilterTestDialog::XMLFilterTestDialog(vcl::Window* pParent,
} }
catch( const Exception& ) catch( const Exception& )
{ {
OSL_FAIL( "XMLFilterTestDialog::XMLFilterTestDialog exception catched!" ); OSL_FAIL( "XMLFilterTestDialog::XMLFilterTestDialog exception caught!" );
} }
} }
@ -187,7 +187,7 @@ void XMLFilterTestDialog::dispose()
} }
catch( const Exception& ) catch( const Exception& )
{ {
OSL_FAIL( "XMLFilterTestDialog::~XMLFilterTestDialog exception catched!" ); OSL_FAIL( "XMLFilterTestDialog::~XMLFilterTestDialog exception caught!" );
} }
delete m_pFilterInfo; delete m_pFilterInfo;
@ -526,7 +526,7 @@ void XMLFilterTestDialog::doExport( const Reference< XComponent >& xComp )
} }
catch( const Exception& ) catch( const Exception& )
{ {
OSL_FAIL( "XMLFilterTestDialog::doExport exception catched!" ); OSL_FAIL( "XMLFilterTestDialog::doExport exception caught!" );
} }
} }
@ -641,7 +641,7 @@ void XMLFilterTestDialog::import( const OUString& rURL )
} }
catch(const Exception&) catch(const Exception&)
{ {
OSL_FAIL("XMLFilterTestDialog::import catched an exception" ); OSL_FAIL("XMLFilterTestDialog::import caught an exception" );
} }
} }
@ -716,7 +716,7 @@ Reference< XComponent > XMLFilterTestDialog::getFrontMostDocument( const OUStrin
} }
catch( const Exception& ) catch( const Exception& )
{ {
OSL_FAIL( "XMLFilterTestDialog::getFrontMostDocument exception catched!" ); OSL_FAIL( "XMLFilterTestDialog::getFrontMostDocument exception caught!" );
} }
return xRet; return xRet;

View File

@ -183,7 +183,7 @@ class ODatabaseForm :public OFormComponents
rtl::Reference<OFormSubmitResetThread> m_pThread; rtl::Reference<OFormSubmitResetThread> m_pThread;
OUString m_sCurrentErrorContext; OUString m_sCurrentErrorContext;
// will be used as additional context information // will be used as additional context information
// when an exception is catched and forwarded to the listeners // when an exception is caught and forwarded to the listeners
sal_Int32 m_nResetsPending; sal_Int32 m_nResetsPending;
// <overwritten_properties> // <overwritten_properties>

View File

@ -79,7 +79,7 @@ inline bool closeIt(const css::uno::Reference< css::uno::XInterface >& xResource
{ throw; } // should not be suppressed! { throw; } // should not be suppressed!
catch(const css::uno::Exception&) catch(const css::uno::Exception&)
{ return false; } // ??? We defined to return a boolean value instead of throwing exceptions... { return false; } // ??? We defined to return a boolean value instead of throwing exceptions...
// (OK: RuntimeExceptions should not be catched inside the core..) // (OK: RuntimeExceptions should not be caught inside the core..)
return true; return true;
} }

View File

@ -25,7 +25,7 @@ enum EExitCodes {
EXITHELPER_NO_ERROR = 0, EXITHELPER_NO_ERROR = 0,
/* pipe was detected - second office must terminate itself */ /* pipe was detected - second office must terminate itself */
EXITHELPER_SECOND_OFFICE = 1, EXITHELPER_SECOND_OFFICE = 1,
/* an uno exception was catched during startup */ /* an uno exception was caught during startup */
EXITHELPER_FATAL_ERROR = 77, EXITHELPER_FATAL_ERROR = 77,
/* user force automatic restart after crash */ /* user force automatic restart after crash */
EXITHELPER_CRASH_WITH_RESTART = 79, EXITHELPER_CRASH_WITH_RESTART = 79,

View File

@ -173,7 +173,7 @@ public class _XMultiPropertySet extends MultiMethodTest {
return; return;
} }
// Change one of the property to be sure that this event was catched. // Change one of the property to be sure that this event was caught.
for (int i=0; i<testPropsAmount;i++) { for (int i=0; i<testPropsAmount;i++) {
log.print("Trying to change property " + testPropsNames[i]); log.print("Trying to change property " + testPropsNames[i]);
try { try {

View File

@ -60,7 +60,7 @@ public class _XModuleManager extends MultiMethodTest {
* value of method <CODE>indetify()</CODE> if the method was called with * value of method <CODE>indetify()</CODE> if the method was called with
* coresponding value.<p> * coresponding value.<p>
* As enhancement the method <CODE>identify()</CODE> was called with invalid * As enhancement the method <CODE>identify()</CODE> was called with invalid
* parameter. In this case the thrown exceptions was catched. * parameter. In this case the thrown exceptions were caught.
*/ */
public XModuleManager oObj = null; public XModuleManager oObj = null;
/** /**

View File

@ -147,7 +147,7 @@ void SAL_CALL OPropertyMediator::propertyChange( const PropertyChangeEvent& evt
} }
catch(Exception&) catch(Exception&)
{ {
OSL_FAIL("Exception catched!"); OSL_FAIL("Exception caught!");
} }
m_bInChange = false; m_bInChange = false;
} }

View File

@ -233,7 +233,7 @@ void OXMLCell::EndElement()
} }
catch(uno::Exception&) catch(uno::Exception&)
{ {
OSL_FAIL("OXMLCell::EndElement -> exception catched"); OSL_FAIL("OXMLCell::EndElement -> exception caught");
} }
} }
} }

View File

@ -82,7 +82,7 @@ OXMLComponent::OXMLComponent( ORptFilter& _rImport
} }
catch(const Exception&) catch(const Exception&)
{ {
OSL_FAIL("Exception catched while putting props into report component!"); OSL_FAIL("Exception caught while putting props into report component!");
} }
} }
} }

View File

@ -67,7 +67,7 @@ OXMLCondPrtExpr::OXMLCondPrtExpr( ORptFilter& _rImport,
} }
catch(const Exception&) catch(const Exception&)
{ {
OSL_FAIL("Exception catched while putting Function props!"); OSL_FAIL("Exception caught while putting Function props!");
} }
} }

View File

@ -80,7 +80,7 @@ OXMLFormatCondition::OXMLFormatCondition( ORptFilter& rImport,
} }
catch(Exception&) catch(Exception&)
{ {
OSL_FAIL("Exception catched while filling the report definition props"); OSL_FAIL("Exception caught while filling the report definition props");
} }
} }

View File

@ -75,7 +75,7 @@ OXMLFormattedField::OXMLFormattedField( ORptFilter& rImport,
} }
catch(Exception&) catch(Exception&)
{ {
OSL_FAIL("Exception catched while filling the report definition props"); OSL_FAIL("Exception caught while filling the report definition props");
} }
} }

View File

@ -88,7 +88,7 @@ OXMLFunction::OXMLFunction( ORptFilter& _rImport
} }
catch(const Exception&) catch(const Exception&)
{ {
OSL_FAIL("Exception catched while putting Function props!"); OSL_FAIL("Exception caught while putting Function props!");
} }
} }
} }
@ -118,7 +118,7 @@ void OXMLFunction::EndElement()
m_xFunction.clear(); m_xFunction.clear();
}catch(uno::Exception&) }catch(uno::Exception&)
{ {
OSL_FAIL("Exception catched!"); OSL_FAIL("Exception caught!");
} }
} }
} }

View File

@ -179,7 +179,7 @@ OXMLGroup::OXMLGroup( ORptFilter& _rImport
} }
catch(const Exception&) catch(const Exception&)
{ {
OSL_FAIL("Exception catched while putting group props!"); OSL_FAIL("Exception caught while putting group props!");
} }
} }
} }
@ -256,7 +256,7 @@ void OXMLGroup::EndElement()
m_xGroups->insertByIndex(0,uno::makeAny(m_xGroup)); m_xGroups->insertByIndex(0,uno::makeAny(m_xGroup));
}catch(uno::Exception&) }catch(uno::Exception&)
{ {
OSL_FAIL("Exception catched!"); OSL_FAIL("Exception caught!");
} }
} }

View File

@ -312,7 +312,7 @@ void OXMLHelper::copyStyleElements(const bool _bOld,const OUString& _sStyleName,
} }
catch(uno::Exception&) catch(uno::Exception&)
{ {
OSL_FAIL("OXMLHelper::copyStyleElements -> exception catched"); OSL_FAIL("OXMLHelper::copyStyleElements -> exception caught");
} }
} }
} }

View File

@ -99,7 +99,7 @@ OXMLImage::OXMLImage( ORptFilter& rImport,
} }
catch(Exception&) catch(Exception&)
{ {
OSL_FAIL("Exception catched while filling the image props"); OSL_FAIL("Exception caught while filling the image props");
} }
} }

View File

@ -241,7 +241,7 @@ void SAL_CALL ImportDocumentHandler::startElement(const OUString & _sName, const
} }
catch(uno::Exception&) catch(uno::Exception&)
{ {
OSL_FAIL("Exception catched while filling the report definition props"); OSL_FAIL("Exception caught while filling the report definition props");
} }
bExport = false; bExport = false;
} }

View File

@ -99,7 +99,7 @@ OXMLReport::OXMLReport( ORptFilter& rImport,
} }
catch(Exception&) catch(Exception&)
{ {
OSL_FAIL("Exception catched while filling the report definition props"); OSL_FAIL("Exception caught while filling the report definition props");
} }
} }

View File

@ -72,7 +72,7 @@ OXMLReportElement::OXMLReportElement( ORptFilter& rImport,
} }
catch(Exception&) catch(Exception&)
{ {
OSL_FAIL("Exception catched while filling the report definition props"); OSL_FAIL("Exception caught while filling the report definition props");
} }
} }

View File

@ -93,7 +93,7 @@ OXMLSection::OXMLSection( ORptFilter& rImport,
} }
catch(Exception&) catch(Exception&)
{ {
OSL_FAIL("Exception catched while filling the section props"); OSL_FAIL("Exception caught while filling the section props");
} }
} }

View File

@ -108,7 +108,7 @@ OXMLTable::OXMLTable( ORptFilter& rImport
} }
catch(Exception&) catch(Exception&)
{ {
OSL_FAIL("Exception catched while filling the section props"); OSL_FAIL("Exception caught while filling the section props");
} }
} }
@ -266,7 +266,7 @@ void OXMLTable::EndElement()
} }
catch(Exception&) catch(Exception&)
{ {
OSL_FAIL("OXMLTable::EndElement -> exception catched"); OSL_FAIL("OXMLTable::EndElement -> exception caught");
} }
} }

View File

@ -596,7 +596,7 @@ EditBrowseBox::RowStatus OFieldExpressionControl::GetRowStatus(long nRow) const
} }
catch(uno::Exception&) catch(uno::Exception&)
{ {
OSL_FAIL("Exception catched while try to get a group!"); OSL_FAIL("Exception caught while try to get a group!");
} }
} }
return EditBrowseBox::CLEAN; return EditBrowseBox::CLEAN;

View File

@ -343,7 +343,7 @@ void OGroupUndo::implReInsert( )
} }
catch(uno::Exception&) catch(uno::Exception&)
{ {
OSL_FAIL("Exception catched while undoing remove group"); OSL_FAIL("Exception caught while undoing remove group");
} }
} }
@ -355,7 +355,7 @@ void OGroupUndo::implReRemove( )
} }
catch(uno::Exception&) catch(uno::Exception&)
{ {
OSL_FAIL("Exception catched while redoing remove group"); OSL_FAIL("Exception caught while redoing remove group");
} }
} }

View File

@ -104,7 +104,7 @@ OReportSection::OReportSection(OSectionWindow* _pParent,const uno::Reference< re
} }
catch(uno::Exception&) catch(uno::Exception&)
{ {
OSL_FAIL("Exception catched!"); OSL_FAIL("Exception caught!");
} }
m_pFunc.reset(new DlgEdFuncSelect( this )); m_pFunc.reset(new DlgEdFuncSelect( this ));

View File

@ -825,7 +825,7 @@ struct osl_procStat
char signal[24]; /* pending signals */ char signal[24]; /* pending signals */
char blocked[24]; /* blocked signals */ char blocked[24]; /* blocked signals */
char sigignore[24]; /* ignored signals */ char sigignore[24]; /* ignored signals */
char sigcatch[24]; /* catched signals */ char sigcatch[24]; /* caught signals */
unsigned long wchan; /* 'channel' the process is waiting in */ unsigned long wchan; /* 'channel' the process is waiting in */
unsigned long nswap; /* ? */ unsigned long nswap; /* ? */
unsigned long cnswap; /* ? */ unsigned long cnswap; /* ? */

View File

@ -617,7 +617,7 @@ bool SdTransferable::WriteObject( tools::SvRef<SotStorageStream>& rxOStm, void*
} }
catch( Exception& ) catch( Exception& )
{ {
OSL_FAIL( "sd::SdTransferable::WriteObject(), exception catched!" ); OSL_FAIL( "sd::SdTransferable::WriteObject(), exception caught!" );
bRet = false; bRet = false;
} }
} }

View File

@ -231,7 +231,7 @@ void SAL_CALL SdXCustomPresentation::dispose()
SolarMutexGuard aGuard; SolarMutexGuard aGuard;
if( bDisposing ) if( bDisposing )
return; // catched a recursion return; // caught a recursion
bDisposing = true; bDisposing = true;

View File

@ -212,18 +212,18 @@ bool FmSearchEngine::MoveCursor()
catch(css::sdbc::SQLException const& e) catch(css::sdbc::SQLException const& e)
{ {
(void)e; (void)e;
SAL_WARN( "svx", "FmSearchEngine::MoveCursor: catched a DatabaseException: " << e.SQLState ); SAL_WARN( "svx", "FmSearchEngine::MoveCursor: caught a DatabaseException: " << e.SQLState );
bSuccess = false; bSuccess = false;
} }
catch(Exception const& e) catch(Exception const& e)
{ {
(void)e; (void)e;
SAL_WARN( "svx", "FmSearchEngine::MoveCursor: catched an Exception: " << e.Message); SAL_WARN( "svx", "FmSearchEngine::MoveCursor: caught an Exception: " << e.Message);
bSuccess = false; bSuccess = false;
} }
catch(...) catch(...)
{ {
OSL_FAIL("FmSearchEngine::MoveCursor : catched an unknown Exception !"); OSL_FAIL("FmSearchEngine::MoveCursor : caught an unknown Exception !");
bSuccess = false; bSuccess = false;
} }

View File

@ -940,7 +940,7 @@ namespace svxform
#ifdef DBG_UTIL #ifdef DBG_UTIL
DBG_ASSERT(bHasHiddenControlsFormat, "NavigatorTree::implExecuteDataTransfer: only copying of hidden controls is supported !"); DBG_ASSERT(bHasHiddenControlsFormat, "NavigatorTree::implExecuteDataTransfer: only copying of hidden controls is supported !");
// should be catched by AcceptDrop // should be caught by AcceptDrop
#endif #endif
// because i want to select all targets (and only them) // because i want to select all targets (and only them)

View File

@ -1247,7 +1247,7 @@ void DocxExport::WriteActiveX()
} }
catch(const uno::Exception&) catch(const uno::Exception&)
{ {
SAL_WARN("sw.ww8", "WriteActiveX() ::Failed to copy Inputstream to outputstream exception catched!"); SAL_WARN("sw.ww8", "WriteActiveX() ::Failed to copy Inputstream to outputstream exception caught!");
} }
xOutStream->closeOutput(); xOutStream->closeOutput();
@ -1381,7 +1381,7 @@ void DocxExport::WriteEmbeddings()
} }
catch(const uno::Exception&) catch(const uno::Exception&)
{ {
SAL_WARN("sw.ww8", "WriteEmbeddings() ::Failed to copy Inputstream to outputstream exception catched!"); SAL_WARN("sw.ww8", "WriteEmbeddings() ::Failed to copy Inputstream to outputstream exception caught!");
} }
xOutStream->closeOutput(); xOutStream->closeOutput();
} }

View File

@ -1289,7 +1289,7 @@ void GetPropsUsingHeadRequest(DAVResource& resource,
// clean cached value of PROPFIND property names // clean cached value of PROPFIND property names
// PROPPATCH can change them // PROPPATCH can change them
Content::removeCachedPropertyNames(aTargetURL); Content::removeCachedPropertyNames(aTargetURL);
// test if HEAD allowed, if not, throw, should be catched immediately // test if HEAD allowed, if not, throw, should be caught immediately
// SC_GONE used internally by us, see comment in Content::getPropertyValues // SC_GONE used internally by us, see comment in Content::getPropertyValues
// in the catch scope // in the catch scope
if (aDAVOptions.getHttpResponseStatusCode() != SC_GONE && if (aDAVOptions.getHttpResponseStatusCode() != SC_GONE &&

View File

@ -43,7 +43,7 @@ constants TolerantPropertySetResultType
<p>For example if a <p>For example if a
com::sun::star::beans::UnknownPropertyException com::sun::star::beans::UnknownPropertyException
was catched.</p> was caught.</p>
*/ */
const short UNKNOWN_PROPERTY = 1; const short UNKNOWN_PROPERTY = 1;
@ -51,7 +51,7 @@ constants TolerantPropertySetResultType
<p>For example if a <p>For example if a
com::sun::star::lang::IllegalArgumentException com::sun::star::lang::IllegalArgumentException
was catched.</p> was caught.</p>
*/ */
const short ILLEGAL_ARGUMENT = 2; const short ILLEGAL_ARGUMENT = 2;
@ -59,7 +59,7 @@ constants TolerantPropertySetResultType
<p>For example if a <p>For example if a
com::sun::star::beans::PropertyVetoException com::sun::star::beans::PropertyVetoException
was catched.</p> was caught.</p>
*/ */
const short PROPERTY_VETO = 3; const short PROPERTY_VETO = 3;

View File

@ -58,7 +58,7 @@
#define SVTVIEWOPTIONS_LOG_UNEXPECTED_EXCEPTION(SVTVIEWOPTIONS_LOG_UNEXPECTED_EXCEPTION_PARAM_EXCEPTION) \ #define SVTVIEWOPTIONS_LOG_UNEXPECTED_EXCEPTION(SVTVIEWOPTIONS_LOG_UNEXPECTED_EXCEPTION_PARAM_EXCEPTION) \
{ \ { \
OUStringBuffer sMsg(256); \ OUStringBuffer sMsg(256); \
sMsg.append("Unexpected exception catched. Original message was:\n\"" ); \ sMsg.append("Unexpected exception caught. Original message was:\n\"" ); \
sMsg.append (SVTVIEWOPTIONS_LOG_UNEXPECTED_EXCEPTION_PARAM_EXCEPTION.Message); \ sMsg.append (SVTVIEWOPTIONS_LOG_UNEXPECTED_EXCEPTION_PARAM_EXCEPTION.Message); \
sMsg.append("\"" ); \ sMsg.append("\"" ); \
} }

View File

@ -98,7 +98,7 @@ int main( int argc,char* argv[] )
} }
catch( ... ) catch( ... )
{ {
printf( "catched exception" ); printf( "caught exception" );
throw; throw;
} }
return 0; return 0;