LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
FileDeliveryStatus.cc
Go to the documentation of this file.
2 
3 #include <iomanip>
4 #include <sstream>
5 #include <string>
6 
7 std::string
9 {
10  switch (stat) {
11  default: {
12  std::ostringstream os;
13  os << "UNKNOWN" << std::setfill('0') << std::setw(3)
14  << static_cast<int>(stat);
15  return os.str();
16  }
18  return "PENDING";
20  return "SUCCESS";
22  return "TRY_AGAIN_LATER";
24  return "NO_MORE_FILES";
26  return "BAD_REQUEST";
28  return "FORBIDDEN";
30  return "NOT_FOUND";
32  return "CONFLICT";
34  return "SERVER_EXCEPTION";
36  return "BAD_GATEWAY";
38  return "UNAVAILABLE";
40  return "SPECIFIC_ERRORS";
41  }
42 }
std::string translateFileDeliveryStatus(FileDeliveryStatus stat)
#define SUCCESS
Definition: DBScan3DAlg.h:39