31 #ifndef OPENSHOT_EXCEPTIONS_H 32 #define OPENSHOT_EXCEPTIONS_H 51 virtual const char*
what() const noexcept {
53 return m_message.c_str();
72 ChunkNotFound(std::string message, int64_t frame_number, int64_t chunk_number, int64_t chunk_frame)
73 :
ExceptionBase(message), frame_number(frame_number), chunk_number(chunk_number), chunk_frame(chunk_frame) { }
298 :
ExceptionBase(message), FrameRequested(frame_requested), MaxFrames(max_frames) { }
316 :
ExceptionBase(message), PointRequested(point_requested), MaxPoints(max_points) { }
368 #define TMS_DEP_MSG "The library no longer throws this exception. It will be removed in a future release." 377 std::string file_path;
384 TooManySeeks(std::string message, std::string file_path=
"") __attribute__ ((deprecated(
TMS_DEP_MSG)));
385 virtual ~TooManySeeks() noexcept {}
ErrorDecodingAudio(std::string message, int64_t frame_number)
Constructor.
virtual const char * what() const noexcept
OutOfBoundsFrame(std::string message, int64_t frame_requested, int64_t max_frames)
Constructor.
virtual ~InvalidCodec() noexcept
virtual ~ExceptionBase() noexcept
InvalidFile(std::string message, std::string file_path)
Constructor.
InvalidSampleRate(std::string message, std::string file_path="")
Constructor.
ErrorEncodingAudio(std::string message, int64_t frame_number)
Constructor.
Exception when a required chunk is missing.
OutOfMemory(std::string message, std::string file_path="")
Constructor.
Exception when an invalid # of audio channels are detected.
Exception when encoding audio packet.
virtual ~InvalidFile() noexcept
virtual ~ResampleError() noexcept
ReaderClosed(std::string message, std::string file_path="")
Constructor.
virtual ~OutOfBoundsPoint() noexcept
InvalidJSONKey(std::string message, std::string json)
Constructor.
virtual ~ErrorEncodingVideo() noexcept
Exception when a reader is closed, and a frame is requested.
ErrorEncodingVideo(std::string message, int64_t frame_number)
Constructor.
Exception when encoding audio packet.
Exception when invalid sample rate is detected during encoding.
Exception for missing JSON Change key.
virtual ~InvalidJSONKey() noexcept
virtual ~InvalidSampleRate() noexcept
InvalidCodec(std::string message, std::string file_path="")
Constructor.
ResampleError(std::string message, std::string file_path="")
Constructor.
Exception when no valid codec is found for a file.
Exception when memory could not be allocated.
Exception when invalid encoding options are used.
Exception when accessing a blackmagic decklink card.
Exception when no streams are found in the file.
WriterClosed(std::string message, std::string file_path="")
Constructor.
virtual ~InvalidOptions() noexcept
Exception for files that can not be found or opened.
virtual ~OutOfBoundsFrame() noexcept
virtual ~ChunkNotFound() noexcept
InvalidJSON(std::string message, std::string file_path="")
Constructor.
virtual ~InvalidJSON() noexcept
virtual ~InvalidChannels() noexcept
NoStreamsFound(std::string message, std::string file_path="")
Constructor.
Exception for frames that are out of bounds.
DecklinkError(std::string message)
Constructor.
virtual ~WriterClosed() noexcept
This namespace is the default namespace for all code in the openshot library.
virtual ~OutOfMemory() noexcept
Exception for invalid JSON.
InvalidChannels(std::string message, std::string file_path="")
Constructor.
Exception for an out of bounds key-frame point.
virtual ~ErrorEncodingAudio() noexcept
virtual ~DecklinkError() noexcept
Exception when decoding audio packet.
ChunkNotFound(std::string message, int64_t frame_number, int64_t chunk_number, int64_t chunk_frame)
Constructor.
Exception when too many seek attempts happen.
Base exception class with a custom message variable.
InvalidOptions(std::string message, std::string file_path="")
Constructor.
Exception when resample fails.
ExceptionBase(std::string message)
virtual ~NoStreamsFound() noexcept
virtual ~ReaderClosed() noexcept
OutOfBoundsPoint(std::string message, int point_requested, int max_points)
Constructor.
virtual ~ErrorDecodingAudio() noexcept