com.anthonyeden.lib.event
Class ErrorEvent

java.lang.Object
  extended byjava.util.EventObject
      extended bycom.anthonyeden.lib.event.ErrorEvent
All Implemented Interfaces:
java.io.Serializable

public class ErrorEvent
extends java.util.EventObject

Event which occurs whenever there is an error. This is thrown by classes which execute asynchronously.

Author:
Anthony Eden
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ErrorEvent(java.lang.Object source, java.lang.String message)
          Construct an ErrorEvent from the given source object with the given message.
ErrorEvent(java.lang.Object source, java.lang.String message, java.lang.Throwable throwable)
          Construct an ErrorEvent from the given source object with the given nested error and the given message.
ErrorEvent(java.lang.Object source, java.lang.Throwable throwable)
          Construct an ErrorEvent from the given source object with the given nested error.
 
Method Summary
 java.lang.Throwable getError()
          Return the error object.
 java.lang.String getMessage()
          Get the message.
 java.lang.Throwable getThrowable()
          Deprecated. Use getError() instead
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ErrorEvent

public ErrorEvent(java.lang.Object source,
                  java.lang.String message)
Construct an ErrorEvent from the given source object with the given message.

Parameters:
source - The source object
message - The message String

ErrorEvent

public ErrorEvent(java.lang.Object source,
                  java.lang.Throwable throwable)
Construct an ErrorEvent from the given source object with the given nested error.

Parameters:
source - The source object
throwable - The nested error

ErrorEvent

public ErrorEvent(java.lang.Object source,
                  java.lang.String message,
                  java.lang.Throwable throwable)
Construct an ErrorEvent from the given source object with the given nested error and the given message.

Parameters:
source - The source object
message - The message
throwable - The nested error
Method Detail

getMessage

public java.lang.String getMessage()
Get the message.

Returns:
The message String

getError

public java.lang.Throwable getError()
Return the error object.

Returns:
The Throwable error

getThrowable

public java.lang.Throwable getThrowable()
Deprecated. Use getError() instead

Return the error object.

Returns:
The Throwable error


Copyright (c) 2000-2003 Anthony Eden. All Rights Reserved.