HFST - Helsinki Finite-State Transducer Technology - Python API  version 3.12.2
List of all members
StateIndexOutOfBoundsException Class Reference

The state number argument is not valid. More...

Inheritance diagram for StateIndexOutOfBoundsException:
HfstException

Additional Inherited Members

- Public Member Functions inherited from HfstException
def what ()
 A message describing the error in more detail. More...
 

Detailed Description

The state number argument is not valid.

An example :

 tr = hfst.HfstBasicTransducer()
 tr.add_state(1)
 try:
     w = tr.get_final_weight(2)
 except hfst.exceptions.StateIndexOutOfBoundsException:
     print('State number 2 does not exist')

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