Kaldi fatal runtime error exception. More...

#include <kaldi-error.h>

Inheritance diagram for KaldiFatalError:
Collaboration diagram for KaldiFatalError:

Public Member Functions

 KaldiFatalError (const std::string &message)
 
 KaldiFatalError (const char *message)
 
virtual const char * what () const noexcept override
 Returns the exception name, "kaldi::KaldiFatalError". More...
 
const char * KaldiMessage () const
 Returns the Kaldi error message logged by KALDI_ERR. More...
 

Detailed Description

Kaldi fatal runtime error exception.

This exception is thrown from any use of the KALDI_ERR logging macro after the logging function, either set by SetLogHandler(), or the Kaldi's internal one, has returned.

Definition at line 89 of file kaldi-error.h.

Constructor & Destructor Documentation

◆ KaldiFatalError() [1/2]

KaldiFatalError ( const std::string &  message)
inlineexplicit

Definition at line 91 of file kaldi-error.h.

92  : std::runtime_error(message) {}

◆ KaldiFatalError() [2/2]

KaldiFatalError ( const char *  message)
inlineexplicit

Definition at line 93 of file kaldi-error.h.

93 : std::runtime_error(message) {}

Member Function Documentation

◆ KaldiMessage()

const char* KaldiMessage ( ) const
inline

Returns the Kaldi error message logged by KALDI_ERR.

Definition at line 101 of file kaldi-error.h.

Referenced by main().

101 { return std::runtime_error::what(); }

◆ what()

virtual const char* what ( ) const
inlineoverridevirtualnoexcept

Returns the exception name, "kaldi::KaldiFatalError".

Definition at line 96 of file kaldi-error.h.

96  {
97  return "kaldi::KaldiFatalError";
98  }

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