summaryrefslogtreecommitdiff
path: root/src/exceptions.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-12-28 01:15:24 +0000
committerCarl Hetherington <cth@carlh.net>2014-12-28 01:15:24 +0000
commitea81a192a65a03b664dac61de21e06cea7aa97a2 (patch)
treef21447aeb9f24320ea6c1c4cb7a05539646bb85a /src/exceptions.cc
parent75788462338b1b4f464d075465da3cb372c40004 (diff)
Purge assert() from src/, at least (not asdcplib).
Diffstat (limited to 'src/exceptions.cc')
-rw-r--r--src/exceptions.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/exceptions.cc b/src/exceptions.cc
index b31974d4..4045021c 100644
--- a/src/exceptions.cc
+++ b/src/exceptions.cc
@@ -74,3 +74,10 @@ NotEncryptedError::NotEncryptedError (string const & what)
{
}
+
+
+ProgrammingError::ProgrammingError (string file, int line)
+ : StringError (String::compose ("Programming error at %1:%2", file, line))
+{
+
+}