projects
/
libsub.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bump libdcp.
[libsub.git]
/
src
/
exceptions.cc
diff --git
a/src/exceptions.cc
b/src/exceptions.cc
index 4d9d29f027b1775c6fc7f0f0bb282b9cbe7a5332..72198fcefffe0bbfe4689b38b84bfe39fc84c332 100644
(file)
--- a/
src/exceptions.cc
+++ b/
src/exceptions.cc
@@
-1,5
+1,5
@@
/*
/*
- Copyright (C) 2014-20
15
Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2014-20
21
Carl Hetherington <cth@carlh.net>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-20,6
+20,7
@@
#include "compose.hpp"
#include "exceptions.h"
#include "compose.hpp"
#include "exceptions.h"
+using std::list;
using std::string;
using namespace sub;
using std::string;
using namespace sub;
@@
-28,3
+29,10
@@
ProgrammingError::ProgrammingError (string file, int line)
{
}
{
}
+
+SubripError::SubripError (string saw, string expecting, list<string> context)
+ : runtime_error ("Error in SubRip file: saw " + (saw.empty() ? "an empty string" : saw) + " when expecting " + expecting)
+ , _context (context)
+{
+
+}