HFST - Helsinki Finite-State Transducer Technology API
version 3.7.1
|
The stream does not contain transducers. More...
#include <HfstExceptionDefs.h>
Additional Inherited Members | |
Public Member Functions inherited from HfstException | |
std::string | operator() (void) const |
Get the error message. More... | |
The stream does not contain transducers.
Thrown by hfst::HfstTransducer(const hfst::HfstInputStream&) hfst::HfstInputStream() hfst::HfstInputStream(const std::string&)
An example. The file "foofile" contains
This is a text file. Here is another line. The file ends here.
When we try to read it, an exception will be thrown:
try { HfstInputStream in("foofile"); } catch (NotTransducerStreamException e) { fprintf(stderr, "ERROR: file does not contain transducers.\n"); }