Overview | Package | Class | Tree | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Class javax.speech.recognition.ResultStateError

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Error
              |
              +--javax.speech.SpeechError
                    |
                    +--javax.speech.recognition.ResultStateError

public class ResultStateError
extends SpeechError
Signals an error caused by an illegal call to a method of FinalResult, FinalRuleResult or FinalDictationResult.

Methods of these three interfaces of a result can only be called for a finalized Result. The getResultState method of the Result interface tests the result state and must return either ACCEPTED or REJECTED. Furthermore, the methods of FinalRuleResult should only be called for a finalized result matching a RuleGrammar. Similarly, the methods of FinalDictationResult should only be called for a finalized result matching a DictationGrammar.

See Also:
Serialized Form

Constructor Summary
ResultStateError(String s)
          Construct a ResultStateError with a message string.
ResultStateError()
          Empty constructor for ResultStateError.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait
 

Constructor Detail

ResultStateError

public ResultStateError(String s)
Construct a ResultStateError with a message string.

ResultStateError

public ResultStateError()
Empty constructor for ResultStateError.

Overview | Package | Class | Tree | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

JavaTM Speech API
Copyright 1997-1998 Sun Microsystems, Inc. All rights reserved
Send comments to javaspeech-comments@sun.com