17 #ifndef _DECAF_LANG_EXCEPTION_EXCEPTION_H_ 18 #define _DECAF_LANG_EXCEPTION_EXCEPTION_H_ 21 #pragma warning( disable: 4251 ) 83 Exception(
const char* file,
const int lineNumber,
const char* msg, ...);
101 Exception(
const char* file,
const int lineNumber,
const std::exception* cause,
const char* msg, ...);
109 virtual
std::
string getMessage()
const;
121 virtual const
std::exception* getCause() const;
132 virtual
void initCause(const
std::exception* cause);
139 virtual const
char* what() const throw ();
149 virtual
void setMessage(const
char* msg, ...);
159 virtual
void setMark(const
char* file, const
int lineNumber);
177 virtual
std::vector<
std::pair<
std::
string,
int> > getStackTrace() const;
182 virtual
void printStackTrace() const;
190 virtual
void printStackTrace(
std::ostream& stream) const;
197 virtual
std::
string getStackTraceString() const;
209 virtual
void setStackTrace(const
std::vector<
std::pair<
std::
string,
int> >& trace);
211 virtual
void buildMessage(const
char* format, va_list& vargs);
This class represents an error that has occurred.
Definition: Throwable.h:44
Definition: ArrayPointer.h:432
#define DECAF_API
Definition: Config.h:29
Definition: Exception.h:38
#define const
Definition: zconf.h:198
ExceptionData * data
Definition: Exception.h:41
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements...
Definition: AprPool.h:25