Skip to content
Snippets Groups Projects
Commit 87a0e2dd authored by Rashad Kanavath's avatar Rashad Kanavath
Browse files

ENH: better error messages from ApplicationEngine

parent 89964c88
No related branches found
No related tags found
No related merge requests found
...@@ -103,7 +103,9 @@ last() : return "tata" ...@@ -103,7 +103,9 @@ last() : return "tata"
} }
else else
{ {
itkGenericExceptionMacro( "Invalid key "<<val<<". Must be in lowercase, containing alphanumerical characters or \".\""); itkGenericExceptionMacro( "Invalid key '"
<< val <<
"'. Must be in lowercase, containing alphanumerical characters or \".\"");
} }
} }
......
...@@ -31,7 +31,6 @@ ChoiceParameter::~ChoiceParameter() ...@@ -31,7 +31,6 @@ ChoiceParameter::~ChoiceParameter()
{ {
} }
void void
ChoiceParameter::AddChoice( std::string choicekey, std::string choiceName ) ChoiceParameter::AddChoice( std::string choicekey, std::string choiceName )
{ {
...@@ -117,7 +116,7 @@ ChoiceParameter::GetChoiceParameterGroupByKey( std::string choiceKey ) ...@@ -117,7 +116,7 @@ ChoiceParameter::GetChoiceParameterGroupByKey( std::string choiceKey )
} }
} }
itkExceptionMacro(<< "Cannot find " << choiceKey); itkExceptionMacro(<< "Cannot find choice key: '" << choiceKey << "'");
} }
unsigned int unsigned int
......
...@@ -120,11 +120,15 @@ ParameterGroup::AddChoice(std::string paramKey, std::string paramName) ...@@ -120,11 +120,15 @@ ParameterGroup::AddChoice(std::string paramKey, std::string paramName)
else else
{ {
itkExceptionMacro(<<parentkey << " is not a choice"); itkExceptionMacro(<<parentkey << " is not a choice");
} }
} }
else else
{ {
itkExceptionMacro(<<"No choice parameter key given"); itkExceptionMacro(
<< "No choice parameter key given: paramKey = '"
<< paramKey
<< "'");
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment