LOG4CPLUS_ERROR(logger,"ArgumentBuilder::addValidationFunction: Tried adding a Validation-Function for a \""<<ArgumentTypeHelper::toString(ArgumentType::funcName)<<"\" Argument, but this Argument is configured to be of Type \""<<ArgumentTypeHelper::toString(this->argumentType)<<"\".");\
throwstorm::exceptions::IllegalFunctionCallException()<<"Tried adding a Validation-Function for a \""<<ArgumentTypeHelper::toString(ArgumentType::funcName)<<"\" Argument, but this Argument is configured to be of Type \""<<ArgumentTypeHelper::toString(this->argumentType)<<"\".";\
throwstorm::exceptions::IllegalFunctionCallException()<<"Tried adding a Validation-Function for a \""<<ArgumentTypeHelper::toString(ArgumentType::funcName)<<"\" Argument, but this Argument is configured to be of Type \""<<ArgumentTypeHelper::toString(this->argumentType)<<"\".";\
LOG4CPLUS_ERROR(logger,"ArgumentBuilder::addValidationFunction: Tried adding a Validation-Function for an Argument which has a Default Value set which is rejected by this Validation-Function:\r\n"<<errorMessageTarget);\
throwstorm::exceptions::IllegalArgumentValueException()<<"Tried adding a Validation-Function for an Argument which has a Default Value set which is rejected by this Validation-Function:\r\n"<<errorMessageTarget;\
throwstorm::exceptions::IllegalArgumentValueException()<<"Tried adding a Validation-Function for an Argument which has a Default Value set which is rejected by this Validation-Function:\r\n"<<errorMessageTarget;\
LOG4CPLUS_ERROR(logger,"ArgumentBuilder::addValidationFunction: Tried adding a default Value for a \""<<ArgumentTypeHelper::toString(ArgumentType::String)<<"\" Argument, but the Argument \""<<this->argumentName<<"\" is configured to be of Type \""<<ArgumentTypeHelper::toString(this->argumentType)<<"\".");\
throwstorm::exceptions::IllegalFunctionCallException()<<"Tried adding a default Value for a \""<<ArgumentTypeHelper::toString(ArgumentType::String)<<"\" Argument, but the Argument \""<<this->argumentName<<"\" is configured to be of Type \""<<ArgumentTypeHelper::toString(this->argumentType)<<"\".";\
throwstorm::exceptions::IllegalFunctionCallException()<<"Tried adding a default Value for a \""<<ArgumentTypeHelper::toString(ArgumentType::String)<<"\" Argument, but the Argument \""<<this->argumentName<<"\" is configured to be of Type \""<<ArgumentTypeHelper::toString(this->argumentType)<<"\".";\
LOG4CPLUS_ERROR(logger,"ArgumentBuilder::setDefaultValue: Tried adding a default Value for the Argument \""<<this->argumentName<<"\", but a Validation Function rejected it:\r\n"<<errorMessageTarget);\
throwstorm::exceptions::IllegalArgumentValueException()<<"Tried adding a default Value for the Argument \""<<this->argumentName<<"\", but a Validation Function rejected it:\r\n"<<errorMessageTarget;\
throwstorm::exceptions::IllegalArgumentValueException()<<"Tried adding a default Value for the Argument \""<<this->argumentName<<"\", but a Validation Function rejected it:\r\n"<<errorMessageTarget;\
}\
}\
this->hasDefaultValue=true;\
this->hasDefaultValue=true;\
@ -121,7 +117,6 @@ namespace storm {
ArgumentBase*build(){
ArgumentBase*build(){
if(this->hasBeenBuild){
if(this->hasBeenBuild){
LOG4CPLUS_ERROR(logger,"ArgumentBuilder::build: Called build() on an instance of ArgumentBuilder which has already build an Instance.");
throwstorm::exceptions::IllegalFunctionCallException()<<"Called build() on an instance of ArgumentBuilder which has already build an Instance.";
throwstorm::exceptions::IllegalFunctionCallException()<<"Called build() on an instance of ArgumentBuilder which has already build an Instance.";
}
}
this->hasBeenBuild=true;
this->hasBeenBuild=true;
@ -163,7 +158,6 @@ namespace storm {
}
}
break;
break;
default:{
default:{
LOG4CPLUS_ERROR(logger,"ArgumentBuilder::build: Missing Case in ArgumentBuilder's switch/case Code.");
throwstorm::exceptions::InternalTypeErrorException()<<"Missing Case in ArgumentBuilder's switch/case Code.";
throwstorm::exceptions::InternalTypeErrorException()<<"Missing Case in ArgumentBuilder's switch/case Code.";
}
}
}
}
@ -252,7 +246,6 @@ namespace storm {
}
}
break;
break;
default:{
default:{
LOG4CPLUS_ERROR(logger,"ArgumentBuilder::build: Missing Case in ArgumentBuilder's switch/case Code.");
throwstorm::exceptions::InternalTypeErrorException()<<"Error: Missing Case in ArgumentBuilder's switch/case Code.";
throwstorm::exceptions::InternalTypeErrorException()<<"Error: Missing Case in ArgumentBuilder's switch/case Code.";