00001 /* 00002 ***************************************************************** 00003 ***************************************************************** 00004 ******* ******** 00005 ******* (C) Copyright 1989-2007 by Tecplot Inc. ******** 00006 ******* All Rights Reserved. ******** 00007 ******* ******** 00008 ***************************************************************** 00009 ***************************************************************** 00010 */ 00011 #ifndef TECPLOT_TOOLBOX_INVALIDARGUMENTEXCEPTION_H 00012 #define TECPLOT_TOOLBOX_INVALIDARGUMENTEXCEPTION_H 00013 00014 #if defined MSWIN 00015 #pragma once 00016 #endif 00017 00018 #include "Exception.h" 00019 00020 namespace tecplot 00021 { 00022 namespace toolbox 00023 { 00024 00029 class TPTOOLBOX_DLLAPI InvalidArgumentException : public Exception 00030 { 00031 public: 00032 explicit InvalidArgumentException(const std::string& what); 00033 explicit InvalidArgumentException(const std::string& what, 00034 const std::string& fileName, 00035 int lineNum); 00036 InvalidArgumentException(const InvalidArgumentException& other); 00037 virtual ~InvalidArgumentException(void) throw(); 00038 00039 private: 00040 /* 00041 * Declare a private assignment constructor to prevent the compiler from 00042 * creating it for us. 00043 */ 00044 InvalidArgumentException& operator = (const InvalidArgumentException& other); 00045 }; 00046 00047 } 00048 } // tecplot::toolbox 00049 00050 #endif