DataManError.h

Classes

DataManError -- Base error class for table data manager (full description)
DataManInternalError -- Internal table data manager error (full description)
DataManUnknownCtor -- Table DataManager error; invalid data manager (full description)
DataManInvDT -- Table DataManager error; invalid data type (full description)
DataManInvOper -- Table DataManager error; invalid operation (full description)
DataManUnknownVirtualColumn -- Table DataManager error; unknown virtual column (full description)
TSMError -- Table DataManager error; error in TiledStMan (full description)

class DataManError : public AipsError

Interface

Public Members
DataManError ()
DataManError (const String& message)
~DataManError () throw()

Description

Review Status

Reviewed By:
Gareth Hunt
Date Reviewed:
94Nov17

Synopsis

This is the generic data manager exception; catching this one means catching all DataMan* exceptions. Note that you have to catch AipsError to catch all possible exceptions.

Member Description

DataManError ()

The default constructor generates the message "Table DataManager error".

DataManError (const String& message)

Construct with given message.

~DataManError () throw()


class DataManInternalError : public DataManError

Interface

DataManInternalError (const String& message)
~DataManInternalError () throw()

Description

Review Status

Reviewed By:
Gareth Hunt
Date Reviewed:
94Nov17

Synopsis

Internal data manager error (should never be thrown). If this is thrown, something is terribly wrong.

Member Description

DataManInternalError (const String& message)

Add given message to string "Internal Table DataManager error: ".

~DataManInternalError () throw()


class DataManUnknownCtor : public DataManError

Interface

DataManUnknownCtor (const String& columnName)
~DataManUnknownCtor () throw()

Description

Review Status

Reviewed By:
Gareth Hunt
Date Reviewed:
94Nov17

Synopsis

A data manager is unknown (i.e. not registered in DataManReg.cc). This means that the data manager object cannot be recreated.

Member Description

DataManUnknownCtor (const String& columnName)

This constructor generates a message that a data manager with the given name is unknown (i.e. not registered).

~DataManUnknownCtor () throw()


class DataManInvDT : public DataManError

Interface

DataManInvDT ()
DataManInvDT (const String& columnName)
~DataManInvDT () throw()

Description

Review Status

Reviewed By:
Gareth Hunt
Date Reviewed:
94Nov17

Synopsis

Invalid data type used in the data manager. The data manager found an unknown data type when doing a get or put. In principle this error should never occur.

Member Description

DataManInvDT ()

The default constructor generates a generic "invalid data type" message.

DataManInvDT (const String& columnName)

Put the name of the offending column in the "invalid data type" message.

~DataManInvDT () throw()


class DataManInvOper : public DataManError

Interface

DataManInvOper ()
DataManInvOper (const String& message)
~DataManInvOper () throw()

Description

Review Status

Reviewed By:
Gareth Hunt
Date Reviewed:
94Nov17

Synopsis

Invalid operation on a data manager. A request was done that the data manager could not handle. In principle the table system should already test on such operations and it should not bother the data manager with invalid requests. However, the data manager still tests them for safety.

Member Description

DataManInvOper ()

The default constructor generates a generic "invalid operation" message.

DataManInvOper (const String& message)

Add given message to string "Invalid DataMan operation: ".

~DataManInvOper () throw()


class DataManUnknownVirtualColumn : public DataManError

Interface

DataManUnknownVirtualColumn (const String& columnName, const String& engineName)
~DataManUnknownVirtualColumn () throw()

Description

Review Status

Reviewed By:
Gareth Hunt
Date Reviewed:
94Nov17

Synopsis

A column is unknown to the virtual column engine. This error is caused by binding a column to a virtual column engine which does not know the column name or data type.

Member Description

DataManUnknownVirtualColumn (const String& columnName, const String& engineName)

Issue a message containing the column name.

~DataManUnknownVirtualColumn () throw()


class TSMError : public DataManError

Interface

TSMError (const String& message)
~TSMError () throw()

Description

Review Status

Reviewed By:
Gareth Hunt
Date Reviewed:
94Nov17

Synopsis

An error was made when using the TiledStMan. The TiledStMan is quite complex, so it is easy to make mistakes. The TiledStMan and related classes should be studied carefully.

Member Description

TSMError (const String& message)

Issue the message prefixed by "TiledStMan: ".

~TSMError () throw()