tesseract v5.3.3.20231005
tesseract::IcuErrorCode Class Reference

#include <icuerrorcode.h>

Inheritance diagram for tesseract::IcuErrorCode:

Public Member Functions

 IcuErrorCode ()=default
 
 ~IcuErrorCode () override
 

Protected Member Functions

void handleFailure () const override
 

Detailed Description

Definition at line 45 of file icuerrorcode.h.

Constructor & Destructor Documentation

◆ IcuErrorCode()

tesseract::IcuErrorCode::IcuErrorCode ( )
default

◆ ~IcuErrorCode()

tesseract::IcuErrorCode::~IcuErrorCode ( )
override

Definition at line 22 of file icuerrorcode.cpp.

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

Member Function Documentation

◆ handleFailure()

void tesseract::IcuErrorCode::handleFailure ( ) const
inlineoverrideprotected

Definition at line 51 of file icuerrorcode.h.

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

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