#include <Soprano/Error/ErrorCache>
Public Member Functions | |
virtual | ~ErrorCache () |
virtual Error | lastError () const |
Protected Member Functions | |
ErrorCache () | |
void | clearError () const |
void | setError (const Error &) const |
void | setError (const QString &errorMessage, int code=ErrorUnknown) const |
Definition at line 230 of file error.h.
virtual Soprano::Error::ErrorCache::~ErrorCache | ( | ) | [virtual] |
Soprano::Error::ErrorCache::ErrorCache | ( | ) | [protected] |
virtual Error Soprano::Error::ErrorCache::lastError | ( | ) | const [virtual] |
Get the last error that occured in the current thread.
void Soprano::Error::ErrorCache::clearError | ( | ) | const [protected] |
Reset the error for the current thread to no error.
void Soprano::Error::ErrorCache::setError | ( | const Error & | ) | const [protected] |
Set the last occured error. This method is const to allow setting of errors in all types of methods. The last error is as such a mutable property.
void Soprano::Error::ErrorCache::setError | ( | const QString & | errorMessage, | |
int | code = ErrorUnknown | |||
) | const [protected] |
Convenience method to set simple string error messages with a default error code ErrorUnknown.