SHOGUN  4.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
ShogunException.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation; either version 3 of the License, or
5  * (at your option) any later version.
6  *
7  * Written (W) 1999-2009 Soeren Sonnenburg
8  * Copyright (C) 1999-2009 Fraunhofer Institute FIRST and Max-Planck-Society
9  */
10 
11 #ifndef _SHOGUN_EXCEPTION_H_
12 #define _SHOGUN_EXCEPTION_H_
13 
14 #include <shogun/lib/config.h>
15 
16 namespace shogun
17 {
22 {
23  void init(const char* str);
24 
25  public:
30  ShogunException(const char* str);
31 
36  ShogunException(const ShogunException& orig);
37 
40  virtual ~ShogunException();
41 
46  inline const char* get_exception_string() { return val; }
47 
48  private:
50  char* val;
51 };
52 }
53 #endif // _SHOGUN_EXCEPTION_H_
Class ShogunException defines an exception which is thrown whenever an error inside of shogun occurs...
ShogunException(const char *str)
const char * get_exception_string()
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:18

SHOGUN Machine Learning Toolbox - Documentation