FunctionFactoryErrors.h

Classes

FunctionFactoryError -- (full description)
UnrecognizedFunctionError -- (full description)
InvalidSerializationError -- (full description)
FieldNotFoundError -- (full description)

class FunctionFactoryError : public AipsError

Interface

Public Members
FunctionFactoryError(const String& message,Category c=GENERAL) : c(message,c)
virtual ~FunctionFactoryError() throw()

Description

Member Description

FunctionFactoryError(const String& message,Category c=GENERAL) : c(message,c)

virtual ~FunctionFactoryError() throw()


class UnrecognizedFunctionError : public FunctionFactoryError

Interface

UnrecognizedFunctionError(const String& name, Category c=INVALID_ARGUMENT) : FunctionFactoryError(String("Unrecognized function: ") + name,c), fname(name)
virtual ~UnrecognizedFunctionError() throw()
const String& getName()

Description

Member Description

UnrecognizedFunctionError(const String& name, Category c=INVALID_ARGUMENT) : FunctionFactoryError(String("Unrecognized function: ") + name,c), fname(name)

create an exception indicating that the a function of the given name is not recognized

virtual ~UnrecognizedFunctionError() throw()

const String& getName()


class InvalidSerializationError : public FunctionFactoryError

Interface

InvalidSerializationError(const String& reason,Category c=GENERAL) : FunctionFactoryError(preamble + reason,c), reas(reason)
virtual ~InvalidSerializationError() throw()
const String& getReason()

Description

Member Description

InvalidSerializationError(const String& reason,Category c=GENERAL) : FunctionFactoryError(preamble + reason,c), reas(reason)

create an exception indicating a Record serialization of a Function is invalid. The error message will be a "Invalid function description in record: " + reason.

virtual ~InvalidSerializationError() throw()

const String& getReason()


class FieldNotFoundError : public InvalidSerializationError

Interface

FieldNotFoundError(const String& field,Category c=GENERAL) : c(String("No ") + field + " defined",c), fname(field)
virtual ~FieldNotFoundError() throw()

Description

Member Description

FieldNotFoundError(const String& field,Category c=GENERAL) : c(String("No ") + field + " defined",c), fname(field)

virtual ~FieldNotFoundError() throw()