at.ac.tuwien.infosys.sm4all.copal.api.service
Class FailedPublishingException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by at.ac.tuwien.infosys.sm4all.copal.api.ContextException
              extended by at.ac.tuwien.infosys.sm4all.copal.api.service.FailedPublishingException
All Implemented Interfaces:
java.io.Serializable

public class FailedPublishingException
extends ContextException

Exception when publishing of a ContextEvent fails.

Author:
sanjin
See Also:
Serialized Form

Constructor Summary
FailedPublishingException(java.lang.String message, ContextEvent event)
          Create instance of failed publishing of specified ContextEvent exception with the specified detail message.
FailedPublishingException(java.lang.String message, ContextEvent event, java.lang.Throwable cause)
          Create instance of failed publishing of specified ContextEvent with the specified detail message and cause.
 
Method Summary
 ContextEvent getEvent()
          Returns the ContextEvent which failed to be published.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FailedPublishingException

public FailedPublishingException(java.lang.String message,
                                 ContextEvent event)
Create instance of failed publishing of specified ContextEvent exception with the specified detail message.

Parameters:
message - the detail message (which is saved for later retrieval by the Throwable.getMessage() method).
event - the ContextEvent (which is saved for later retrieval by the getEvent() method).

FailedPublishingException

public FailedPublishingException(java.lang.String message,
                                 ContextEvent event,
                                 java.lang.Throwable cause)
Create instance of failed publishing of specified ContextEvent with the specified detail message and cause.

Parameters:
message - the detail message (which is saved for later retrieval by the Throwable.getMessage() method).
event - the ContextEvent (which is saved for later retrieval by the getEvent() method).
cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). A null value is permitted, and indicates that the cause is nonexistent or unknown.
Method Detail

getEvent

public ContextEvent getEvent()
Returns the ContextEvent which failed to be published.

Returns:
the ContextEvent which failed to be published.


Copyright © 2010 Distributed Systems Group, Vienna University of Technology. All Rights Reserved.