Overview | Package | Class | Tree | Index | Help | |||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--javax.speech.SpeechException | +--javax.speech.recognition.GrammarException
RuleGrammar
object derived from JSGF.
Grammar problems are typically identified and fixed during application development. This class provides information that allows a debugging environment to handle the error.
The exception message is a printable string. Recognizers may optionally provide details of each syntax problem.
Constructor Summary | |
GrammarException()
Constructs a GrammarException with no detail message. |
|
GrammarException(String s)
Constructs a GrammarException with the specified detail message.
|
|
GrammarException(String s,
GrammarSyntaxDetail[] details)
Constructs a GrammarException with the specified detail message
and an optional programmatic description of each error.
|
Method Summary | |
void | addDetail(GrammarSyntaxDetail detail)
Add a syntax error description (appended to the existing array of details). |
GrammarSyntaxDetail[] | getDetails()
Return the list of grammar syntax problem descriptions. |
void | setDetails(GrammarSyntaxDetail[] details)
Set the grammar syntax problem descriptions. |
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 |
public GrammarException()
GrammarException
with no detail message.public GrammarException(String s)
GrammarException
with the specified detail message.
s
- a printable detail messagepublic GrammarException(String s, GrammarSyntaxDetail[] details)
GrammarException
with the specified detail message
and an optional programmatic description of each error.
s
- a printable detail message
detail
- detail of each error encountered or null
Method Detail |
public GrammarSyntaxDetail[] getDetails()
public void setDetails(GrammarSyntaxDetail[] details)
public void addDetail(GrammarSyntaxDetail detail)
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