#include <Exception.h>
Definition at line 180 of file Exception.h.
◆ AssertError()
AssertError::AssertError |
( |
const char_t * | _filename, |
|
|
unsigned int | _line, |
|
|
const char_t * | _expr, |
|
|
const char_t * | _message ) |
◆ format()
String AssertError::format |
( |
const char_t * | _filename, |
|
|
unsigned int | _line, |
|
|
const char_t * | _expr, |
|
|
const char_t * | _message ) |
|
static |
Definition at line 377 of file Exception.cpp.
383{
384 StringBuilder sb = L"Assertion Failed ! '";
385 sb += _expr;
386 sb += L"'";
387 if (_message)
388 {
389 sb += L" ";
390 sb += _message;
391 }
392 sb += L", File ";
393 sb += _filename;
394 sb += L":";
396
397
398 return sb;
399}
String toString(unsigned _base=10) const
◆ toString()
String AssertError::toString |
( |
| ) |
const |
|
virtual |
Reimplemented from Exception.
Definition at line 371 of file Exception.cpp.
372{
373 return format(__filename, __line, __expr,
374 __message.isEmpty() ?
NULL : __message.data());
375}
static String format(const char_t *_filename, unsigned int _line, const char_t *_expr, const char_t *_message)
The documentation for this class was generated from the following files: