SHOGUN
v3.2.0
|
00001 /* 00002 * This program is free software; you can redistribute it and/or modify 00003 * it under the terms of the GNU General Public License as published by 00004 * the Free Software Foundation; either version 3 of the License, or 00005 * (at your option) any later version. 00006 * 00007 * Written (W) 1999-2009 Soeren Sonnenburg 00008 * Copyright (C) 1999-2009 Fraunhofer Institute FIRST and Max-Planck-Society 00009 */ 00010 00011 #ifndef _SHOGUN_EXCEPTION_H_ 00012 #define _SHOGUN_EXCEPTION_H_ 00013 00014 namespace shogun 00015 { 00019 class ShogunException 00020 { 00021 void init(const char* str); 00022 00023 public: 00028 ShogunException(const char* str); 00029 00034 ShogunException(const ShogunException& orig); 00035 00038 virtual ~ShogunException(); 00039 00044 inline const char* get_exception_string() { return val; } 00045 00046 private: 00048 char* val; 00049 }; 00050 } 00051 #endif // _SHOGUN_EXCEPTION_H_