#include <Exception.h>
Inheritance diagram for Sct::AbstractThrowable:


Public Member Functions | |
| virtual long | sendToMrs (SEVERITY s) throw () | 
| Send the message to the message reporting service.   | |
| virtual long | sendToMrs () const throw () | 
| Send the message to the message reporting service.   | |
| virtual void | setSeverity (SEVERITY s) throw () | 
| Set the severity of this exception.   | |
| virtual SEVERITY | getSeverity () const throw () | 
| Get the severity.   | |
| virtual const char * | what () const throw () | 
| Override of std::exception::what().   | |
| virtual const Throwable * | getCause () const throw () | 
| Get the cause.   | |
| virtual shared_ptr< Throwable > | clone () const throw () | 
| Necessary for chaining of exceptions unfortunately.   | |
Protected Member Functions | |
| AbstractThrowable () throw () | |
| To ease implementation in long exception hierarchies, sub-classes can provide a default constructor then must use the initialize method in all substansive constructors.   | |
| virtual string | getMessage () const throw () | 
| Gets the detail message for this.   | |
| void | initialize (const string &id, const string &name, const string &msg, Throwable *cause, const string &file, int line) throw () | 
Protected Attributes | |
| string | id | 
| string | name | 
| string | msg | 
| string | file | 
| int | line | 
| SEVERITY | severity | 
| shared_ptr< Throwable > | cause | 
| string | text | 
An exception should not rely on adding extra parameters to an MRS message as if it is nested, it won't get this opportunity.
If a sub-class has its own data members or overrides any methods then it should override the clone() method also. Most sub-classes will probably just provide constuctors in the same pattern as shown for the Error and Exception classes.
Definition at line 93 of file Exception.h.
      
  | 
  
| 
 To ease implementation in long exception hierarchies, sub-classes can provide a default constructor then must use the initialize method in all substansive constructors. 
 Definition at line 13 of file Exception.cpp.  | 
  
      
  | 
  
| 
 Necessary for chaining of exceptions unfortunately. Should return a copy of this allocated on the heap. It is necessary for sub-classes to override this if they add new data members or if they do and special processing in what() or sentToMrs() Implements Sct::Throwable. Reimplemented in Sct::IsException, Sct::FileException, Sct::NoSuchStreamerException, Sct::IpcException, and Sct::OutOfRangeError< T >. Definition at line 60 of file Exception.cpp. Referenced by SctAnalysis::AnalysisAlgorithmMap::getAlgorithm().  | 
  
      
  | 
  
| 
 Get the cause. 
 
 Implements Sct::Throwable. Definition at line 56 of file Exception.cpp.  | 
  
      
  | 
  
| 
 Gets the detail message for this. 
 Reimplemented in Sct::IsException, Sct::FileException, Sct::NoSuchStreamerException, Sct::IpcException, and Sct::OutOfRangeError< T >. Definition at line 52 of file Exception.cpp.  | 
  
      
  | 
  
| 
 Get the severity. 
 Implements Sct::Throwable. Definition at line 32 of file Exception.cpp.  | 
  
      
  | 
  
| 
 Send the message to the message reporting service. 
 
 Implements Sct::Throwable. Definition at line 21 of file Exception.cpp.  | 
  
      
  | 
  
| 
 Send the message to the message reporting service. If you override this you should also override the clone method. 
 
 Implements Sct::Throwable. Definition at line 16 of file Exception.cpp. Referenced by Sct::IOManager::addToMap(), SctFitter::NagFitStrategy::nagFit(), SctCalibrationController::Test::publish(), SctCalibrationController::Sequence::publish(), Sct::Terminate(), Sct::Unexpected(), SctCalibrationController::Test::withdraw(), SctCalibrationController::Sequence::withdraw(), SctFitter::FitterWorkerGroup::work(), and SctArchiving::ArchivingWorkerGroup::work().  | 
  
      
  | 
  
| 
 Set the severity of this exception. 
 
 Implements Sct::Throwable. Definition at line 28 of file Exception.cpp. Referenced by SctFitter::FitAlgorithmMap::getAlgorithm(), and SctAnalysis::AnalysisAlgorithmMap::getAlgorithm().  | 
  
      
  | 
  
| 
 Override of std::exception::what(). Returns hasCause() ? msg + "\ncaused by:\n" + cause.msg : msg; If you override this you should also override the clone method. Definition at line 36 of file Exception.cpp. Referenced by SctCalibrationController::CalibrationControllerImpl::sctApiError().  | 
  
 
1.3.5