OpenShot Library | libopenshot
0.3.3
|
Go to the documentation of this file.
13 #ifndef OPENSHOT_EXCEPTIONS_H
14 #define OPENSHOT_EXCEPTIONS_H
34 virtual const char*
what() const noexcept {
278 (
json.size() > 100 ?
" (abbreviated): " :
": ")
279 +
json.substr(0, 99);
318 +
" Max frames: " + std::to_string(
MaxFrames));
342 +
" Max point: " + std::to_string(
MaxPoints));
392 #define TMS_DEP_MSG "The library no longer throws this exception. It will be removed in a future release."
398 TooManySeeks :
public FileExceptionBase
InvalidOptions(std::string message, std::string file_path="")
Constructor.
virtual ~ReaderClosed() noexcept
Exception when invalid sample rate is detected during encoding.
Exception when no valid codec is found for a file.
Exception when a writer is closed, and a frame is requested.
InvalidCodec(std::string message, std::string file_path="")
Constructor.
This namespace is the default namespace for all code in the openshot library.
virtual ~NoStreamsFound() noexcept
virtual ~OutOfBoundsFrame() noexcept
virtual ~InvalidJSONKey() noexcept
InvalidChannels(std::string message, std::string file_path="")
Constructor.
virtual ~ChunkNotFound() noexcept
virtual ~DecklinkError() noexcept
ResampleError(std::string message, std::string file_path="")
Constructor.
InvalidJSONKey(std::string message, std::string json)
Constructor.
ErrorEncodingAudio(std::string message, int64_t frame_number=-1)
Constructor.
Exception for frames that are out of bounds.
Exception when encoding audio packet.
ReaderClosed(std::string message, std::string file_path="")
Constructor.
virtual ~ErrorEncodingAudio() noexcept
virtual ~OutOfMemory() noexcept
virtual ~WriterClosed() noexcept
virtual std::string py_message() const override
Exception when accessing a blackmagic decklink card.
Exception for an out of bounds key-frame point.
Exception when a required chunk is missing.
DecklinkError(std::string message)
Constructor.
NoStreamsFound(std::string message, std::string file_path="")
Constructor.
Exception when encoding audio packet.
OutOfMemory(std::string message, std::string file_path="")
Constructor.
Exception when resample fails.
std::string py_message() const override
virtual ~InvalidSampleRate() noexcept
Exception for invalid JSON.
ChunkNotFound(std::string message, int64_t frame_number, int64_t chunk_number, int64_t chunk_frame)
Constructor.
WriterClosed(std::string message, std::string file_path="")
Constructor.
InvalidJSON(std::string message, std::string file_path="")
Constructor.
Exception when memory could not be allocated.
Base exception class with a custom message variable.
virtual ~ErrorEncodingVideo() noexcept
ErrorEncodingVideo(std::string message, int64_t frame_number=-1)
Constructor.
OutOfBoundsFrame(std::string message, int64_t frame_requested, int64_t max_frames)
Constructor.
OutOfBoundsPoint(std::string message, int point_requested, int max_points)
Constructor.
virtual ~ExceptionBase() noexcept
virtual ~TooManySeeks() noexcept
std::string py_message() const override
virtual ~InvalidJSON() noexcept
virtual ~OutOfBoundsPoint() noexcept
ExceptionBase(std::string message)
Exception for files that can not be found or opened.
FrameExceptionBase(std::string message, int64_t frame_number=-1)
ErrorDecodingAudio(std::string message, int64_t frame_number=-1)
Constructor.
virtual ~InvalidFile() noexcept
Exception when a reader is closed, and a frame is requested.
virtual std::string py_message() const
FileExceptionBase(std::string message, std::string file_path="")
TooManySeeks(std::string message, std::string file_path="")
Constructor.
virtual std::string py_message() const override
InvalidFile(std::string message, std::string file_path)
Constructor.
virtual ~InvalidCodec() noexcept
virtual ~ErrorDecodingAudio() noexcept
Exception when an invalid # of audio channels are detected.
virtual const char * what() const noexcept
std::string py_message() const override
virtual ~InvalidOptions() noexcept
InvalidSampleRate(std::string message, std::string file_path="")
Constructor.
Exception when invalid encoding options are used.
Exception when decoding audio packet.
Exception when no streams are found in the file.
virtual ~InvalidChannels() noexcept
Exception for missing JSON Change key.
virtual ~ResampleError() noexcept