aGrUM  0.20.2
a C++ library for (probabilistic) graphical models
gum::LearningError Class Reference

#include <agrum/tools/core/exceptions.h>

+ Inheritance diagram for gum::LearningError:
+ Collaboration diagram for gum::LearningError:

Public Member Functions

std::string what () const
 
std::string errorContent () const
 Returns the message content. More...
 
std::string errorType () const
 Returns the error type. More...
 
std::string errorCallStack () const
 Returns the error call stack. More...
 

Protected Attributes

std::string msg_
 
std::string type_
 
std::string callstack_
 

Detailed Description

Exceptions for learning

Definition at line 418 of file exceptions.h.

Member Function Documentation

◆ errorCallStack()

std::string gum::Exception::errorCallStack ( ) const
inlineinherited

Returns the error call stack.

Returns
Returns the error call stack.

Definition at line 148 of file exceptions.h.

148 { return callstack_; }
std::string callstack_
Definition: exceptions.h:112

◆ errorContent()

std::string gum::Exception::errorContent ( ) const
inlineinherited

Returns the message content.

Returns
Returns the message content.

Definition at line 136 of file exceptions.h.

136 { return msg_; }
std::string msg_
Definition: exceptions.h:110

◆ errorType()

std::string gum::Exception::errorType ( ) const
inlineinherited

Returns the error type.

Returns
Returns the error type.

Definition at line 142 of file exceptions.h.

142 { return type_; }
std::string type_
Definition: exceptions.h:111

◆ what()

std::string gum::Exception::what ( ) const
inlineinherited

Definition at line 129 of file exceptions.h.

129 { return type_ + " : " + msg_; }
std::string type_
Definition: exceptions.h:111
std::string msg_
Definition: exceptions.h:110

Member Data Documentation

◆ callstack_

std::string gum::Exception::callstack_
protectedinherited

Definition at line 112 of file exceptions.h.

◆ msg_

std::string gum::Exception::msg_
protectedinherited

Definition at line 110 of file exceptions.h.

◆ type_

std::string gum::Exception::type_
protectedinherited

Definition at line 111 of file exceptions.h.


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