20 #ifndef HURRICANE_EXCEPTION
21 #define HURRICANE_EXCEPTION
23 #include "hurricane/Commons.h"
24 #include "hurricane/TextTranslator.h"
40 private:
static TextTranslator _textTranslator;
41 private:
static TextTranslator _htmlTranslator;
64 public:
string textWhat()
const {
return _textTranslator.translate(_getString()); };
65 public:
string htmlWhat()
const {
return _htmlTranslator.translate(_getString()); };
70 public:
static void setTextTranslator (
const TextTranslator& translator ) { _textTranslator=translator; }
71 public:
static void setHtmlTranslator (
const TextTranslator& translator ) { _htmlTranslator=translator; }
72 public:
virtual string _getString ()
const = 0;
Exception description (API)
Definition: Exception.h:34
static void setHtmlTranslator(const TextTranslator &translator)
Definition: Exception.h:71
string textWhat() const
Definition: Exception.h:64
static void setTextTranslator(const TextTranslator &translator)
Definition: Exception.h:70
string htmlWhat() const
Definition: Exception.h:65
string what() const
Definition: Exception.h:63
The namespace dedicated to Hurricane.
Definition: Generalities.dox:5