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, ...);
Exception(const std::exception *cause)
Constructor.
virtual std::vector< std::pair< std::string, int > > getStackTrace() const
Provides the stack trace for every point where this exception was caught, marked, and rethrown.
virtual void setMark(const char *file, const int lineNumber)
Adds a file/line number to the stack trace.
virtual void initCause(const std::exception *cause)
Initializes the contained cause exception with the one given.
virtual void printStackTrace() const
Prints the stack trace to std::err.
virtual void setMessage(const char *msg,...)
Sets the cause for this exception.
virtual void buildMessage(const char *format, va_list &vargs)
Exception()
Default Constructor.
virtual void setStackTrace(const std::vector< std::pair< std::string, int > > &trace)
Exception(const char *file, const int lineNumber, const char *msg,...)
Constructor - Initializes the file name and line number where this message occurred.
ExceptionData * data
Definition Exception.h:41
Exception(const Exception &ex)
Copy Constructor.
Exception(const char *file, const int lineNumber, const std::exception *cause, const char *msg,...)
Constructor - Initializes the file name and line number where this message occurred.
virtual const char * what() const
Implement method from std::exception.
virtual Exception * clone() const
Clones this exception.
virtual std::string getStackTraceString() const
Gets the stack trace as one contiguous string.
virtual std::string getMessage() const
Gets the message for this exception.
virtual const std::exception * getCause() const
Gets the exception that caused this one to be thrown, this allows for chaining of exceptions in the c...
#define DECAF_API
Definition Config.h:29
Definition ThreadingTypes.h:31
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition AprPool.h:25
Definition ArrayPointer.h:432
#define const
Definition zconf.h:198