This exception must be thrown when a call to Session.commit results in a rollback of the current transaction.
More...
#include <src/main/cms/TransactionRolledBackException.h>
Public Member Functions |
| TransactionRolledBackException () |
| TransactionRolledBackException (const TransactionRolledBackException &ex) |
| TransactionRolledBackException (const std::string &message) |
| TransactionRolledBackException (const std::string &message, const std::exception *cause) |
| TransactionRolledBackException (const std::string &message, const std::exception *cause, const std::vector< std::pair< std::string, int > > &stackTrace) |
virtual | ~TransactionRolledBackException () throw () |
virtual
TransactionRolledBackException * | clone () |
| Creates a cloned version of this CMSException instance.
|
| CMSException () |
| CMSException (const CMSException &ex) |
| CMSException (const std::string &message) |
| CMSException (const std::string &message, const std::exception *cause) |
| CMSException (const std::string &message, const std::exception *cause, const std::vector< std::pair< std::string, int > > &stackTrace) |
virtual | ~CMSException () throw () |
virtual std::string | getMessage () const |
| Gets the cause of the error.
|
virtual const std::exception * | getCause () const |
| Gets the exception that caused this one to be thrown, this allows for chaining of exceptions in the case of a method that throws only a particular exception but wishes to allow for the real causal exception to be passed only in case the caller knows about that type of exception and wishes to respond to it.
|
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 | printStackTrace () const |
| Prints the stack trace to std::err.
|
virtual void | printStackTrace (std::ostream &stream) const |
| Prints the stack trace to the given output stream.
|
virtual std::string | getStackTraceString () const |
| Gets the stack trace as one contiguous string.
|
virtual const char * | what () const throw () |
| Overloads the std::exception what() function to return the cause of the exception.
|
Detailed Description
This exception must be thrown when a call to Session.commit results in a rollback of the current transaction.
- Since
- 2.3
Constructor & Destructor Documentation
cms::TransactionRolledBackException::TransactionRolledBackException |
( |
| ) |
|
cms::TransactionRolledBackException::TransactionRolledBackException |
( |
const std::string & |
message | ) |
|
cms::TransactionRolledBackException::TransactionRolledBackException |
( |
const std::string & |
message, |
|
|
const std::exception * |
cause |
|
) |
| |
cms::TransactionRolledBackException::TransactionRolledBackException |
( |
const std::string & |
message, |
|
|
const std::exception * |
cause, |
|
|
const std::vector< std::pair< std::string, int > > & |
stackTrace |
|
) |
| |
virtual cms::TransactionRolledBackException::~TransactionRolledBackException |
( |
| ) |
throw () |
|
virtual |
Member Function Documentation
Creates a cloned version of this CMSException instance.
This method passes on ownership of the contained cause exception pointer to the clone. This method is mainly useful to the CMS provider.
- Returns
- new pointer that is a clone of this Exception, caller owns.
Reimplemented from cms::CMSException.
The documentation for this class was generated from the following file: