STE-Industries: utilities testing
IntegerException.h
Go to the documentation of this file.
1 
13 # if !defined INTEGER_EXCEPTION_H
14 
15 # define INTEGER_EXCEPTION_H
16 
17 # include "Exception.h"
18 
19 namespace GraphicSpace
20 {
21 
34 
36  {
37 
40 
43 
46 
49 
52 
55 
58 
61 
64 
67 
70 
73 
76 
79 
82 
83  };
84 
91 
93  {
94  private:
95 
99 
102  uint_fast32_t Value;
103 
106  static const char* const ErrorFormat;
107 
116  static const char* const Message [];
117 
118  public:
119 
120  IntegerException(IntegerExceptionType thisExceptionKind,
121  uint_fast32_t thisValue) noexcept;
122 
123  ~IntegerException(void) noexcept = default;
124 
125  void Write(FILE* OutputFile) const noexcept override;
126 
127  };
128 
129 }
130 
131 # endif
GraphicSpace::IntegerExceptionType::INVALID_NUMBER_OF_TERMITES
@ INVALID_NUMBER_OF_TERMITES
Invalid number of termites parameter.
GraphicSpace::IntegerExceptionType::INVALID_FILE_SIZE
@ INVALID_FILE_SIZE
Invalid file size.
GraphicSpace::IntegerExceptionType::INVALID_IMAGE_SIZE
@ INVALID_IMAGE_SIZE
Invalid image size.
GraphicSpace::IntegerExceptionType::INVALID_NUMBER_OF_IMPORTANT_COLORS
@ INVALID_NUMBER_OF_IMPORTANT_COLORS
Invalid number of important colors.
GraphicSpace::IntegerException::~IntegerException
~IntegerException(void) noexcept=default
GraphicSpace::IntegerExceptionType::INVALID_BITMAP_OFFSET
@ INVALID_BITMAP_OFFSET
Invalid bitmap offset.
GraphicSpace::Exception
Definition: Exception.h:29
GraphicSpace::IntegerException::ErrorFormat
static const char *const ErrorFormat
Definition: IntegerException.h:106
GraphicSpace::IntegerExceptionType::INVALID_COLOR_PLANES
@ INVALID_COLOR_PLANES
Invalid number of color planes.
GraphicSpace::IntegerException
Definition: IntegerException.h:92
GraphicSpace::IntegerException::ExceptionKind
IntegerExceptionType ExceptionKind
Definition: IntegerException.h:98
GraphicSpace::IntegerExceptionType::INVALID_IMAGE_HEIGHT
@ INVALID_IMAGE_HEIGHT
Invalid height of the image.
GraphicSpace::IntegerExceptionType::INVALID_BITS_PER_PIXEL
@ INVALID_BITS_PER_PIXEL
Invalid number of bits per pixel.
Exception.h
GraphicSpace::IntegerExceptionType::INVALID_NUMBER_OF_STEPS
@ INVALID_NUMBER_OF_STEPS
Invalid number of steps parameter.
GraphicSpace::IntegerExceptionType
IntegerExceptionType
Definition: IntegerException.h:35
GraphicSpace::IntegerException::Message
static const char *const Message[]
Definition: IntegerException.h:116
GraphicSpace::IntegerExceptionType::INVALID_IMAGE_WIDTH
@ INVALID_IMAGE_WIDTH
Invalid width of the image.
GraphicSpace::IntegerException::Write
void Write(FILE *OutputFile) const noexcept override
Definition: IntegerException.cpp:84
GraphicSpace
Definition: Bitmap.cpp:29
GraphicSpace::IntegerException::IntegerException
IntegerException(IntegerExceptionType thisExceptionKind, uint_fast32_t thisValue) noexcept
Definition: IntegerException.cpp:57
GraphicSpace::IntegerExceptionType::INVALID_NUMBER_OF_COLORS
@ INVALID_NUMBER_OF_COLORS
Invalid number of colors.
GraphicSpace::IntegerExceptionType::BITMAP_TOO_LARGE
@ BITMAP_TOO_LARGE
Bitmap too large.
GraphicSpace::IntegerException::Value
uint_fast32_t Value
Definition: IntegerException.h:102
GraphicSpace::IntegerExceptionType::INVALID_NUMBER_OF_THREADS
@ INVALID_NUMBER_OF_THREADS
Invalid number of threads parameter.
GraphicSpace::IntegerExceptionType::INVALID_DIB_HEADER_SIZE
@ INVALID_DIB_HEADER_SIZE
Invalid DIB header size.
GraphicSpace::IntegerExceptionType::INVALID_COMPRESSION
@ INVALID_COMPRESSION
Invalid value for compression.