DUDS
Distributed Update of Data from Something
BppImageErrors.hpp
Go to the documentation of this file.
1 /*
2  * This file is part of the DUDS project. It is subject to the BSD-style
3  * license terms in the LICENSE file found in the top-level directory of this
4  * distribution and at https://github.com/jjackowski/duds/blob/master/LICENSE.
5  * No part of DUDS, including this file, may be copied, modified, propagated,
6  * or distributed except according to the terms contained in the LICENSE file.
7  *
8  * Copyright (C) 2019 Jeff Jackowski
9  */
10 #ifndef BPPIMAGEERRORS_HPP
11 #define BPPIMAGEERRORS_HPP
12 
13 #include <boost/exception/exception.hpp>
14 #include <boost/exception/info.hpp>
15 #include <exception>
16 #include <memory>
17 #include <cstdint>
18 
19 namespace duds { namespace ui { namespace graphics {
20 
24 struct ImageError : virtual std::exception, virtual boost::exception { };
25 
30 
36 
42 
47 
51 struct ImageArchiveError : virtual std::exception, virtual boost::exception { };
52 
57 
63 
68 
73 
78 
83 
87 typedef boost::error_info<struct Info_ArchiveImageName, std::string>
89 
95 typedef boost::error_info<struct Info_ImageArcFileName, std::string>
97 
101 typedef boost::error_info<struct Info_ImageArcName, std::uint32_t>
103 
108 
112 typedef boost::error_info<struct Info_String, std::string> String;
113 
117 typedef boost::error_info<struct Info_Character, char32_t> Character;
118 
124 
129 
134 
138 typedef boost::error_info<struct Info_FontName, std::string> FontName;
139 
140 } } }
141 
142 #endif // #ifndef BPPIMAGEERRORS_HPP
The base class for errors related to the use of images.
boost::error_info< struct Info_ArchiveImageName, std::string > ImageArchiveImageName
The name of the image involved in an ImageArchiveError.
The maximum size of a BppStringCache is zero.
The base class for errors resulting from the attempt to read an image archive stream or file...
A specified font is not present in the font pool.
Data with an image to parse was too short to hold the image.
A given string cache does not correspond to the given font.
boost::error_info< struct Info_ImageArcFileName, std::string > ImageArchiveFileName
The name of the image archive file involved in an ImageArchiveStreamError.
The base class for errors related to the use of image archives.
boost::error_info< struct Info_String, std::string > String
A string, like one requested for rendering in a specific font.
boost::error_info< struct Info_ImageArcName, std::uint32_t > ImageArchiveVersion
The name of the image involved in an ImageArchiveError.
An attempt was made to advance past the end of a archive stream.
The Pixel or ConstPixel iterator object was dereferenced when in at the end.
A problem with image bounds, such as the use of a location beyond the image&#39;s dimensions.
The stream appears to not be an image archive.
Indicates the image has zero size when an operation requires some image data.
General graphics related code.
Definition: HD44780.hpp:15
An image was requested that the archive does not contain.
boost::error_info< struct Info_Character, char32_t > Character
A character, like one requested for rendering in a specific font.
boost::error_info< struct Info_FontName, std::string > FontName
The name of the font and is not present in the font pool.
The archive is in an unsupported version of the format.
A glyph required to render a string is not availble in the font.