Go to the documentation of this file.
122 std::ostringstream mesg;
130 <<
"-" <<
name() <<
" [#" <<
count() <<
"]";
137 mesg <<
NEXT "-- Note: severity threshhold has been reached; "
138 "logging will be suppressed "
139 "for any future exceptions of this severity";
143 mesg <<
NEXT "-- Note: class threshhold has been reached; "
144 "logging will be suppressed "
145 "for any future exceptions of this class";
148 if ( optText.length() )
149 mesg <<
NEXT << optText;
154 time_t
now( time(0) );
155 char * timeText = ctime( &
now );
157 mesg <<
NEXT << timeText;
161 mesg <<
NEXT "-- ZMthrow was issued at line " <<
line();
167 unsigned int lastSlash = fullName.find_last_of(
"/\\");
168 if ( lastSlash == fullName.length() ) {
171 fname = fullName.substr(lastSlash+1);
174 mesg <<
NEXT "of file \"" << fname <<
'\"';
189 return mesg.str() +
'\n';
198 const std::ostringstream & msg
204 , sourceFileName_(
"not ZMthrow'n as of yet" )
207 , wasThrown_( false )
virtual zmex::ZMexClassInfo & classInfo() const
const std::string name() const
virtual bool isFilePathDesired() const
static ZMexClassInfo _classInfo
virtual std::string name() const
std::string fileName() const
const std::string facility() const
ZMexLogBehavior * control()
ZMexception(const std::string &mesg, const ZMexSeverity howBad=ZMexSEVERITYenumLAST, int icount=ZMexception::_classInfo.nextCount())
The given behavior will apply to any exceptions ZMthrow n after the handler has been established Available handlers Here is a list of the five standard handlers that are defined via the Exceptions package Each is accompanied by a brief description of its after become the object of a C throw but will have no further affect on subsequent control flow ZMexThrowErrors() the ZMthrow 'n exception instance will
virtual bool isTimeDesired() const
ZMexHandler & ZMhandler()
std::string ZMexUserActivity
int ZMexSeverityLimit[ZMexSEVERITYenumLAST]
std::string message() const
const char ZMexSeverityLetter[ZMexSEVERITYenumLAST]
virtual std::string logMessage(const std::string optText="") const
virtual std::string facility() const
it has advantages For now
ZMexSeverity severity() const