javax.microedition.xml.rpc
Class FaultDetailException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--javax.microedition.xml.rpc.FaultDetailException

public class FaultDetailException
extends Exception

In web services, the FaultDetailException class returns service specific exception detail values, and an associated QName, to a Stub instance.

Using the description of the SOAP fault detail, the runtime encodes the SOAP fault detail in an Object array. This Object array, and the associated QName, are passed back to the stub in a FaultDetailException object which is linked, as the cause, in a JAXRPCException object. The stub decodes the Object array, and throws the service specific exception to the application.

See JSR 172 Specification, Subsection 8.2.7 (Error Handling - Service Specific Exceptions).

See JAXRPCException, FaultDetailHandler, QName.

Since:
JDE 4.3.0

Constructor Summary
FaultDetailException(QName detailName, Object faultDetail)
          Constructs an exception given the fault detail and its qualified name.
 
Method Summary
 Object getFaultDetail()
          Returns the Object array representing the fault detail value.
 QName getFaultDetailName()
          Returns the qualified name of the fault detail.
 
Methods inherited from class java.lang.Throwable
getMessage, printStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FaultDetailException

public FaultDetailException(QName detailName,
                            Object faultDetail)
Constructs an exception given the fault detail and its qualified name.
Parameters:
faultDetail - Object array storing the values for the SOAP fault detail.
detailName - the qualified name of the SOAP fault detail.
Since:
JDE 4.3.0
Method Detail

getFaultDetail

public Object getFaultDetail()
Returns the Object array representing the fault detail value.
Returns:
the Object array representing the fault detail value.
Since:
JDE 4.3.0

getFaultDetailName

public QName getFaultDetailName()
Returns the qualified name of the fault detail.
Returns:
the qualified name of the fault detail.
Since:
JDE 4.3.0



Copyright 1999-2009 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.