Skip to content
Snippets Groups Projects
Commit a3386b38 authored by Daniele Kruse's avatar Daniele Kruse
Browse files

Added unknown exceptions

parent e8a68c5f
No related branches found
No related tags found
No related merge requests found
......@@ -131,6 +131,10 @@ int XrdProFilesystem::executeArchiveCommand(ParsedRequest &req, XrdOucErrInfo &e
response += ex.what();
eInfo.setErrInfo(response.length(), response.c_str());
return SFS_DATA;
} catch (...) {
std::string response = "[ERROR] Unknown exception caught!";
eInfo.setErrInfo(response.length(), response.c_str());
return SFS_DATA;
}
}
......@@ -166,6 +170,10 @@ int XrdProFilesystem::executeCreateStorageClassCommand(ParsedRequest &req, XrdOu
response += ex.what();
eInfo.setErrInfo(response.length(), response.c_str());
return SFS_DATA;
} catch (...) {
std::string response = "[ERROR] Unknown exception caught!";
eInfo.setErrInfo(response.length(), response.c_str());
return SFS_DATA;
}
}
......@@ -195,6 +203,10 @@ int XrdProFilesystem::executeChangeStorageClassCommand(ParsedRequest &req, XrdOu
response += ex.what();
eInfo.setErrInfo(response.length(), response.c_str());
return SFS_DATA;
} catch (...) {
std::string response = "[ERROR] Unknown exception caught!";
eInfo.setErrInfo(response.length(), response.c_str());
return SFS_DATA;
}
}
......@@ -225,6 +237,10 @@ int XrdProFilesystem::executeDeleteStorageClassCommand(ParsedRequest &req, XrdOu
response += ex.what();
eInfo.setErrInfo(response.length(), response.c_str());
return SFS_DATA;
} catch (...) {
std::string response = "[ERROR] Unknown exception caught!";
eInfo.setErrInfo(response.length(), response.c_str());
return SFS_DATA;
}
}
......@@ -259,6 +275,10 @@ int XrdProFilesystem::executeListStorageClassCommand(ParsedRequest &req, XrdOucE
response += ex.what();
eInfo.setErrInfo(response.length(), response.c_str());
return SFS_DATA;
} catch (...) {
std::string response = "[ERROR] Unknown exception caught!";
eInfo.setErrInfo(response.length(), response.c_str());
return SFS_DATA;
}
}
......@@ -287,6 +307,10 @@ int XrdProFilesystem::executeMkdirCommand(ParsedRequest &req, XrdOucErrInfo &eIn
response += ex.what();
eInfo.setErrInfo(response.length(), response.c_str());
return SFS_DATA;
} catch (...) {
std::string response = "[ERROR] Unknown exception caught!";
eInfo.setErrInfo(response.length(), response.c_str());
return SFS_DATA;
}
}
......@@ -315,6 +339,10 @@ int XrdProFilesystem::executeRmdirCommand(ParsedRequest &req, XrdOucErrInfo &eIn
response += ex.what();
eInfo.setErrInfo(response.length(), response.c_str());
return SFS_DATA;
} catch (...) {
std::string response = "[ERROR] Unknown exception caught!";
eInfo.setErrInfo(response.length(), response.c_str());
return SFS_DATA;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment