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