HFST - Helsinki Finite-State Transducer Technology - C++ API
version 3.9.1
|
Stream cannot be written. More...
#include <HfstExceptionDefs.h>
Additional Inherited Members | |
Public Member Functions inherited from HfstException | |
HFSTDLL std::string | operator() (void) const |
Get the error message. More... | |
Stream cannot be written.
Thrown by hfst::HfstOutputStream::operator<< and hfst::HfstTransducer::write_in_att_format
An example:
try { HfstTransducer tr("foo", FOMA_TYPE); HfstOutputStream out("testfile"); out << tr; } catch (StreamCannotBeWrittenException e) { fprintf(stderr, "ERROR: file cannot be written.\n"); }