ome.util.messages
Class MessageException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by ome.util.messages.MessageException
All Implemented Interfaces:
Serializable

public class MessageException
extends RuntimeException

Message which wraps a Throwable instance since OmeroContext.publishEvent(org.springframework.context.ApplicationEvent) cannot throw a checked exception.

Since:
3.0-Beta2
Author:
Josh Moore, josh at glencoesoftware.com
See Also:
Serialized Form

Field Summary
protected  Throwable t
           
 
Constructor Summary
MessageException(String msg, Throwable throwable)
          Create an instance.
 
Method Summary
 Throwable getException()
          Get the exception which this instance wraps.
 
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
 

Field Detail

t

protected final Throwable t
Constructor Detail

MessageException

public MessageException(String msg,
                        Throwable throwable)
Create an instance. The passed in Throwable is available via getException().

Parameters:
msg -
throwable -
Method Detail

getException

public Throwable getException()
Get the exception which this instance wraps.

Returns:


OmeroJava Api

Version: Beta-4.2.0-r7571-b29

Copyright © 2009 The University of Dundee. All Rights Reserved.