From ea454d8c6eabe0dfa3e82b36e5813012cf93395c Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 13 Dec 2020 21:22:00 +0100 Subject: Throw an exception on making a DCP with no reels. --- src/exceptions.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/exceptions.cc') diff --git a/src/exceptions.cc b/src/exceptions.cc index ebe8609a..37e699e6 100644 --- a/src/exceptions.cc +++ b/src/exceptions.cc @@ -169,3 +169,11 @@ UnknownChannelIdError::UnknownChannelIdError (std::string id) { } + + +NoReelsError::NoReelsError () + : runtime_error ("Cannot make a DCP when no reels have been added") +{ + +} + -- cgit v1.2.3