Browse Source

Renamed WrongFileFormatException to WrongFormatException

main
gereon 12 years ago
parent
commit
fad8290844
  1. 10
      src/adapters/ExplicitModelAdapter.cpp

10
src/adapters/ExplicitModelAdapter.cpp

@ -2,7 +2,7 @@
#include "src/storage/SparseMatrix.h" #include "src/storage/SparseMatrix.h"
#include "src/utility/Settings.h" #include "src/utility/Settings.h"
#include "src/exceptions/WrongFileFormatException.h"
#include "src/exceptions/WrongFormatException.h"
#include "src/ir/Program.h" #include "src/ir/Program.h"
#include "src/ir/RewardModel.h" #include "src/ir/RewardModel.h"
@ -82,7 +82,7 @@ ExplicitModelAdapter::~ExplicitModelAdapter() {
break; break;
default: default:
LOG4CPLUS_ERROR(logger, "Error while creating model from probabilistic program: We can't handle this model type."); LOG4CPLUS_ERROR(logger, "Error while creating model from probabilistic program: We can't handle this model type.");
throw storm::exceptions::WrongFileFormatException() << "Error while creating model from probabilistic program: We can't handle this model type.";
throw storm::exceptions::WrongFormatException() << "Error while creating model from probabilistic program: We can't handle this model type.";
break; break;
} }
@ -341,7 +341,7 @@ ExplicitModelAdapter::~ExplicitModelAdapter() {
} }
if (std::abs(1 - probSum) > this->precision) { if (std::abs(1 - probSum) > this->precision) {
LOG4CPLUS_ERROR(logger, "Sum of update probabilities should be one for command:\n\t" << command.toString()); LOG4CPLUS_ERROR(logger, "Sum of update probabilities should be one for command:\n\t" << command.toString());
throw storm::exceptions::WrongFileFormatException() << "Sum of update probabilities should be one for command:\n\t" << command.toString();
throw storm::exceptions::WrongFormatException() << "Sum of update probabilities should be one for command:\n\t" << command.toString();
} }
} }
} }
@ -391,7 +391,7 @@ ExplicitModelAdapter::~ExplicitModelAdapter() {
} }
if (std::abs(1 - probSum) > this->precision) { if (std::abs(1 - probSum) > this->precision) {
LOG4CPLUS_ERROR(logger, "Sum of update probabilities should be one for command:\n\t" << command.toString()); LOG4CPLUS_ERROR(logger, "Sum of update probabilities should be one for command:\n\t" << command.toString());
throw storm::exceptions::WrongFileFormatException() << "Sum of update probabilities should be one for command:\n\t" << command.toString();
throw storm::exceptions::WrongFormatException() << "Sum of update probabilities should be one for command:\n\t" << command.toString();
} }
} }
for (auto it: resultStates) { for (auto it: resultStates) {
@ -539,7 +539,7 @@ ExplicitModelAdapter::~ExplicitModelAdapter() {
this->transitionMap[curIndex].back().second[curIndex] = 1; this->transitionMap[curIndex].back().second[curIndex] = 1;
} else { } else {
LOG4CPLUS_ERROR(logger, "Error while creating sparse matrix from probabilistic program: found deadlock state."); LOG4CPLUS_ERROR(logger, "Error while creating sparse matrix from probabilistic program: found deadlock state.");
throw storm::exceptions::WrongFileFormatException() << "Error while creating sparse matrix from probabilistic program: found deadlock state.";
throw storm::exceptions::WrongFormatException() << "Error while creating sparse matrix from probabilistic program: found deadlock state.";
} }
} }
} }

Loading…
Cancel
Save