|
HFST - Helsinki Finite-State Transducer Technology - C++ API
version 3.9.1
|
Stream is closed. 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 is closed.
Thrown by hfst::HfstTransducer::write_in_att_format hfst::HfstTransducer(FILE*, ImplementationType, const std::string&) hfst::HfstTransducer(const hfst::HfstInputStream&) hfst::HfstOutputStream::operator<<
An example:
try {
HfstTransducer tr("foo", LOG_OPENFST_TYPE);
HfstOutputStream out("testfile");
out.close();
out << tr;
} catch (StreamIsClosedException e) {
fprintf(stderr, "ERROR: stream to file is closed.\n");
}
1.8.7