18#ifndef _DECAF_LANG_THROWABLE_H_
19#define _DECAF_LANG_THROWABLE_H_
virtual std::string getStackTraceString() const =0
Gets the stack trace as one contiguous string.
virtual void setMark(const char *file, const int lineNumber)=0
Adds a file/line number to the stack trace.
virtual void initCause(const std::exception *cause)=0
Initializes the contained cause exception with the one given.
virtual std::vector< std::pair< std::string, int > > getStackTrace() const =0
Provides the stack trace for every point where this exception was caught, marked, and rethrown.
virtual Throwable * clone() const =0
Clones this exception.
virtual void printStackTrace() const =0
Prints the stack trace to std::err.
virtual std::string getMessage() const =0
Gets the cause of the error, if no message was provided to the instance of this interface but a cause...
virtual const std::exception * getCause() const =0
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