24 #include <core/exceptions/software.h>
42 NullPointerException::NullPointerException(
const char *format, ...) throw()
47 append_va(format, va);
60 DivisionByZeroException::DivisionByZeroException(
const char *format, ...) throw()
65 append_va(format, va);
78 TypeMismatchException::TypeMismatchException(
const char *format, ...) throw()
83 append_va(format, va);
96 UnknownTypeException::UnknownTypeException(
const char *format, ...) throw()
100 va_start(va, format);
101 append_va(format, va);
115 DestructionInProgressException::DestructionInProgressException(
const char *format, ...) throw()
119 va_start(va, format);
120 append_va(format, va);
134 NotLockedException::NotLockedException(
const char *format, ...) throw()
138 va_start(va, format);
139 append_va(format, va);
153 NonPointerTypeExpectedException::NonPointerTypeExpectedException(
const char *format, ...) throw()
157 va_start(va, format);
158 append_va(format, va);
172 MissingParameterException::MissingParameterException(
const char *format, ...) throw()
176 va_start(va, format);
177 append_va(format, va);
191 IllegalArgumentException::IllegalArgumentException(
const char *format, ...) throw()
195 va_start(va, format);
196 append_va(format, va);
212 OutOfBoundsException::OutOfBoundsException(
const char *msg)
throw()
225 OutOfBoundsException::OutOfBoundsException(
const char *msg,
float val,
226 float min,
float max)
throw()
229 if ( (roundf(val) == val) && (roundf(min) == min) && (roundf(max) == max) ) {
231 append(
"Out Of Bounds (%s): min: %.0f max: %.0f val: %.0f", msg, min, max, val);
234 append(
"Out Of Bounds (%s): min: %f max: %f val: %f", msg, min, max, val);
248 AccessViolationException::AccessViolationException(
const char *format, ...) throw()
252 va_start(va, format);
253 append_va(format, va);
267 SyntaxErrorException::SyntaxErrorException(
const char *format, ...) throw()
271 va_start(va, format);
272 append_va(format, va);
287 NotImplementedException::NotImplementedException(
const char *format, ...) throw()
291 va_start(va, format);
292 append_va(format, va);
Base class for exceptions in Fawkes.