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
TransducerIsCyclicException Struct Reference

Transducer is cyclic. More...

#include <HfstExceptionDefs.h>

Inheritance diagram for TransducerIsCyclicException:

Additional Inherited Members

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

Detailed Description

Transducer is cyclic.

thrown by hfst::HfstTransducer::extract_paths and hfst::HfstTransducer::extract_paths_fd. An example:

HfstTransducer transducer("a", "b", TROPICAL_OPENFST_TYPE);
try {
  HfstTwoLevelPaths results;
  fprintf(stderr, "The transducer has %i paths\n", results.size());
} catch (TransducerIsCyclicException e) {
    fprintf(stderr, "The transducer is cyclic "
            " and has an infinite number of paths.\n");

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