org.openbp.jaspira.plugins.errordialog
Class ErrorEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.openbp.jaspira.event.JaspiraEvent
          extended by org.openbp.jaspira.plugins.errordialog.ErrorEvent
All Implemented Interfaces:
java.io.Serializable

public class ErrorEvent
extends JaspiraEvent

This event can be used to open the error dialog.

Author:
Andreas Putz
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.openbp.jaspira.event.JaspiraEvent
CONSUMED, HANDELED, STACKABLE, TYPE_BOTTOM_UP, TYPE_DIRECT, TYPE_FLOOD, TYPE_GLOBAL, UNCONSUMABLE
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ErrorEvent(Plugin source, java.lang.String message, java.lang.String exceptionString)
          Constructor.
ErrorEvent(Plugin source, java.lang.String message, java.lang.Throwable t)
          Constructor.
 
Method Summary
 java.lang.String getExceptionString()
          Gets the exception as string.
 java.lang.String getMessage()
          Gets the message which will displayed in a dialog.
 java.lang.Throwable getThrowable()
          Gets the throwable which was thrown.
 
Methods inherited from class org.openbp.jaspira.event.JaspiraEvent
brand, getBrand, getEventGroup, getEventName, getFlags, getLevel, getObject, getOriginalEvent, getSourcePlugin, getTargetClassName, getTargetPluginId, getType, isConsumed, isStackable, isUnconsumable, setObject, setTargetClassName, setTargetPluginId, toString, updateFlags, updateFlags
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ErrorEvent

public ErrorEvent(Plugin source,
                  java.lang.String message,
                  java.lang.Throwable t)
Constructor.

Parameters:
source - The plugin where the throwable was thrown
message - This message will be displayed in a dialog
t - Throwable object

ErrorEvent

public ErrorEvent(Plugin source,
                  java.lang.String message,
                  java.lang.String exceptionString)
Constructor.

Parameters:
source - The plugin where the throwable was thrown
message - This message will be displayed in a dialog
exceptionString - The exception as string
Method Detail

getMessage

public java.lang.String getMessage()
Gets the message which will displayed in a dialog.


getThrowable

public java.lang.Throwable getThrowable()
Gets the throwable which was thrown.


getExceptionString

public java.lang.String getExceptionString()
Gets the exception as string.



Copyright © 2011. All Rights Reserved.