uk.ac.ebi.intact.persistence
Class UpdateException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--uk.ac.ebi.intact.persistence.UpdateException
All Implemented Interfaces:
java.io.Serializable

public class UpdateException
extends java.lang.Exception

Exception class to provide more meaningful error messages. There is an extra constructor to allow other exceptions to pass on information.

Version:
$Id: UpdateException.java,v 1.1 2003/08/13 14:28:13 smudali Exp $
Author:
Chris Lewington
See Also:
Serialized Form

Constructor Summary
UpdateException()
          The default construstor with a default error message.
UpdateException(java.lang.String msg)
           
UpdateException(java.lang.String msg, java.lang.Exception e)
          this constructor is used typically to pass on extra failure information from excpetions thrown elsewhere, eg from within other APIs
 
Method Summary
 java.lang.String getNestedMessage()
          this method obtains any information from within nested exceptions that have been passed on.
 java.lang.Exception getRootCause()
           
 
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

UpdateException

public UpdateException()
The default construstor with a default error message.


UpdateException

public UpdateException(java.lang.String msg)

UpdateException

public UpdateException(java.lang.String msg,
                       java.lang.Exception e)
this constructor is used typically to pass on extra failure information from excpetions thrown elsewhere, eg from within other APIs

Parameters:
msg - - the currently raised message
e - - an Exception being passed on
Method Detail

getNestedMessage

public java.lang.String getNestedMessage()
this method obtains any information from within nested exceptions that have been passed on.

Returns:
String - a nested message, or a string indiciating none available

getRootCause

public java.lang.Exception getRootCause()


IntAct Project - EMBL-EBI 2004 - intact-help@ebi.ac.uk