summaryrefslogtreecommitdiff
path: root/slicer/db/sqlSelectDeserializer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'slicer/db/sqlSelectDeserializer.cpp')
-rw-r--r--slicer/db/sqlSelectDeserializer.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/slicer/db/sqlSelectDeserializer.cpp b/slicer/db/sqlSelectDeserializer.cpp
index 2a499b6..96c58c1 100644
--- a/slicer/db/sqlSelectDeserializer.cpp
+++ b/slicer/db/sqlSelectDeserializer.cpp
@@ -7,6 +7,8 @@ namespace Slicer {
TooManyRowsReturned::TooManyRowsReturned() : std::runtime_error("Too many rows returned") { }
+ UnsupportedModelType::UnsupportedModelType() : std::invalid_argument("Unspported model type") { }
+
class SqlSource : public Slicer::ValueSource,
public Slicer::TValueSource<boost::posix_time::time_duration>,
public Slicer::TValueSource<boost::posix_time::ptime>
@@ -110,7 +112,7 @@ namespace Slicer {
DeserializeSimple(mp);
return;
default:
- throw std::invalid_argument("Unspported model type");
+ throw UnsupportedModelType();
}
}