39 #if !defined(TAWARA_EXCEPTIONS_H_)
40 #define TAWARA_EXCEPTIONS_H_
45 #include <boost/exception/all.hpp>
56 struct TawaraError :
virtual std::exception,
virtual boost::exception {};
511 typedef boost::error_info<struct tag_ver, std::streamsize>
err_ver;
514 typedef boost::error_info<struct tag_pos, std::streamsize>
err_pos;
517 typedef boost::error_info<struct tag_varint, uint64_t>
err_varint;
520 typedef boost::error_info<struct tag_bufsize, std::streamsize>
err_bufsize;
523 typedef boost::error_info<struct tag_reqsize, std::streamsize>
err_reqsize;
526 typedef boost::error_info<struct tag_specsize, std::streamsize>
530 typedef boost::error_info<struct tag_id, ids::ID>
err_id;
533 typedef boost::error_info<struct tag_par_id, uint32_t>
err_par_id;
536 typedef boost::error_info<
struct tag_valid_sizes,
540 typedef boost::error_info<struct tag_el_size, std::streamsize>
err_el_size;
546 typedef boost::error_info<struct tag_int_uid, uint64_t>
err_int_uid;
549 typedef boost::error_info<struct tag_max_lace, unsigned int>
err_max_lace;
552 typedef boost::error_info<struct tag_req_lace, unsigned int>
err_req_lace;
555 typedef boost::error_info<struct tag_frame_size, std::streamsize>
562 #endif // TAWARA_EXCEPTIONS_H_
A write error was encountered during a write.
An empty frame was encountered.
A duplicate timecode was encountered in the cues.
A child element's value was set outside the allowable range.
boost::error_info< struct tag_el_size, std::streamsize > err_el_size
The size of an element.
A fixed-length element is truncated or lengthened in the file.
An empty Cues element was read or written.
The requested size of a void element is too small.
The required Tawara read version is too high.
File is not an EBML file.
An empty BlockAdditions element was read or written.
A buffer was too small for the data.
An invalid Element ID was provided.
A segment was found without at least one cluster.
boost::error_info< struct tag_reqsize, std::streamsize > err_reqsize
The required size of a buffer or a file read.
An attachments element with no attachments was read or written.
boost::error_info< struct tag_bufsize, std::streamsize > err_bufsize
The size of a buffer.
boost::error_info< struct tag_max_lace, unsigned int > err_max_lace
The maximum size of a lace.
A child element was found where it doesn't belong.
boost::error_info< struct tag_track_num, uint64_t > err_track_num
A track number.
An empty CuePoint element was read or written.
A frame with a bad size was added to a block.
boost::error_info< struct tag_ver, std::streamsize > err_ver
A version.
An invalid EBML class ID was found.
A child element's size is below or above the required size.
Something is not supported.
boost::error_info< struct tag_valid_sizes, std::vector< std::streamsize > > err_valid_sizes
A set of valid element sizes.
boost::error_info< struct tag_par_id, uint32_t > err_par_id
A parent element ID.
boost::error_info< struct tag_frame_size, std::streamsize > err_frame_size
The size of a frame.
boost::error_info< struct tag_specsize, std::streamsize > err_specsize
The specified size to encode a variable-length integer into.
boost::error_info< struct tag_varint, uint64_t > err_varint
Value of a variable-length integer.
A read error was encountered during a read.
An empty Tracks element was read or written.
A UID collision was encountered.
An invalid variable-length integer was found.
A segment was found without a segment info element.
A segment was found with multiple meta-seeks.
boost::error_info< struct tag_id, ids::ID > err_id
An Element ID.
A necessary child element was missing.
boost::error_info< struct tag_int_uid, uint64_t > err_int_uid
An integer UID.
boost::error_info< struct tag_pos, std::streamsize > err_pos
Position in a Tawara file.
A segment was found without a tracks information element.
File is not a Tawara file.
The maximum lace size for a block was exceeded.
A duplicate track number was encountered.
A variable-length integer is too large to be encoded.
boost::error_info< struct tag_req_lace, unsigned int > err_req_lace
The requested size of a lace.
An attached file with no data was read or written.
The required EBML read version is too high.
An empty block was encountered.
A read body size does not match the actual body size in the file.
A specified size for a variable-length integer is too small.
A segment or cluster was finalised before being started.