DataStaging::DTRErrorStatus Class Reference

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
DTRErrorStatusoperator= (const DTRErrorStatusType &s)

Detailed Description

A class to represent error states reported by various components.


Member Enumeration Documentation

Describes where the error occurred.

Enumerator:
NO_ERROR_LOCATION 

No error.

ERROR_SOURCE 

Error with source.

ERROR_DESTINATION 

Error with destination.

ERROR_TRANSFER 

Error during transfer not directly related to source or destination.

ERROR_UNKNOWN 

Error occurred in an unknown location.

A list of error types.

Enumerator:
NONE_ERROR 

No error.

INTERNAL_LOGIC_ERROR 

Internal error in Data Staging logic.

INTERNAL_PROCESS_ERROR 

Internal processing error, like losing contact with external process.

SELF_REPLICATION_ERROR 

Attempt to replicate a file to itself.

CACHE_ERROR 

Permanent error with cache.

TEMPORARY_REMOTE_ERROR 

Temporary error with remote service.

PERMANENT_REMOTE_ERROR 

Permanent error with remote service.

LOCAL_FILE_ERROR 

Error with local file.

TRANSFER_SPEED_ERROR 

Transfer rate was too slow.

STAGING_TIMEOUT_ERROR 

Waited for too long to become staging.


The documentation for this class was generated from the following file:
Generated on Wed Jun 27 11:54:36 2012 for Hosting Environment (Daemon) by  doxygen 1.6.3