fix error message

This commit is contained in:
fps 2013-09-12 14:52:33 +00:00
parent 20a20de3ac
commit 8a3dd9b891
5 changed files with 5 additions and 5 deletions

View File

@ -46,7 +46,7 @@ BooleanStep* BooleanField::addStep(const int& step, const int& stamp)
throw (XAO_Exception)
{
if (hasStep(step))
throw XAO_Exception(MsgBuilder() << "Step with number " << step << "already exists.");
throw XAO_Exception(MsgBuilder() << "Step with number " << step << " already exists.");
BooleanStep* bstep = new BooleanStep(step, stamp, m_nbElements, m_nbComponents);
m_steps.push_back(bstep);

View File

@ -45,7 +45,7 @@ DoubleStep* DoubleField::addStep(const int& step, const int& stamp)
throw (XAO_Exception)
{
if (hasStep(step))
throw XAO_Exception(MsgBuilder() << "Step with number " << step << "already exists.");
throw XAO_Exception(MsgBuilder() << "Step with number " << step << " already exists.");
DoubleStep* bstep = new DoubleStep(step, stamp, m_nbElements, m_nbComponents);
m_steps.push_back(bstep);

View File

@ -165,7 +165,7 @@ namespace XAO
* @param number the numer of the step.
* @return the new create step.
*/
virtual Step* addNewStep(const int& number) = 0;
virtual Step* addNewStep(const int& number) throw (XAO_Exception) = 0;
/**
* Remove a step.

View File

@ -45,7 +45,7 @@ IntegerStep* IntegerField::addStep(const int& step, const int& stamp)
throw (XAO_Exception)
{
if (hasStep(step))
throw XAO_Exception(MsgBuilder() << "Step with number " << step << "already exists.");
throw XAO_Exception(MsgBuilder() << "Step with number " << step << " already exists.");
IntegerStep* bstep = new IntegerStep(step, stamp, m_nbElements, m_nbComponents);
m_steps.push_back(bstep);

View File

@ -45,7 +45,7 @@ StringStep* StringField::addStep(const int& step, const int& stamp)
throw (XAO_Exception)
{
if (hasStep(step))
throw XAO_Exception(MsgBuilder() << "Step with number " << step << "already exists.");
throw XAO_Exception(MsgBuilder() << "Step with number " << step << " already exists.");
StringStep* bstep = new StringStep(step, stamp, m_nbElements, m_nbComponents);
m_steps.push_back(bstep);