casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes | List of all members
casacore::MSSelectionErrorHandler Class Reference

#include <MSSelectionErrorHandler.h>

Inheritance diagram for casacore::MSSelectionErrorHandler:
casacore::MSSelectionLogError casacore::MSSSpwErrorHandler casacore::UDFMSCalErrorHandler

Public Member Functions

 MSSelectionErrorHandler ()
 The default constructor generates the message "Table error". More...
 
 MSSelectionErrorHandler (const MSSelectionErrorHandler &that)
 
MSSelectionErrorHandleroperator= (const MSSelectionErrorHandler &that)
 
virtual MSSelectionErrorHandlerclone ()
 
virtual ~MSSelectionErrorHandler ()
 
virtual void reportError (const char *token, const String source=String(""))
 
virtual String constructMessage ()
 
virtual void reset ()
 
virtual void handleError (MSSelectionError &)
 
const std::vector< String > & getMessages () const
 
Int nMessages () const
 

Protected Attributes

std::vector< StringtokenList
 
std::vector< StringmessageList
 

Detailed Description

Intended use:

Public interface

Review Status

Reviewed By:
UNKNOWN

Synopsis

The top-level generic MSSelection error handler class. The handleError() overloadable method takes the action of reporting the error. The handleError() method of this defualt handler constructs a message string and throws an exception of the type supplied. This operation has been factored out into this object to allow more control on the error handler mechanism from outside.

Definition at line 62 of file MSSelectionErrorHandler.h.

Constructor & Destructor Documentation

casacore::MSSelectionErrorHandler::MSSelectionErrorHandler ( )

The default constructor generates the message "Table error".

Referenced by clone().

casacore::MSSelectionErrorHandler::MSSelectionErrorHandler ( const MSSelectionErrorHandler that)
virtual casacore::MSSelectionErrorHandler::~MSSelectionErrorHandler ( )
virtual

Member Function Documentation

virtual MSSelectionErrorHandler* casacore::MSSelectionErrorHandler::clone ( )
inlinevirtual

Reimplemented in casacore::MSSelectionLogError.

Definition at line 70 of file MSSelectionErrorHandler.h.

References MSSelectionErrorHandler().

virtual String casacore::MSSelectionErrorHandler::constructMessage ( )
virtual
const std::vector<String>& casacore::MSSelectionErrorHandler::getMessages ( ) const
inline

Definition at line 79 of file MSSelectionErrorHandler.h.

References messageList.

virtual void casacore::MSSelectionErrorHandler::handleError ( MSSelectionError )
virtual
Int casacore::MSSelectionErrorHandler::nMessages ( ) const
inline

Definition at line 81 of file MSSelectionErrorHandler.h.

References messageList.

MSSelectionErrorHandler& casacore::MSSelectionErrorHandler::operator= ( const MSSelectionErrorHandler that)
virtual void casacore::MSSelectionErrorHandler::reportError ( const char *  token,
const String  source = String("") 
)
virtual

Reimplemented in casacore::UDFMSCalErrorHandler.

virtual void casacore::MSSelectionErrorHandler::reset ( )
virtual

Member Data Documentation

std::vector<String> casacore::MSSelectionErrorHandler::messageList
protected
std::vector<String> casacore::MSSelectionErrorHandler::tokenList
protected

Definition at line 85 of file MSSelectionErrorHandler.h.


The documentation for this class was generated from the following file: