diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-09-09 01:03:15 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-09-27 13:41:46 +0200 |
| commit | dcd9afacd67975a9e20a6d1c4b3998c2890f1c16 (patch) | |
| tree | ebf27b648019ad1d1554af33172a2f92cec74b74 /src/lib/exceptions.cc | |
| parent | 7bebe412366e9156aa908d054d9fa210cc370f92 (diff) | |
Add new GLError constructor.
Diffstat (limited to 'src/lib/exceptions.cc')
| -rw-r--r-- | src/lib/exceptions.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/exceptions.cc b/src/lib/exceptions.cc index ebb607b94..3f87a2ebe 100644 --- a/src/lib/exceptions.cc +++ b/src/lib/exceptions.cc @@ -132,6 +132,13 @@ GLError::GLError (char const* last, int e) } +GLError::GLError (char const* message) + : runtime_error (message) +{ + +} + + CopyError::CopyError (string m, optional<int> n) : runtime_error (String::compose("%1%2", m, n ? String::compose(" (%1)", *n) : "")) , _message (m) |
