28 #ifndef OPENSHOT_EXCEPTIONS_H 29 #define OPENSHOT_EXCEPTIONS_H 49 virtual const char*
what()
const throw () {
51 return m_message.c_str();
63 ChunkNotFound(
string message, int64_t frame_number, int64_t chunk_number, int64_t chunk_frame)
64 :
BaseException(message), frame_number(frame_number), chunk_number(chunk_number), chunk_frame(chunk_frame) { }
208 :
BaseException(message), FrameRequested(frame_requested), MaxFrames(max_frames) { }
219 :
BaseException(message), PointRequested(point_requested), MaxPoints(max_points) { }
Exception when a required chunk is missing.
Exception when an invalid # of audio channels are detected.
Base exception class with a custom message variable.
Exception when encoding audio packet.
virtual ~InvalidSampleRate()
TooManySeeks(string message, string file_path)
virtual ~InvalidChannels()
virtual ~OutOfBoundsFrame()
ResampleError(string message, string file_path)
Exception when a reader is closed, and a frame is requested.
InvalidChannels(string message, string file_path)
InvalidSampleRate(string message, string file_path)
virtual ~InvalidJSONKey()
BaseException(string message)
Exception when encoding audio packet.
Exception when invalid sample rate is detected during encoding.
Exception for missing JSON Change key.
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.
ReaderClosed(string message, string file_path)
Exception for files that can not be found or opened.
ErrorEncodingAudio(string message, int64_t frame_number)
InvalidJSON(string message, string file_path)
DecklinkError(string message)
virtual ~NoStreamsFound()
OutOfMemory(string message, string file_path)
virtual ~InvalidOptions()
InvalidJSONKey(string message, string json)
WriterClosed(string message, string file_path)
InvalidFile(string message, string file_path)
virtual ~ErrorEncodingAudio()
Exception for frames that are out of bounds.
NoStreamsFound(string message, string file_path)
This namespace is the default namespace for all code in the openshot library.
virtual ~ErrorEncodingVideo()
Exception for invalid JSON.
virtual const char * what() const
Exception for an out of bounds key-frame point.
ChunkNotFound(string message, int64_t frame_number, int64_t chunk_number, int64_t chunk_frame)
OutOfBoundsPoint(string message, int point_requested, int max_points)
ErrorEncodingVideo(string message, int64_t frame_number)
InvalidCodec(string message, string file_path)
Exception when decoding audio packet.
virtual ~ErrorDecodingAudio()
ErrorDecodingAudio(string message, int64_t frame_number)
InvalidOptions(string message, string file_path)
Exception when a writer is closed, and a frame is requested.
OutOfBoundsFrame(string message, int64_t frame_requested, int64_t max_frames)
Exception when resample fails.
virtual ~OutOfBoundsPoint()
Exception when too many seek attempts happen.