org.apache.geronimo.ews.ws4j2ee.toWs
Class GenerationFault

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.apache.geronimo.ews.ws4j2ee.toWs.GenerationFault
All Implemented Interfaces:
java.io.Serializable

public class GenerationFault
extends java.lang.Exception

This denotes the Exception occured at the code genaration. There is a isssue of wrapping the Exception such that JDK1.3 compatibility. This code write same way as it was done at the RemoteException.

See Also:
Serialized Form

Field Summary
 java.lang.Throwable detail
          Nested Exception to hold wrapped exception.
 
Constructor Summary
GenerationFault(java.lang.String message)
           
GenerationFault(java.lang.String s, java.lang.Throwable ex)
          Constructs a Exception with the specified detail message and nested exception.
 
Method Summary
static GenerationFault createGenerationFault(java.lang.Exception e)
           
 java.lang.Throwable getCause()
          Returns the wrapped exception (the cause).
 java.lang.String getMessage()
          Returns the detail message, including the message from the nested exception if there is one.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, 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

detail

public java.lang.Throwable detail
Nested Exception to hold wrapped exception.

This field predates the general-purpose exception chaining facility. The Throwable.getCause() method is now the preferred means of obtaining this information.

Constructor Detail

GenerationFault

public GenerationFault(java.lang.String message)

GenerationFault

public GenerationFault(java.lang.String s,
                       java.lang.Throwable ex)
Constructs a Exception with the specified detail message and nested exception.

Parameters:
s - the detail message
ex - the nested exception
Method Detail

getMessage

public java.lang.String getMessage()
Returns the detail message, including the message from the nested exception if there is one.

Returns:
the detail message, including nested exception message if any

getCause

public java.lang.Throwable getCause()
Returns the wrapped exception (the cause).

Returns:
the wrapped exception, which may be null.

createGenerationFault

public static GenerationFault createGenerationFault(java.lang.Exception e)


Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.