tesseract  4.0.0-1-g2a2b
tesseract::IcuErrorCode Class Reference

#include <icuerrorcode.h>

Inheritance diagram for tesseract::IcuErrorCode:

Public Member Functions

 IcuErrorCode ()
 
virtual ~IcuErrorCode ()
 

Protected Member Functions

virtual void handleFailure () const
 

Detailed Description

Definition at line 45 of file icuerrorcode.h.

Constructor & Destructor Documentation

◆ IcuErrorCode()

tesseract::IcuErrorCode::IcuErrorCode ( )
inline

Definition at line 47 of file icuerrorcode.h.

47 {}

◆ ~IcuErrorCode()

tesseract::IcuErrorCode::~IcuErrorCode ( )
virtual

Definition at line 22 of file icuerrorcode.cpp.

22  {
23  if (isFailure()) {
24  handleFailure();
25  }
26 }
virtual void handleFailure() const
Definition: icuerrorcode.h:51

Member Function Documentation

◆ handleFailure()

virtual void tesseract::IcuErrorCode::handleFailure ( ) const
inlineprotectedvirtual

Definition at line 51 of file icuerrorcode.h.

51  {
52  tprintf("ICU ERROR: %s\n", errorName());
53  exit(errorCode);
54  }
DLLSYM void tprintf(const char *format,...)
Definition: tprintf.cpp:37

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