jubatus_core  0.1.2
Jubatus: Online machine learning framework for distributed environment
Public Member Functions | Private Attributes | List of all members
jubatus::core::common::exception::jubaexception< Exception > Class Template Reference

#include <exception.hpp>

Inheritance diagram for jubatus::core::common::exception::jubaexception< Exception >:
Inheritance graph
Collaboration diagram for jubatus::core::common::exception::jubaexception< Exception >:
Collaboration graph

Public Member Functions

void bind_thrower (exception_thrower_ptr thrower) const
 
 jubaexception ()
 
exception_thrower_ptr thrower () const
 
virtual ~jubaexception () throw ()
 
- Public Member Functions inherited from jubatus::core::common::exception::jubatus_exception
std::string diagnostic_information (bool display_what=false) const
 
error_info_list_t error_info () const
 
 jubatus_exception () throw ()
 
std::string name () const throw ()
 
virtual const char * what () const throw ()
 
virtual ~jubatus_exception () throw ()
 

Private Attributes

exception_thrower_ptr thrower_
 

Detailed Description

template<class Exception>
class jubatus::core::common::exception::jubaexception< Exception >

Definition at line 184 of file exception.hpp.

Constructor & Destructor Documentation

template<class Exception>
jubatus::core::common::exception::jubaexception< Exception >::jubaexception ( )
inline

Definition at line 186 of file exception.hpp.

186  {
187  }
template<class Exception>
virtual jubatus::core::common::exception::jubaexception< Exception >::~jubaexception ( )
throw (
)
inlinevirtual

Definition at line 188 of file exception.hpp.

188  {
189  }

Member Function Documentation

template<class Exception>
void jubatus::core::common::exception::jubaexception< Exception >::bind_thrower ( exception_thrower_ptr  thrower) const
inline

Definition at line 202 of file exception.hpp.

202  {
203  thrower_ = thrower;
204  }
exception_thrower_ptr thrower() const
Definition: exception.hpp:191
template<class Exception>
exception_thrower_ptr jubatus::core::common::exception::jubaexception< Exception >::thrower ( ) const
inlinevirtual

Implements jubatus::core::common::exception::jubatus_exception.

Definition at line 191 of file exception.hpp.

Referenced by jubatus::core::common::exception::jubaexception< storage_not_set >::bind_thrower(), and jubatus::core::common::exception::get_current_exception().

191  {
192  if (thrower_) {
193  return thrower_;
194  } else {
195  return exception_thrower_ptr(
196  new exception_thrower_impl<Exception>(
197  *(static_cast<const Exception*>(this))));
198  }
199  }
jubatus::util::lang::shared_ptr< exception_thrower_base > exception_thrower_ptr
Definition: exception.hpp:83

Here is the caller graph for this function:

Member Data Documentation

template<class Exception>
exception_thrower_ptr jubatus::core::common::exception::jubaexception< Exception >::thrower_
mutableprivate

The documentation for this class was generated from the following file: