From 8a3dd9b8912a18713dcfcda44c813317c3cd1262 Mon Sep 17 00:00:00 2001 From: fps Date: Thu, 12 Sep 2013 14:52:33 +0000 Subject: [PATCH] fix error message --- src/XAO/XAO_BooleanField.cxx | 2 +- src/XAO/XAO_DoubleField.cxx | 2 +- src/XAO/XAO_Field.hxx | 2 +- src/XAO/XAO_IntegerField.cxx | 2 +- src/XAO/XAO_StringField.cxx | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/XAO/XAO_BooleanField.cxx b/src/XAO/XAO_BooleanField.cxx index d8139d50b..4454e01d6 100644 --- a/src/XAO/XAO_BooleanField.cxx +++ b/src/XAO/XAO_BooleanField.cxx @@ -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); diff --git a/src/XAO/XAO_DoubleField.cxx b/src/XAO/XAO_DoubleField.cxx index 2a3fa3ab4..a8f96ad72 100644 --- a/src/XAO/XAO_DoubleField.cxx +++ b/src/XAO/XAO_DoubleField.cxx @@ -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); diff --git a/src/XAO/XAO_Field.hxx b/src/XAO/XAO_Field.hxx index 48d0dcdd5..3d33e46f6 100644 --- a/src/XAO/XAO_Field.hxx +++ b/src/XAO/XAO_Field.hxx @@ -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. diff --git a/src/XAO/XAO_IntegerField.cxx b/src/XAO/XAO_IntegerField.cxx index 133e7cbdc..b7ac73c48 100644 --- a/src/XAO/XAO_IntegerField.cxx +++ b/src/XAO/XAO_IntegerField.cxx @@ -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); diff --git a/src/XAO/XAO_StringField.cxx b/src/XAO/XAO_StringField.cxx index de28bb073..07e8c708e 100644 --- a/src/XAO/XAO_StringField.cxx +++ b/src/XAO/XAO_StringField.cxx @@ -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); -- 2.39.2