Class javax.speech.EngineErrorEvent
java.lang.Object
|
+--java.util.EventObject
|
+--javax.speech.SpeechEvent
|
+--javax.speech.EngineEvent
|
+--javax.speech.EngineErrorEvent
- public class EngineErrorEvent
- extends EngineEvent
EngineErrorEvent
is an asynchronous notification
of an internal error in the engine which prevents normal
behavior of that engine. The event encapsulates a Throwable
object that provides details about the error.
- See Also:
- engineError, Serialized Form
Field Summary
|
static int
|
ENGINE_ERROR
Identifier for event issued when engine error occurs.
|
Throwable
|
problem
Throwable object (Exception or
Error ) that describes the detected engine problem.
|
Constructor Summary
|
EngineErrorEvent(Engine source,
int id,
Throwable throwable,
long oldEngineState,
long newEngineState)
Constructs an EngineErrorEvent with an event identifier,
throwable, old engine state and new engine state. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait |
ENGINE_ERROR
public static final int ENGINE_ERROR
- Identifier for event issued when engine error occurs.
- See Also:
- engineError
problem
protected Throwable problem
Throwable
object (Exception
or
Error
) that describes the detected engine problem.
- See Also:
- getEngineError
EngineErrorEvent
public EngineErrorEvent(Engine source,
int id,
Throwable throwable,
long oldEngineState,
long newEngineState)
- Constructs an
EngineErrorEvent
with an event identifier,
throwable, old engine state and new engine state. The old and
new states are zero if the engine states are unknown or undefined.
- Parameters:
source
- the object that issued the event
id
- the identifier for the event type
throwable
- description of the detected error
oldEngineState
- engine state prior to this event
newEngineState
- engine state following this event- See Also:
- getEngineState
getEngineError
public Throwable getEngineError()
- Return the
Throwable
object
(Exception
or Error
)
that describes the engine problem.
paramString
public String paramString()
- Returns a parameter string identifying this event.
This method is useful for event-logging and for debugging.
- Returns:
- a string identifying the event
- Overrides:
- paramString in class EngineEvent
JavaTM Speech API
Copyright 1997-1998 Sun Microsystems, Inc. All rights reserved
Send comments to javaspeech-comments@sun.com