18#ifndef _CMS_CMSEXCEPTION_H_
19#define _CMS_CMSEXCEPTION_H_
31 class CMSExceptionData;
54 CMSExceptionData* data;
64 CMSException(
const std::string& message,
const std::exception* cause);
66 CMSException(
const std::string& message,
const std::exception* cause,
67 const std::vector<std::pair<std::string, int> >& stackTrace);
CMSException(const std::string &message, const std::exception *cause, const std::vector< std::pair< std::string, int > > &stackTrace)
CMSException(const std::string &message)
virtual std::string getMessage() const
Gets the cause of the error.
virtual void setMark(const char *file, const int lineNumber)
Adds a file/line number to the stack trace.
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 const char * what() const
Overloads the std::exception what() function to return the cause of the exception.
virtual std::string getStackTraceString() const
Gets the stack trace as one contiguous string.
virtual void printStackTrace() const
Prints the stack trace to std::err.
CMSException(const std::string &message, const std::exception *cause)
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...
CMSException(const CMSException &ex)
virtual CMSException * clone()
Creates a cloned version of this CMSException instance.
#define CMS_API
Definition Config.h:31
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition DestinationResolver.h:23
Definition ArrayPointer.h:432
#define const
Definition zconf.h:198