|
JSAPI 2.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectThrowable
Exception
SpeechException
SpeakableException
public class SpeakableException
Thrown if a problem is found with an item
placed on the Synthesizer
output queue.
If the item represents synthesis markup, then it must conform to the Speech Synthesis Markup Language (SSML).
The exception message is a printable String
.
A Synthesizer
may optionally
provide SpeakableExceptionDetail
s for each syntax problem.
Synthesizer
,
SpeakableExceptionDetail
Constructor Summary | |
---|---|
SpeakableException()
Constructs a SpeakableException with no detail message. |
|
SpeakableException(String message)
Constructs a SpeakableException with
the specified detail message . |
|
SpeakableException(String message,
SpeakableExceptionDetail[] details)
Constructs a SpeakableException with the specified detail message
and programmatic details of each problem. |
Method Summary | |
---|---|
SpeakableExceptionDetail[] |
getDetails()
Gets the list of SpeakableExceptionDetail descriptions. |
Methods inherited from class Throwable |
---|
getMessage, printStackTrace, toString |
Methods inherited from class Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SpeakableException()
SpeakableException
with no detail message.
public SpeakableException(String message)
SpeakableException
with
the specified detail message
.
message
- a printable detail messagepublic SpeakableException(String message, SpeakableExceptionDetail[] details) throws IllegalArgumentException
SpeakableException
with the specified detail message
and 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 SpeakableExceptionDetail[] getDetails()
SpeakableExceptionDetail
descriptions.
This provides additional details for problems encountered.
If no details are available, a zero-length array is returned.
SpeakableExceptionDetail
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.