JSAPI 2.0

javax.speech.recognition
Class ResultStateException

Object
  extended by Throwable
      extended by Exception
          extended by RuntimeException
              extended by IllegalStateException
                  extended by ResultStateException

public class ResultStateException
extends IllegalStateException

Thrown if there is an illegal call to a method of FinalResult or FinalRuleResult.

Methods of these 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.

See Also:
FinalResult, FinalRuleResult, getResultState

Constructor Summary
ResultStateException()
          Constructs a ResultStateException with no detail message.
ResultStateException(String message)
          Constructs a ResultStateException with the specified detail message.
 
Method Summary
 
Methods inherited from class Throwable
getMessage, printStackTrace, toString
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResultStateException

public ResultStateException()
Constructs a ResultStateException with no detail message.


ResultStateException

public ResultStateException(String message)
Constructs a ResultStateException with the specified detail message. A detail message is a String that describes this particular exception.

Parameters:
message - the detail message
See Also:
getMessage

JSAPI 2.0

JavaTM Speech API 2.0, Final Release v2.0.6.
© 2008, Conversay and Sun Microsystems.

Free Web Hosting