Feature Selection Toolbox FST4
UTIA · Czech Academy of Sciences
Loading...
Searching...
No Matches

FST4 specific error passing class. More...

#include <error.hpp>

Inheritance diagram for FST::fst_error:

Public Member Functions

 fst_error (const std::string &_err, const int _errcode=0)
 Constructs the error, prefixing _err with "[FST_ERROR!] " for the inherited std::runtime_error::what() message.
int code () const
 returns the numeric error code supplied at construction (0 if none was given)

Private Attributes

const int _code
 numeric error code supplied at construction

Detailed Description

FST4 specific error passing class.

Derives from std::runtime_error, so a caller that catches std::exception (or std::runtime_error) catches every error FST4 throws; what() returns the message supplied at construction, prefixed with "[FST_ERROR!] ". The optional numeric code is diagnostic only – no FST4 component branches on it, and the same code may be reused by unrelated components, so recovery logic must not depend on it.

Examples
demo10.cpp, demo52t.cpp, and demo55.cpp.

Constructor & Destructor Documentation

◆ fst_error()

FST::fst_error::fst_error ( const std::string & _err,
const int _errcode = 0 )
inline

Constructs the error, prefixing _err with "[FST_ERROR!] " for the inherited std::runtime_error::what() message.

Parameters
_errhuman-readable error message
_errcodeoptional numeric error code, retrievable via code(); diagnostic only

The documentation for this class was generated from the following file:
  • /Users/psms/dev/devtest1/_src_global/error.hpp
Copyright © 2000–present ÚTIA, Institute of Information Theory and Automation of the Czech Academy of Sciences · Contacts · This site sets no cookies and uses no analytics.