|
ARC SDK
|
A class to represent error states reported by various components. More...
#include <arc/data-staging/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 } |
| A list of error types. More... | |
| enum | DTRErrorLocation { NO_ERROR_LOCATION, ERROR_SOURCE, ERROR_DESTINATION, ERROR_TRANSFER, ERROR_UNKNOWN } |
| Describes where the error occurred. More... | |
Public Member Functions | |
| DTRErrorStatus (DTRErrorStatusType status, DTRStatus::DTRStatusType error_state, DTRErrorLocation location, const std::string &desc="") | |
| Create a new DTRErrorStatus with given error states. More... | |
| DTRErrorStatus () | |
| Create a new DTRErrorStatus with default none/null error states. More... | |
| DTRErrorStatusType | GetErrorStatus () const |
| Returns the error type. More... | |
| DTRStatus::DTRStatusType | GetLastErrorState () const |
| Returns the state in which the error occurred. More... | |
| DTRErrorLocation | GetErrorLocation () const |
| Returns the location at which the error occurred. More... | |
| std::string | GetDesc () const |
| Returns the error description. More... | |
| bool | operator== (const DTRErrorStatusType &s) const |
| Returns true if this error status is the same as the given DTRErrorStatusType. More... | |
| bool | operator== (const DTRErrorStatus &s) const |
| Returns true if this error status is the same as the given DTRErrorStatus. More... | |
| bool | operator!= (const DTRErrorStatusType &s) const |
| Returns true if this error status is not the same as the given DTRErrorStatusType. More... | |
| bool | operator!= (const DTRErrorStatus &s) const |
| Returns true if this error status is not the same as the given DTRErrorStatus. More... | |
| DTRErrorStatus & | operator= (const DTRErrorStatusType &s) |
| Make a new DTRErrorStatus with the same error status as the given DTRErrorStatusType. More... | |
A class to represent error states reported by various components.
A list of error types.
|
inline |
Create a new DTRErrorStatus with given error states.
| status | Type of error |
| error_state | DTR state in which the error occurred |
| location | Location of error (at source, destination or during transfer) |
| desc | Text description of error |
|
inline |
Create a new DTRErrorStatus with default none/null error states.
|
inline |
Returns the error description.
|
inline |
Returns the location at which the error occurred.
|
inline |
Returns the error type.
|
inline |
Returns the state in which the error occurred.
|
inline |
Returns true if this error status is not the same as the given DTRErrorStatusType.
|
inline |
Returns true if this error status is not the same as the given DTRErrorStatus.
|
inline |
Make a new DTRErrorStatus with the same error status as the given DTRErrorStatusType.
|
inline |
Returns true if this error status is the same as the given DTRErrorStatusType.
|
inline |
Returns true if this error status is the same as the given DTRErrorStatus.
1.8.3.1-20130209