summaryrefslogtreecommitdiff
path: root/src/exceptions.cc
diff options
context:
space:
mode:
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))
+{
+
+}