24 #ifndef APPEXCEPTIONS_H
25 #define APPEXCEPTIONS_H
28 #include "Collections.h"
45 string ToString()
const;
46 static string ToString(
const EventTypeEnum type );
48 static EventTypeEnum Parse(
const string& value );
65 m_Severity = severity;
70 string ToString()
const;
71 static EventSeverityEnum Parse(
const string& value );
99 AppException(
const string& message,
const std::exception& innerException,
const EventType::EventTypeEnum eventType= EventType::Error,
const NameValueCollection* additionalInfo = NULL );
106 const
char *what() const throw()
110 return m_Message.c_str();
112 return "unable to throw";
123 void setMessage(
const string& message ) { m_Message = message; }
127 void setException(
const std::exception& innerException );
128 void setException(
const string& innerException ){ m_InnerException = innerException; }
131 void setPid(
const string& value ) { m_Pid = value; }
142 const NameValueCollection* getAdditionalInfo(
void )
const;
144 void setAdditionalInfo(
const NameValueCollection* additionalInfo );
145 void setAdditionalInfo(
const string& name,
const string& value );
146 void addAdditionalInfo(
const string& name,
const string& value );
148 void InitDefaultValues();
158 void setBasicExceptionInfo( );
159 void addBasicExceptionInfo();
165 #endif // CACHEMANAGER_H