A class to represent error states reported by various components. More...
#include <DTRStatus.h>
Public Types | |
enum | DTRErrorStatusType { NONE_ERROR, INTERNAL_LOGIC_ERROR, INTERNAL_PROCESS_ERROR, SELF_REPLICATION_ERROR, CACHE_ERROR, TEMPORARY_REMOTE_ERROR, PERMANENT_REMOTE_ERROR, LOCAL_FILE_ERROR, TRANSFER_SPEED_ERROR, STAGING_TIMEOUT_ERROR } |
enum | DTRErrorLocation { NO_ERROR_LOCATION, ERROR_SOURCE, ERROR_DESTINATION, ERROR_TRANSFER, ERROR_UNKNOWN } |
Public Member Functions | |
DTRErrorStatus (DTRErrorStatusType status, DTRStatus::DTRStatusType error_state, DTRErrorLocation location, const std::string &desc="") | |
DTRErrorStatus () | |
DTRErrorStatusType | GetErrorStatus () const |
DTRStatus::DTRStatusType | GetLastErrorState () const |
DTRErrorLocation | GetErrorLocation () const |
std::string | GetDesc () const |
bool | operator== (const DTRErrorStatusType &s) const |
bool | operator== (const DTRErrorStatus &s) const |
bool | operator!= (const DTRErrorStatusType &s) const |
bool | operator!= (const DTRErrorStatus &s) const |
DTRErrorStatus & | operator= (const DTRErrorStatusType &s) |
A class to represent error states reported by various components.
A list of error types.