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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait |
ResultStateError
public ResultStateError(String s)
- Construct a
ResultStateError
with a message string.
ResultStateError
public ResultStateError()
- Empty constructor for
ResultStateError
.
JavaTM Speech API
Copyright 1997-1998 Sun Microsystems, Inc. All rights reserved
Send comments to javaspeech-comments@sun.com