diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-02-10 20:04:20 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-02-10 20:04:20 +0000 |
| commit | 53fb1df6ca3848f9835b745b8ce13b0ad2196137 (patch) | |
| tree | 13e780c7bcec5201c0ad0bddb3f84b71a9a69664 /src | |
| parent | 6e5411a943ef9b3f23cfb8dd9dcc1a756b55bfbe (diff) | |
Throw some more specific exceptions on MXF file errors.
Diffstat (limited to 'src')
| -rw-r--r-- | src/picture_asset.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/picture_asset.cc b/src/picture_asset.cc index d63cdee0..e0e55979 100644 --- a/src/picture_asset.cc +++ b/src/picture_asset.cc @@ -221,7 +221,7 @@ MonoPictureAsset::construct (boost::function<string (int)> get_path) } if (ASDCP_FAILURE (mxf_writer.WriteFrame (frame_buffer, 0, 0))) { - throw MiscError ("error in writing video MXF"); + throw MXFFileError ("error in writing video MXF", this->path().string()); } if (_progress) { @@ -230,7 +230,7 @@ MonoPictureAsset::construct (boost::function<string (int)> get_path) } if (ASDCP_FAILURE (mxf_writer.Finalize())) { - throw MiscError ("error in finalising video MXF"); + throw MXFFileError ("error in finalising video MXF", path().string()); } } @@ -486,7 +486,7 @@ MonoPictureAssetWriter::write (uint8_t* data, int size) string hash; if (ASDCP_FAILURE (_state->mxf_writer.WriteFrame (_state->frame_buffer, 0, 0, &hash))) { - throw MiscError ("error in writing video MXF"); + throw MXFFileError ("error in writing video MXF", _asset->path().string()); } ++_frames_written; @@ -500,7 +500,7 @@ MonoPictureAssetWriter::fake_write (int size) assert (!_finalized); if (ASDCP_FAILURE (_state->mxf_writer.FakeWriteFrame (size))) { - throw MiscError ("error in writing video MXF"); + throw MXFFileError ("error in writing video MXF", _asset->path().string()); } ++_frames_written; @@ -512,7 +512,7 @@ MonoPictureAssetWriter::finalize () assert (!_finalized); if (ASDCP_FAILURE (_state->mxf_writer.Finalize())) { - throw MiscError ("error in finalizing video MXF"); + throw MXFFileError ("error in finalizing video MXF", _asset->path().string()); } _finalized = true; |
