uk.ac.ebi.intact.persistence
Class CreateException

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

public class CreateException
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.

Author:
Chris Lewington
See Also:
Serialized Form

Constructor Summary
CreateException()
           
CreateException(java.lang.String msg)
           
CreateException(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.
 
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

CreateException

public CreateException()

CreateException

public CreateException(java.lang.String msg)

CreateException

public CreateException(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


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