configurationexceptions.h
272 sprintf(m_errorMessage, "Impossible to convert object of type \"%s\" to type \"%s\"", m_className, tmp);
393 sprintf(m_errorMessage, "No \"type\" parameter in the given parameter object under the \"%s\" group", m_groupName);
416 CannotFindTypeParameterException& operator=(const CannotFindTypeParameterException& other) throw()
494 sprintf(m_errorMessage, "The provided prefix (\"%s\") is not a group name, cannot ceate object", m_prefix);
596 sprintf(m_errorMessage, "Cyclic dependency discovered when creating/configuring object for group \"%s\"", m_groupName);
692 sprintf(m_errorMessage, "Trying to perform a copy of ConfigurationParameter objects during calls to getObjectFromGroup");
713 CopyDuringObjectCreationException& operator=(const CopyDuringObjectCreationException& other) throw()
777 sprintf(m_errorMessage, "A new object is requested for group \"%s\" while another one is being created or has been created but not configured", m_groupName);
800 OtherObjectBeingCreatedException& operator=(const OtherObjectBeingCreatedException& other) throw()
880 sprintf(m_errorMessage, "The parameter \"%s\" is not marked as runtime modifiable", m_paramName);
967 class FARSA_CONF_TEMPLATE TypeMismatchOnSettingRuntimeModifiableParameter : public BaseException
981 TypeMismatchOnSettingRuntimeModifiableParameter(const char* paramName, const char* paramType, const char* requestType) throw() :
990 sprintf(m_errorMessage, "Type mismatch on setting/getting parameter \"%s\" - expected \"%s\" - requested \"%s\"", m_paramName, m_paramType, m_requestType);
999 TypeMismatchOnSettingRuntimeModifiableParameter(const TypeMismatchOnSettingRuntimeModifiableParameter& other) throw() :
1017 TypeMismatchOnSettingRuntimeModifiableParameter& operator=(const TypeMismatchOnSettingRuntimeModifiableParameter& other) throw()
1135 UserDefinedCheckFailureException(const char* paramName, const char* paramValue, const char* description) throw() :
1144 sprintf(m_errorMessage, "User check failed on parameter \"%s\" - parameter value: \"%s\" - error description: %s", m_paramName, m_paramValue, m_description);
1171 UserDefinedCheckFailureException& operator=(const UserDefinedCheckFailureException& other) throw()
1388 sprintf(m_errorMessage, "The resource named \"%s\" was not declared as usable before being used", m_resourceName);
1495 sprintf(m_errorMessage, "Wrong type when requesting a resource; The type of the resource \"%s\" is not \"%s\"", m_resourceName, m_typeName);
1619 UserRequiredResourceMissingException(const char* resourceName, const char* description) throw() :
1626 sprintf(m_errorMessage, "The user requested a resource named \"%s\" which cannot be found. Error description: %s", m_resourceName, m_description);
1635 UserRequiredResourceMissingException(const UserRequiredResourceMissingException& other) throw() :
1651 UserRequiredResourceMissingException& operator=(const UserRequiredResourceMissingException& other) throw()
1747 WrongResourceLockStatusForOperation(const char* operationName, bool lockStatusLocked) throw() :
1753 sprintf(m_errorMessage, "The operation \"%s\" could not be performed because the lock on resources %s but it %s have been", m_operationName, (m_lockStatusLocked ? "was held" : "wasn't held"), (m_lockStatusLocked ? "shouldn't" : "should"));
1762 WrongResourceLockStatusForOperation(const WrongResourceLockStatusForOperation& other) throw() :
1777 WrongResourceLockStatusForOperation& operator=(const WrongResourceLockStatusForOperation& other) throw()
UserDefinedCheckFailureException(const char *paramName, const char *paramValue, const char *description)
Constructor.
Definition: configurationexceptions.h:1135
const char * resourceName() const
Returns the name of the resource not declared as usable.
Definition: configurationexceptions.h:1448
const char * className() const
Returns the name of the class that couldn't be found.
Definition: configurationexceptions.h:334
The exception thrown when casting an ParameterSettable object to the requested type fails...
Definition: configurationexceptions.h:252
const char * groupName() const
Returns the name of the group in which the cycle has been discovered.
Definition: configurationexceptions.h:838
CopyDuringObjectCreationException(const CopyDuringObjectCreationException &other)
Copy constructor.
Definition: configurationexceptions.h:701
const char * groupName() const
Returns the name of the class that couldn't be found.
Definition: configurationexceptions.h:453
const char * paramType() const
Returns the expected type of the parameter.
Definition: configurationexceptions.h:1068
CannotFindTypeParameterException(const CannotFindTypeParameterException &other)
Copy constructor.
Definition: configurationexceptions.h:402
NoRuntimeModifiableParameter & operator=(const NoRuntimeModifiableParameter &other)
Copy operator.
Definition: configurationexceptions.h:903
The exception thrown when requesting a resource that hasn't been declared as usable.
Definition: configurationexceptions.h:1373
The exception thrown when a resource has different type from requested type.
Definition: configurationexceptions.h:1475
ClassNameIsAbstractException & operator=(const ClassNameIsAbstractException &other)
Copy operator.
Definition: configurationexceptions.h:188
virtual const char * what() const
Returns a C string describing the exception.
Definition: configurationexceptions.h:646
const char * paramName() const
Returns the name of the parameter that couldn't be found.
Definition: configurationexceptions.h:940
TypeMismatchOnSettingRuntimeModifiableParameter & operator=(const TypeMismatchOnSettingRuntimeModifiableParameter &other)
Copy operator.
Definition: configurationexceptions.h:1017
ClassNameNotRegisteredException(const char *className)
Constructor.
Definition: configurationexceptions.h:58
ClassNameNotRegisteredException & operator=(const ClassNameNotRegisteredException &other)
Copy operator.
Definition: configurationexceptions.h:86
ClassNameNotRegisteredException(const ClassNameNotRegisteredException &other)
Copy constructor.
Definition: configurationexceptions.h:72
The exception thrown when a cyclic dependency is discovered during object creation using the Configur...
Definition: configurationexceptions.h:581
NoRuntimeModifiableParameter(const char *paramName)
Constructor.
Definition: configurationexceptions.h:875
Definition: configurationhelper.cpp:24
virtual const char * what() const
Returns a C string describing the exception.
Definition: configurationexceptions.h:113
WrongResourceLockStatusForOperation(const WrongResourceLockStatusForOperation &other)
Copy constructor.
Definition: configurationexceptions.h:1762
const char * resourceName() const
Returns the name of the resource that couldn't be found.
Definition: configurationexceptions.h:1343
const char * paramName() const
Returns the name of the parameter.
Definition: configurationexceptions.h:1058
virtual const char * what() const
Returns a C string describing the exception.
Definition: configurationexceptions.h:443
CopyDuringObjectCreationException & operator=(const CopyDuringObjectCreationException &other)
Copy operator.
Definition: configurationexceptions.h:713
TypeMismatchOnSettingRuntimeModifiableParameter(const TypeMismatchOnSettingRuntimeModifiableParameter &other)
Copy constructor.
Definition: configurationexceptions.h:999
virtual const char * what() const
Returns a C string describing the exception.
Definition: configurationexceptions.h:738
The exception thrown when requested class name is registered but cannot be created because it is abst...
Definition: configurationexceptions.h:150
OtherObjectBeingCreatedException(const char *groupName)
Constructor.
Definition: configurationexceptions.h:772
CannotFindTypeParameterException & operator=(const CannotFindTypeParameterException &other)
Copy operator.
Definition: configurationexceptions.h:416
UserRequiredResourceMissingException & operator=(const UserRequiredResourceMissingException &other)
Copy operator.
Definition: configurationexceptions.h:1651
The exception to throw when a user check on a parameter fails.
Definition: configurationexceptions.h:1119
The exception thrown when requesting a resource never declared.
Definition: configurationexceptions.h:1268
const char * operationName() const
Returns the name of the operation that couldn't be perfomed.
Definition: configurationexceptions.h:1826
UserRequiredResourceMissingException(const UserRequiredResourceMissingException &other)
Copy constructor.
Definition: configurationexceptions.h:1635
ResourceTypeMismatchException(const ResourceTypeMismatchException &other)
Copy constructor.
Definition: configurationexceptions.h:1504
ResourceNotUsableException(const ResourceNotUsableException &other)
Copy constructor.
Definition: configurationexceptions.h:1397
virtual const char * what() const
Returns a C string describing the exception.
Definition: configurationexceptions.h:1549
ClassNameIsAbstractException(const ClassNameIsAbstractException &other)
Copy constructor.
Definition: configurationexceptions.h:174
OtherObjectBeingCreatedException(const OtherObjectBeingCreatedException &other)
Copy constructor.
Definition: configurationexceptions.h:786
UserDefinedCheckFailureException(const UserDefinedCheckFailureException &other)
Copy constructor.
Definition: configurationexceptions.h:1153
const char * typeName() const
Returns the type name of the resource.
Definition: configurationexceptions.h:1569
The exception thrown when requested class name is not registered with the factory.
Definition: configurationexceptions.h:48
const char * className() const
Returns the name of the class that couldn't be found.
Definition: configurationexceptions.h:225
CyclicDependencyException(const char *groupName)
Constructor.
Definition: configurationexceptions.h:591
ResourceNotDeclaredException(const char *resourceName)
Constructor.
Definition: configurationexceptions.h:1278
WrongResourceLockStatusForOperation & operator=(const WrongResourceLockStatusForOperation &other)
Copy operator.
Definition: configurationexceptions.h:1777
The exception thrown when the user requests a new object for a group but there is another object for ...
Definition: configurationexceptions.h:761
const char * paramName() const
Returns the name of the parameter.
Definition: configurationexceptions.h:1212
virtual const char * what() const
Returns a C string describing the exception.
Definition: configurationexceptions.h:827
UserRequiredResourceMissingException(const char *resourceName, const char *description)
Constructor.
Definition: configurationexceptions.h:1619
virtual const char * what() const
Returns a C string describing the exception.
Definition: configurationexceptions.h:1805
const char * groupName() const
Returns the name of the group in which the cycle has been discovered.
Definition: configurationexceptions.h:657
bool lockStatusLocked() const
Returns the lock status when the exception was thrown.
Definition: configurationexceptions.h:1816
virtual const char * what() const
Returns a C string describing the exception.
Definition: configurationexceptions.h:215
CannotConvertToTypeException & operator=(const CannotConvertToTypeException &other)
Copy operator.
Definition: configurationexceptions.h:296
ClassNameIsAbstractException(const char *className)
Constructor.
Definition: configurationexceptions.h:160
The exception thrown when an operation is performed on a ConcurrentResourcesUser object but the lock ...
Definition: configurationexceptions.h:1733
CannotConvertToTypeException(const char *className, const std::type_info &destTypeId)
Constructor.
Definition: configurationexceptions.h:262
virtual const char * what() const
Returns a C string describing the exception.
Definition: configurationexceptions.h:1202
const char * resourceName() const
Returns the name of the resource.
Definition: configurationexceptions.h:1559
ResourceNotUsableException(const char *resourceName)
Constructor.
Definition: configurationexceptions.h:1383
ResourceNotUsableException & operator=(const ResourceNotUsableException &other)
Copy operator.
Definition: configurationexceptions.h:1411
PrefixNotGroupException & operator=(const PrefixNotGroupException &other)
Copy operator.
Definition: configurationexceptions.h:517
const char * description() const
Returns the error description.
Definition: configurationexceptions.h:1700
The exception to throw when a user needs a resouce during configuration which doesn't exist...
Definition: configurationexceptions.h:1606
ResourceTypeMismatchException(const char *resourceName, const char *typeName)
Constructor.
Definition: configurationexceptions.h:1488
CannotFindTypeParameterException(const char *groupName)
Constructor.
Definition: configurationexceptions.h:388
virtual ~TypeMismatchOnSettingRuntimeModifiableParameter()
Destructor.
Definition: configurationexceptions.h:1039
virtual const char * what() const
Returns a C string describing the exception.
Definition: configurationexceptions.h:1438
virtual const char * what() const
Returns a C string describing the exception.
Definition: configurationexceptions.h:1333
OtherObjectBeingCreatedException & operator=(const OtherObjectBeingCreatedException &other)
Copy operator.
Definition: configurationexceptions.h:800
const char * prefix() const
Returns the prefix that we expected to be a group but is not.
Definition: configurationexceptions.h:554
NoRuntimeModifiableParameter(const NoRuntimeModifiableParameter &other)
Copy constructor.
Definition: configurationexceptions.h:889
The exception thrown when trying to create an object from a using a prefi that is not a group...
Definition: configurationexceptions.h:481
const char * requestType() const
Returns the requested type.
Definition: configurationexceptions.h:1078
virtual const char * what() const
Returns a C string describing the exception.
Definition: configurationexceptions.h:1048
virtual ~UserRequiredResourceMissingException()
Destructor.
Definition: configurationexceptions.h:1671
ResourceTypeMismatchException & operator=(const ResourceTypeMismatchException &other)
Copy operator.
Definition: configurationexceptions.h:1520
The exception thrown when the type mismatch on the requested runtime modification of a parameter...
Definition: configurationexceptions.h:967
The exception thrown when requested to create an object from a group and the "type" parameter is not ...
Definition: configurationexceptions.h:379
virtual const char * what() const
Returns a C string describing the exception.
Definition: configurationexceptions.h:930
const std::type_info & destTypeName() const
Returns the type_info of the type to which the new object should have been converted.
Definition: configurationexceptions.h:346
const char * resourceName() const
Returns the name of the resource.
Definition: configurationexceptions.h:1690
ResourceNotDeclaredException(const ResourceNotDeclaredException &other)
Copy constructor.
Definition: configurationexceptions.h:1292
TypeMismatchOnSettingRuntimeModifiableParameter(const char *paramName, const char *paramType, const char *requestType)
Constructor.
Definition: configurationexceptions.h:981
const char * description() const
Returns the error description.
Definition: configurationexceptions.h:1232
const char * paramValue() const
Returns the value of the parameter.
Definition: configurationexceptions.h:1222
UserDefinedCheckFailureException & operator=(const UserDefinedCheckFailureException &other)
Copy operator.
Definition: configurationexceptions.h:1171
virtual const char * what() const
Returns a C string describing the exception.
Definition: configurationexceptions.h:324
const char * className() const
Returns the name of the class that couldn't be found.
Definition: configurationexceptions.h:123
CannotConvertToTypeException(const CannotConvertToTypeException &other)
Copy constructor.
Definition: configurationexceptions.h:281
ResourceNotDeclaredException & operator=(const ResourceNotDeclaredException &other)
Copy operator.
Definition: configurationexceptions.h:1306
PrefixNotGroupException(const PrefixNotGroupException &other)
Copy constructor.
Definition: configurationexceptions.h:503
The exception thrown when trying to copy a ConfigurationParameter.
Definition: configurationexceptions.h:683
CyclicDependencyException & operator=(const CyclicDependencyException &other)
Copy operator.
Definition: configurationexceptions.h:619
virtual ~WrongResourceLockStatusForOperation()
Destructor.
Definition: configurationexceptions.h:1796
WrongResourceLockStatusForOperation(const char *operationName, bool lockStatusLocked)
Constructor.
Definition: configurationexceptions.h:1747
virtual const char * what() const
Returns a C string describing the exception.
Definition: configurationexceptions.h:1680
CyclicDependencyException(const CyclicDependencyException &other)
Copy constructor.
Definition: configurationexceptions.h:605
virtual const char * what() const
Returns a C string describing the exception.
Definition: configurationexceptions.h:544
The exception thrown when requested a runtime modification of a parameter not marked as runtime modif...
Definition: configurationexceptions.h:865