|
HFST - Helsinki Finite-State Transducer Technology API
version 3.7.1
|
Stream cannot be written. More...
#include <HfstExceptionDefs.h>
Additional Inherited Members | |
Public Member Functions inherited from HfstException | |
| 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");
}
1.8.6