diff --git a/mediachanger/acs/AcsDismountCmd.hpp b/mediachanger/acs/AcsDismountCmd.hpp index 3d8fa5e5b9ce866f6e6263126fc809a0f7b053d3..43a4c5e6065f511cb890c3974b1c57c6eaa37db8 100644 --- a/mediachanger/acs/AcsDismountCmd.hpp +++ b/mediachanger/acs/AcsDismountCmd.hpp @@ -20,7 +20,6 @@ #include "AcsCmd.hpp" #include "AcsDismountCmdLine.hpp" -#include "common/exception/MissingOperand.hpp" namespace cta { namespace mediachanger { diff --git a/mediachanger/acs/AcsDismountCmdLine.cpp b/mediachanger/acs/AcsDismountCmdLine.cpp index 00d90b1ad574fd78f209bc7839670225c58ae085..42c0058a371a3b23636adb55cd04a8fee3824fd5 100644 --- a/mediachanger/acs/AcsDismountCmdLine.cpp +++ b/mediachanger/acs/AcsDismountCmdLine.cpp @@ -20,7 +20,6 @@ #include "AcsCmdLine.hpp" #include "AcsDismountCmdLine.hpp" #include "Constants.hpp" -#include "common/exception/MissingOperand.hpp" #include <getopt.h> #include <stdlib.h> @@ -86,7 +85,7 @@ cta::mediachanger::acs::AcsDismountCmdLine::AcsDismountCmdLine(const int argc, // Check that both VID and DRIVE_SLOT have been specified if(nbArgs < 2) { - cta::exception::MissingOperand ex; + cta::exception::Exception ex; ex.getMessage() << "Both VID and DRIVE_SLOT must be specified"; diff --git a/mediachanger/acs/AcsMountCmd.hpp b/mediachanger/acs/AcsMountCmd.hpp index aa91b1a6f133bb410d8ed272af22ac54076fecb0..2c142888e20f6216f6a2bc6354e3abdb94ec3df0 100644 --- a/mediachanger/acs/AcsMountCmd.hpp +++ b/mediachanger/acs/AcsMountCmd.hpp @@ -20,7 +20,6 @@ #include "AcsCmd.hpp" #include "AcsMountCmdLine.hpp" -#include "common/exception/MissingOperand.hpp" #include <stdint.h> diff --git a/mediachanger/acs/AcsMountCmdLine.cpp b/mediachanger/acs/AcsMountCmdLine.cpp index 67e7e0c545c56700b6b4788379ca0376c60e5caf..b73f34ddb164317ae582f1c8bee050299f5a1b1d 100644 --- a/mediachanger/acs/AcsMountCmdLine.cpp +++ b/mediachanger/acs/AcsMountCmdLine.cpp @@ -19,7 +19,6 @@ #include "Acs.hpp" #include "AcsMountCmdLine.hpp" #include "Constants.hpp" -#include "common/exception/MissingOperand.hpp" #include <getopt.h> #include <stdlib.h> @@ -85,7 +84,7 @@ cta::mediachanger::acs::AcsMountCmdLine::AcsMountCmdLine(const int argc, // Check that both VID and DRIVE_SLOT have been specified if(nbArgs < 2) { - cta::exception::MissingOperand ex; + cta::exception::Exception ex; ex.getMessage() << "Both VID and DRIVE_SLOT must be specified"; throw ex; } diff --git a/mediachanger/acs/AcsQueryDriveCmd.hpp b/mediachanger/acs/AcsQueryDriveCmd.hpp index d4c012c8f59b38a2770e2fedffb04e438e3a4921..2463a16323c390e1408dd89aa0b8236a7d73ab0a 100644 --- a/mediachanger/acs/AcsQueryDriveCmd.hpp +++ b/mediachanger/acs/AcsQueryDriveCmd.hpp @@ -20,7 +20,6 @@ #include "AcsCmd.hpp" #include "AcsQueryDriveCmdLine.hpp" -#include "common/exception/MissingOperand.hpp" #include "mediachanger/CmdLineTool.hpp" #include <stdint.h> diff --git a/mediachanger/acs/AcsQueryDriveCmdLine.cpp b/mediachanger/acs/AcsQueryDriveCmdLine.cpp index f7022bb16c4d51d6a5d591b29663b47a2186ca9f..e48c347b9fa95c98339f921177767f31a5de5ee2 100644 --- a/mediachanger/acs/AcsQueryDriveCmdLine.cpp +++ b/mediachanger/acs/AcsQueryDriveCmdLine.cpp @@ -20,7 +20,6 @@ #include "Acs.hpp" #include "AcsQueryDriveCmdLine.hpp" #include "Constants.hpp" -#include "common/exception/MissingOperand.hpp" #include <getopt.h> #include <stdlib.h> #include <string.h> @@ -83,7 +82,7 @@ cta::mediachanger::acs::AcsQueryDriveCmdLine::AcsQueryDriveCmdLine(const int arg // Check that DRIVE_SLOT has been specified if(1 > nbArgs) { - cta::exception::MissingOperand ex; + cta::exception::Exception ex; ex.getMessage() << "DRIVE_SLOT must be specified"; throw ex; } diff --git a/mediachanger/acs/AcsQueryVolumeCmd.hpp b/mediachanger/acs/AcsQueryVolumeCmd.hpp index 6c83558ba5d7fea33197d754b77515646a30265c..9221d96cbbbe0c1b6af9821d257bf65cbe551f31 100644 --- a/mediachanger/acs/AcsQueryVolumeCmd.hpp +++ b/mediachanger/acs/AcsQueryVolumeCmd.hpp @@ -20,8 +20,6 @@ #include "AcsCmd.hpp" #include "AcsQueryVolumeCmdLine.hpp" -#include "common/exception/MissingOperand.hpp" - #include <stdint.h> diff --git a/mediachanger/acs/AcsQueryVolumeCmdLine.cpp b/mediachanger/acs/AcsQueryVolumeCmdLine.cpp index 98029595ac89fdb21eb88a289db296d679b61a81..375112ad50d531d9a51febb739419a9a336c90b7 100644 --- a/mediachanger/acs/AcsQueryVolumeCmdLine.cpp +++ b/mediachanger/acs/AcsQueryVolumeCmdLine.cpp @@ -20,7 +20,6 @@ #include "Acs.hpp" #include "AcsQueryVolumeCmdLine.hpp" #include "Constants.hpp" -#include "common/exception/MissingOperand.hpp" #include <getopt.h> #include <stdlib.h> @@ -76,7 +75,7 @@ cta::mediachanger::acs::AcsQueryVolumeCmdLine::AcsQueryVolumeCmdLine(const int a // Check that VID has been specified if(nbArgs < 1) { - cta::exception::MissingOperand ex; + cta::exception::Exception ex; ex.getMessage() << "VID must be specified"; throw ex; } diff --git a/mediachanger/acs/CMakeLists.txt b/mediachanger/acs/CMakeLists.txt index 20aa23f3a0e4b61a8ed4126eb5ad2fa81d60bd5c..aee24606384c740551561d3ea9a0569da751e6fd 100644 --- a/mediachanger/acs/CMakeLists.txt +++ b/mediachanger/acs/CMakeLists.txt @@ -72,7 +72,6 @@ set (ACS_DISMOUNT_SRC_FILES ../../common/exception/Backtrace.cpp ../../common/exception/Exception.cpp ../../common/exception/Mismatch.cpp - ../../common/exception/MissingOperand.cpp ../../common/exception/RequestFailed.cpp Acs.cpp AcsCmd.cpp @@ -99,7 +98,6 @@ set (ACS_MOUNT_SRC_FILES ../../common/exception/Backtrace.cpp ../../common/exception/Exception.cpp ../../common/exception/Mismatch.cpp - ../../common/exception/MissingOperand.cpp ../../common/exception/RequestFailed.cpp Acs.cpp AcsCmd.cpp @@ -127,7 +125,6 @@ set (ACS_QUERYVOLUME_SRC_FILES ../../common/exception/Backtrace.cpp ../../common/exception/Exception.cpp ../../common/exception/Mismatch.cpp - ../../common/exception/MissingOperand.cpp ../../common/exception/RequestFailed.cpp Acs.cpp AcsCmd.cpp @@ -157,7 +154,6 @@ set (ACS_QUERYDRIVE_SRC_FILES ../../common/exception/Backtrace.cpp ../../common/exception/Exception.cpp ../../common/exception/Mismatch.cpp - ../../common/exception/MissingOperand.cpp ../../common/exception/RequestFailed.cpp Acs.cpp AcsCmd.cpp