|
JSAPI 2.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectThrowable
Exception
SpeechException
GrammarException
public class GrammarException
Thrown if a problem is found with grammar text from a resource or
with a RuleGrammar
object derived from grammar text.
Grammar
problems are typically identified and
fixed during application development.
This class provides information that allows a
debugging environment to handle the problem.
The exception message is a printable String
.
GrammarExceptionDetail
may optionally be provided
for each syntax problem.
Grammar
,
RuleGrammar
,
GrammarExceptionDetail
Constructor Summary | |
---|---|
GrammarException()
Constructs a GrammarException with no detail message. |
|
GrammarException(String message)
Constructs a GrammarException
with the specified detail message . |
|
GrammarException(String message,
GrammarExceptionDetail[] details)
Constructs a GrammarException
with the specified detail message
and optional programmatic details of each problem. |
Method Summary | |
---|---|
GrammarExceptionDetail[] |
getDetails()
Gets the list of GrammarExceptionDetail s. |
Methods inherited from class Throwable |
---|
getMessage, printStackTrace, toString |
Methods inherited from class Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GrammarException()
GrammarException
with no detail message.
public GrammarException(String message)
GrammarException
with the specified detail message
.
message
- a printable detail messagegetMessage
public GrammarException(String message, GrammarExceptionDetail[] details) throws IllegalArgumentException
GrammarException
with the specified detail message
and optional programmatic details
of each problem.
message
- a printable detail messagedetails
- a non-null
array of details
for problems encountered
IllegalArgumentException
- if called with an invalid
parameter valuegetMessage
,
getDetails
Method Detail |
---|
public GrammarExceptionDetail[] getDetails()
GrammarExceptionDetail
s.
This provides additional detail for Grammar
problems.
If no details are available, a zero-length array is returned.
GrammarExceptionDetail
objects
|
JSAPI 2.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
JavaTM Speech API 2.0,
Final Release v2.0.6.
© 2008, Conversay and Sun Microsystems.