Ticket #1571 (closed: fixed)

Opened 10 years ago

Last modified 5 years ago

Catch exceptions by reference

Reported by: Michael Reuter Owned by: Michael Reuter
Priority: minor Milestone: Iteration 26
Component: Mantid Keywords:
Cc: Blocked By:
Blocking: Tester: Janik Zikovsky

Description

Catching exceptions by reference is good programming practice (see Item 13, More Effective C++ by Scott Meyers). It will also quiet those annoying warnings from Eclipse.

Change History

comment:1 Changed 10 years ago by Nick Draper

  • Owner set to Sofia Antony
  • Status changed from new to assigned

Please also send out a message to Mantid-developers@… reminding everyone of best practice

Examples in

  • API\MatrixWorkspace.cpp
  • Geometry\Rendering\OCGeometryGenerator.cpp
  • DataHandling\SaveCanSAS1d.cpp
  • DataHandling\MaskDetectors.cpp
  • DataHandling\LoadSpec.cpp
  • DataHandling\LoadSNSSpec.cpp
  • DataHandling\DetectorInfo.cpp
  • DataHandling\LoadAscii.cpp
  • DataHandling\GroupDetectors2.cpp
  • Algorithms\Unwarp.cpp
  • Algorithms\SolidAngle.cpp
  • Algorithms\SofQW.cpp
  • Algorithms\Regroup.cpp
  • Algorithms\Qxy.cpp
  • Algorithms\MedianDetectorTest.cpp
  • Algorithms\InputWSDetectorInfo.cpp
  • Algorithms\HRPDSlabCanAbsorption.cpp
  • Algorithms\GetDetectorOffsets.cpp
  • Algorithms\FlatBackground.cpp
  • Algorithms\FindPeaks.cpp
  • Algorithms\DetectorEfficiencyVariation.cpp
  • Algorithms\ConvertUnits.cpp
  • Algorithms\ChangeBinOffset.cpp
  • Algorithms\AbsorptionCorrection.cpp
  • Algorithms\AlignDetectors.cpp
  • Algorithms\ConvertSpectrumAxis.cpp
  • Nexus\LoadNexusProcessed.cpp
  • Nexus\LoadISISNexus2.cpp
  • CurveFitting\BoundaryConstraint

comment:2 Changed 10 years ago by Michael Reuter

  • Status changed from assigned to accepted
  • Owner changed from Sofia Antony to Michael Reuter
  • Component set to Mantid

comment:3 Changed 10 years ago by Michael Reuter

(In [7225]) Fixing exception catching in NeXus package. This refs #1571.

comment:4 Changed 10 years ago by Michael Reuter

(In [7226]) Fixing exception catching in API package. This refs #1571.

comment:5 Changed 10 years ago by Michael Reuter

(In [7227]) Fixing exception catching in DataHandling package. This refs #1571.

comment:6 Changed 10 years ago by Michael Reuter

(In [7228]) Fixing exception catching in Algorithms package. This refs #1571.

comment:7 Changed 10 years ago by Michael Reuter

  • Status changed from accepted to verify
  • Resolution set to fixed

All complaints fixed.

comment:8 Changed 10 years ago by Janik Zikovsky

  • Status changed from verify to verifying
  • Tester set to Janik Zikovsky

comment:9 Changed 10 years ago by Janik Zikovsky

(In [8146]) Refs #1571: A few exceptions were not caught by reference.

comment:10 Changed 10 years ago by Janik Zikovsky

  • Status changed from verifying to closed

comment:11 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 2418

Note: See TracTickets for help on using tickets.