CLI for C++ Project Page | CLI for C++ Home Page |
00001 /* 00002 * Copyright (c) 2005 John H. Poplett. All rights reserved. 00003 * 00004 * This software is provided 'as-is', without any express or implied 00005 * warranty. In no event will the authors be held liable for any damages 00006 * arising from the use of this software. 00007 * 00008 * Permission is granted to anyone to use this software for any purpose, 00009 * including commercial applications, and to alter it and redistribute it 00010 * freely, subject to the following restrictions: 00011 * 00012 * 1. The origin of this software must not be misrepresented; you must 00013 * not claim that you wrote the original software. If you use this 00014 * software in a product, an acknowledgment in the product documentation 00015 * would be appreciated but is not required. 00016 * 00017 * 2. Altered source versions must be plainly marked as such, and must 00018 * not be misrepresented as being the original software. 00019 * 00020 * 3. This notice may not be removed or altered from any source 00021 * distribution. 00022 */ 00023 #ifndef _parse_exception_h_included 00024 #define _parse_exception_h_included 00025 #include <stdexcept> 00026 namespace CLI { 00027 00035 class ParseException : public std::runtime_error { 00036 public: 00037 ParseException() : std::runtime_error("parse error") {} 00038 ParseException(const char* const message) : std::runtime_error(message) {} 00039 }; 00040 00041 } 00042 00043 #endif // #ifndef _parse_exception_h_included
hosts this site. |
Send comments to: John Poplett |