javax.microedition.xml.rpc
Class FaultDetailException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by 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:
BlackBerry API 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:
BlackBerry API 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:
BlackBerry API 4.3.0

getFaultDetailName

public QName getFaultDetailName()
Returns the qualified name of the fault detail.

Returns:
the qualified name of the fault detail.
Since:
BlackBerry API 4.3.0





Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal