LOG4CPLUS_ERROR(logger,"Argument::unify: While unifying Argument \""<<this->getArgumentName()<<"\" and Argument \""<<rhs.getArgumentName()<<"\": Type Missmatch: \""<<ArgumentTypeHelper::toString(this->getArgumentType())<<"\" against\""<<ArgumentTypeHelper::toString(rhs.getArgumentType())<<"\"");
throwstorm::exceptions::ArgumentUnificationException()<<"While unifying Argument \""<<this->getArgumentName()<<"\" and Argument \""<<rhs.getArgumentName()<<"\": Type Missmatch: \""<<ArgumentTypeHelper::toString(this->getArgumentType())<<"\" against\""<<ArgumentTypeHelper::toString(rhs.getArgumentType())<<"\"";
LOG4CPLUS_ERROR(logger,"Argument::unify: While unifying argument \""<<this->getArgumentName()<<"\" and argument \""<<rhs.getArgumentName()<<"\": Types do not match (\""<<ArgumentTypeHelper::toString(this->getArgumentType())<<"\" and\""<<ArgumentTypeHelper::toString(rhs.getArgumentType())<<"\").");
throwstorm::exceptions::ArgumentUnificationException()<<"While unifying Argument \""<<this->getArgumentName()<<"\" and argument \""<<rhs.getArgumentName()<<"\": Types do not match (\""<<ArgumentTypeHelper::toString(this->getArgumentType())<<"\" and\""<<ArgumentTypeHelper::toString(rhs.getArgumentType())<<"\").";
}
if(this->getIsOptional()!=rhs.getIsOptional()){
LOG4CPLUS_ERROR(logger,"Argument::unify: While unifying Argument \""<<this->getArgumentName()<<"\" and Argument \""<<rhs.getArgumentName()<<"\": IsOptional Missmatch!");
throwstorm::exceptions::ArgumentUnificationException()<<"While unifying Argument \""<<this->getArgumentName()<<"\" and Argument \""<<rhs.getArgumentName()<<"\": IsOptional Missmatch!";
LOG4CPLUS_ERROR(logger,"Argument::unify: While unifying argument \""<<this->getArgumentName()<<"\" and argument \""<<rhs.getArgumentName()<<"\": Both must either be optional or non-optional.");
throwstorm::exceptions::ArgumentUnificationException()<<"While unifying argument \""<<this->getArgumentName()<<"\" and argument \""<<rhs.getArgumentName()<<"\": Both must either be optional or non-optional.";
LOG4CPLUS_ERROR(logger,"Argument::unify: While unifying Argument \""<<this->getArgumentName()<<"\" and Argument \""<<rhs.getArgumentName()<<"\": defaultValue Missmatch!");
throwstorm::exceptions::ArgumentUnificationException()<<"While unifying Argument \""<<this->getArgumentName()<<"\" and Argument \""<<rhs.getArgumentName()<<"\": defaultValue Missmatch!";
LOG4CPLUS_ERROR(logger,"Argument::unify: While unifying argument \""<<this->getArgumentName()<<"\" and argument \""<<rhs.getArgumentName()<<"\": Mismatching default values.");
throwstorm::exceptions::ArgumentUnificationException()<<"While unifying argument \""<<this->getArgumentName()<<"\" and argument \""<<rhs.getArgumentName()<<"\": Mismatching default values.";
LOG4CPLUS_WARN(logger,"Argument::unify: While unifying Argument \""<<this->getArgumentName()<<"\" and Argument \""<<rhs.getArgumentName()<<"\": descriptions Missmatch!");
LOG4CPLUS_WARN(logger,"Argument::unify: While unifying argument \""<<this->getArgumentName()<<"\" and argument \""<<rhs.getArgumentName()<<"\": Mismatching descriptions.");
LOG4CPLUS_WARN(logger,"Argument::unify: While unifying Argument \""<<this->getArgumentName()<<"\" and Argument \""<<rhs.getArgumentName()<<"\": ArgumentName Missmatch!");
LOG4CPLUS_WARN(logger,"Argument::unify: While unifying argument \""<<this->getArgumentName()<<"\" and argument \""<<rhs.getArgumentName()<<"\": Mismatching descriptions.");
}
//AddValidationfunctions
@ -134,8 +134,8 @@ namespace storm {
TgetArgumentValue()const{
if(!this->getHasBeenSet()){
LOG4CPLUS_ERROR(logger,"Argument::getArgumentValue: Called getArgumentValue() on Argument\""<<this->getArgumentName()<<"\", but it was never set and does not contain a default value.");
throwstorm::exceptions::IllegalFunctionCallException()<<"Called getArgumentValue() on Argument\""<<this->getArgumentName()<<"\", but it was never set and does not contain a default value.";
LOG4CPLUS_ERROR(logger,"Argument::getArgumentValue: Unable to retrieve argument of option\""<<this->getArgumentName()<<"\", because it was never set and does not specify a default value.");
throwstorm::exceptions::IllegalFunctionCallException()<<"Unable to retrieve argument of option\""<<this->getArgumentName()<<"\", because it was never set and does not specify a default value.";
}
returnthis->argumentValue;
}
@ -150,14 +150,14 @@ namespace storm {
voidsetFromDefaultValue()override{
if(!this->hasDefaultValue){
LOG4CPLUS_ERROR(logger,"Argument::setFromDefaultValue: The Argument \""<<this->getArgumentName()<<"\" ("<<this->getArgumentDescription()<<") was asked to set its default value but none was set!");
throwstorm::exceptions::IllegalFunctionCallException()<<"The Argument \""<<this->getArgumentName()<<"\" ("<<this->getArgumentDescription()<<") was asked to set its default value but none was set!";
LOG4CPLUS_ERROR(logger,"Argument::setFromDefaultValue: Unable to retrieve default value for argument \""<<this->getArgumentName()<<"\" ("<<this->getArgumentDescription()<<").");
throwstorm::exceptions::IllegalFunctionCallException()<<"Unable to retrieve default value for argument \""<<this->getArgumentName()<<"\" ("<<this->getArgumentDescription()<<").";
LOG4CPLUS_ERROR(logger,"Argument::setFromDefaultValue: While parsing a given configuration the Argument \""<<this->getArgumentName()<<"\" ("<<this->getArgumentDescription()<<") could not receive its Default Value as it was rejected by its Validation Functions with message: "<<result.second);
throwstorm::exceptions::IllegalArgumentValueException()<<"While parsing a given configuration the Argument \""<<this->getArgumentName()<<"\" ("<<this->getArgumentDescription()<<") could not receive its Default Value as it was rejected by its Validation Functions with message: "<<result.second;
LOG4CPLUS_ERROR(logger,"Argument::setFromDefaultValue: Unable to assign default value to argument \""<<this->getArgumentName()<<"\" ("<<this->getArgumentDescription()<<"), because default value was rejected ("<<result.second<<").");
throwstorm::exceptions::IllegalArgumentValueException()<<"Unable to assign default value to argument \""<<this->getArgumentName()<<"\" ("<<this->getArgumentDescription()<<"), because default value was rejected ("<<result.second<<").";
LOG4CPLUS_ERROR(logger,"Argument::getValueAsInteger() was called on Argument \""<<getArgumentName()<<"\" of Type \""<<ArgumentTypeHelper::toString(getArgumentType())<<"\"!");
throwstorm::exceptions::IllegalFunctionCallException()<<"getValueAsInteger() was called on Argument \""<<getArgumentName()<<"\" of Type \""<<ArgumentTypeHelper::toString(getArgumentType())<<"\"!";
LOG4CPLUS_ERROR(logger,"Argument::getValueAsInteger(): Unable to retrieve value of argument \""<<getArgumentName()<<"\" of type \""<<ArgumentTypeHelper::toString(getArgumentType())<<"\" as integer.");
throwstorm::exceptions::IllegalFunctionCallException()<<"Unable to retrieve value of argument \""<<getArgumentName()<<"\" of type \""<<ArgumentTypeHelper::toString(getArgumentType())<<"\" as integer.";
LOG4CPLUS_ERROR(logger,"Argument::getValueAsUnsignedInteger() was called on Argument \""<<getArgumentName()<<"\" of Type \""<<ArgumentTypeHelper::toString(getArgumentType())<<"\"!");
throwstorm::exceptions::IllegalFunctionCallException()<<"Error: getValueAsUnsignedInteger() was called on Argument \""<<getArgumentName()<<"\" of Type \""<<ArgumentTypeHelper::toString(getArgumentType())<<"\"!";
LOG4CPLUS_ERROR(logger,"Argument::getValueAsUnsignedInteger(): Unable to retrieve value of argument \""<<getArgumentName()<<"\" of type \""<<ArgumentTypeHelper::toString(getArgumentType())<<"\" as unsigned integer.");
throwstorm::exceptions::IllegalFunctionCallException()<<"Unable to retrieve value of argument \""<<getArgumentName()<<"\" of type \""<<ArgumentTypeHelper::toString(getArgumentType())<<"\" as unsigned integer.";
LOG4CPLUS_ERROR(logger,"Argument::getValueAsDouble() was called on Argument \""<<getArgumentName()<<"\" of Type \""<<ArgumentTypeHelper::toString(getArgumentType())<<"\"!");
throwstorm::exceptions::IllegalFunctionCallException()<<"Error: getValueAsDouble() was called on Argument \""<<getArgumentName()<<"\" of Type \""<<ArgumentTypeHelper::toString(getArgumentType())<<"\"!";
LOG4CPLUS_ERROR(logger,"Argument::getValueAsDouble(): Unable to retrieve value of argument \""<<getArgumentName()<<"\" of type \""<<ArgumentTypeHelper::toString(getArgumentType())<<"\" as double.");
throwstorm::exceptions::IllegalFunctionCallException()<<"Unable to retrieve value of argument \""<<getArgumentName()<<"\" of type \""<<ArgumentTypeHelper::toString(getArgumentType())<<"\" as double.";
LOG4CPLUS_ERROR(logger,"Argument::getValueAsBoolean() was called on Argument \""<<getArgumentName()<<"\" of Type \""<<ArgumentTypeHelper::toString(getArgumentType())<<"\"!");
throwstorm::exceptions::IllegalFunctionCallException()<<"Error: getValueAsBoolean() was called on Argument \""<<getArgumentName()<<"\" of Type \""<<ArgumentTypeHelper::toString(getArgumentType())<<"\"!";
LOG4CPLUS_ERROR(logger,"Argument::getValueAsBoolean(): Unable to retrieve value of argument \""<<getArgumentName()<<"\" of type \""<<ArgumentTypeHelper::toString(getArgumentType())<<"\" as boolean.");
throwstorm::exceptions::IllegalFunctionCallException()<<"Unable to retrieve value of argument \""<<getArgumentName()<<"\" of type \""<<ArgumentTypeHelper::toString(getArgumentType())<<"\" as boolean.";
LOG4CPLUS_ERROR(logger,"Argument::setDefaultValue: Illegal Default Value for Argument \""<<this->getArgumentName()<<"\".\nThe Validation Function rejected the Value: "<<errorText);
throwstorm::exceptions::IllegalArgumentValueException()<<"Illegal Default Value for Argument \""<<this->getArgumentName()<<"\".\nThe Validation Function rejected the Value: "<<errorText;
LOG4CPLUS_ERROR(logger,"Argument::setDefaultValue: Illegal default value for argument \""<<this->getArgumentName()<<"\"."<<std::endl<<"The validation function rejected the value ("<<errorText<<").");
throwstorm::exceptions::IllegalArgumentValueException()<<"Illegal default value for argument \""<<this->getArgumentName()<<"\". The validation function rejected the value ("<<errorText<<").";