10 #ifndef DISPLAYERRORS_HPP 11 #define DISPLAYERRORS_HPP 13 #include <boost/exception/info.hpp> 16 namespace duds {
namespace hardware {
namespace display {
21 struct DisplayError :
virtual std::exception,
virtual boost::exception { };
50 std::uint8_t col,
row;
52 template <
class Char,
class Traits>
56 return os <<
'(' << (int)idrc.
col <<
", " << (
int)idrc.
row <<
')';
63 typedef boost::error_info<struct Info_DisplayPosition, Info_DisplayColRow>
68 typedef boost::error_info<struct Info_DisplaySize, Info_DisplayColRow>
77 #endif // #ifndef DISPLAYERRORS_HPP boost::error_info< struct Info_DisplayPosition, Info_DisplayColRow > TextDisplayPositionInfo
Column and row of a display position as part of an error.
An attempt was made to use an uninitialized display object.
The image given for a definable glyph was an unsupported size.
The specified location is beyond the bounds of the display.
Info_DisplayColRow(unsigned int c, unsigned int r)
boost::error_info< struct Info_DisplayGlyph, int > DisplayGlyphIndex
Index used for a definable glyph.
The specified display size is unsupported, or there is a display size mismatch.
Stores column and row data for display errors.
ConversationVector & operator<<(ConversationVector &cv, const Int &i)
Insertion operator to add an integer to a ConversationVector object.
The index given for a definable glyph was outside the allowable range.
Base class for all errors specifically from a TextDisplay.
boost::error_info< struct Info_DisplaySize, Info_DisplayColRow > TextDisplaySizeInfo
Column and row size of a display as part of an error.