|
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. | |
| DTRErrorStatusType | GetErrorStatus () const |
| Returns the error type. | |
| DTRStatus::DTRStatusType | GetLastErrorState () const |
| Returns the state in which the error occurred. | |
| DTRErrorLocation | GetErrorLocation () const |
| Returns the location at which the error occurred. | |
| std::string | GetDesc () const |
| Returns the error description. | |
| bool | operator== (const DTRErrorStatusType &s) const |
| Returns true if this error status is the same as the given DTRErrorStatusType. | |
| bool | operator== (const DTRErrorStatus &s) const |
| Returns true if this error status is the same as the given DTRErrorStatus. | |
| bool | operator!= (const DTRErrorStatusType &s) const |
| Returns true if this error status is not the same as the given DTRErrorStatusType. | |
| bool | operator!= (const DTRErrorStatus &s) const |
| Returns true if this error status is not the same as the given DTRErrorStatus. | |
| DTRErrorStatus & | operator= (const DTRErrorStatusType &s) |
| Make a new DTRErrorStatus with the same error status as the given DTRErrorStatusType. | |
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 |
1.8.3.1