From 3c1be211623a673764f451391f4b8bdc559c69db Mon Sep 17 00:00:00 2001 From: artemp Date: Mon, 22 May 2017 13:05:08 +0200 Subject: [PATCH] tiff_reader - use `image_reader_exception` --- src/tiff_reader.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/tiff_reader.cpp b/src/tiff_reader.cpp index 81ac112f7..ec9d3ca9b 100644 --- a/src/tiff_reader.cpp +++ b/src/tiff_reader.cpp @@ -303,7 +303,7 @@ void tiff_reader::init() if (extrasamples > 0 && sampleinfo[0] == EXTRASAMPLE_UNSPECIFIED) { - throw std::runtime_error("Unspecified provided for extra samples to tiff reader."); + throw image_reader_exception("Unspecified provided for extra samples to tiff reader."); } } // Try extracting bounding box from geoTIFF tags @@ -558,7 +558,7 @@ image_any tiff_reader::read(unsigned x, unsigned y, unsigned width, unsigned } default: { - throw std::runtime_error("tiff_reader: This sample format is not supported for this bits per sample"); + throw image_reader_exception("tiff_reader: This sample format is not supported for this bits per sample"); } } } @@ -576,7 +576,7 @@ image_any tiff_reader::read(unsigned x, unsigned y, unsigned width, unsigned } default: { - throw std::runtime_error("tiff_reader: This sample format is not supported for this bits per sample"); + throw image_reader_exception("tiff_reader: This sample format is not supported for this bits per sample"); } } } @@ -598,7 +598,7 @@ image_any tiff_reader::read(unsigned x, unsigned y, unsigned width, unsigned } default: { - throw std::runtime_error("tiff_reader: This sample format is not supported for this bits per sample"); + throw image_reader_exception("tiff_reader: This sample format is not supported for this bits per sample"); } } } @@ -620,7 +620,7 @@ image_any tiff_reader::read(unsigned x, unsigned y, unsigned width, unsigned } default: { - throw std::runtime_error("tiff_reader: This sample format is not supported for this bits per sample"); + throw image_reader_exception("tiff_reader: This sample format is not supported for this bits per sample"); } } } @@ -649,7 +649,7 @@ template template void tiff_reader::read_generic(std::size_t, std::size_t, ImageData &) { - throw std::runtime_error("tiff_reader: TODO - tiff is not stripped or tiled"); + throw image_reader_exception("tiff_reader: TODO - tiff is not stripped or tiled"); } template