#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 361 of file Exception.cpp.
367{
368 StringBuilder sb = L"Assertion Failed ! '";
369 sb += _expr;
370 sb += L"'";
371 if (_message) {
372 sb += L" ";
373 sb += _message;
374 }
375 sb += L", File ";
376 sb += _filename;
377 sb += L":";
379
380 return sb;
381}
String toString(unsigned _base=10) const
◆ toString()
| String AssertError::toString |
( |
| ) |
const |
|
virtual |
Reimplemented from Exception.
Definition at line 354 of file Exception.cpp.
355{
356 return format(__filename, __line, __expr,
357 __message.isEmpty() ?
NULL : __message.data()
358 );
359}
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: