HFST - Helsinki Finite-State Transducer Technology - C++ API  version 3.9.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
List of all members
StreamNotReadableException Struct Reference

Stream cannot be read. More...

#include <HfstExceptionDefs.h>

Inheritance diagram for StreamNotReadableException:

Additional Inherited Members

- Public Member Functions inherited from HfstException
HFSTDLL std::string operator() (void) const
 Get the error message. More...

Detailed Description

Stream cannot be read.

Thrown by hfst::HfstTransducer(const hfst::HfstInputStream&) and hfst::HfstTransducer(FILE*, ImplementationType, const std::string&)

An example:

try {
  HfstInputStream in("foofile");
} catch (StreamNotReadableException e) {
  fprintf(stderr, "ERROR: file cannot be read.\n");

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