aGrUM  0.15.1
gum::InvalidArgument Class Reference

#include <agrum/core/exceptions.h>

+ Inheritance diagram for gum::InvalidArgument:
+ Collaboration diagram for gum::InvalidArgument:

Public Member Functions

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

Protected Attributes

std::string _msg
std::string _type
std::string _callstack

Detailed Description

Exception: at least one argument passed to a function is not what was expected

Definition at line 212 of file exceptions.h.

Member Function Documentation

◆ errorCallStack()

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

Returns the error call stack.

Returns the error call stack.

Definition at line 147 of file exceptions.h.

References gum::Exception::_callstack.

147 { return _callstack; }
std::string _callstack
Definition: exceptions.h:110

◆ errorContent()

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

◆ errorType()

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

Returns the error type.

Returns the error type.

Definition at line 141 of file exceptions.h.

References gum::Exception::_type.

141 { return _type; }
std::string _type
Definition: exceptions.h:109

◆ what()

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

Definition at line 128 of file exceptions.h.

References gum::Exception::_msg.

Referenced by gum::Exception::~Exception().

128 { return "[pyAgrum] " + _type + " : " + _msg; }
std::string _type
Definition: exceptions.h:109
std::string _msg
Definition: exceptions.h:108
+ Here is the caller graph for this function:

Member Data Documentation

◆ _callstack

std::string gum::Exception::_callstack

Definition at line 110 of file exceptions.h.

Referenced by gum::Exception::errorCallStack().

◆ _msg

std::string gum::Exception::_msg

◆ _type

std::string gum::Exception::_type

Definition at line 109 of file exceptions.h.

Referenced by gum::Exception::errorType().

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