Overview | Package | Class | Use | Tree | Deprecated | Index | Help
|  | BEA Systems, Inc.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## BEA WebLogic Server 9.0 API Reference

## weblogic.wsee.jws
Class SoapFaultException

    java.lang.Object
      java.lang.Throwable
          java.lang.Exception
              java.lang.RuntimeException
                  weblogic.wsee.jws.SoapFaultException

All Implemented Interfaces:
  Serializable

public class SoapFaultException
extends RuntimeException

The SoapFaultException is a wrapper exception that enables the web service developer to generate a specific SOAP fault.

See Also:
  `com.bea.control.SoapFault`, Serialized Form

  Copyright © 2005 BEA Systems, Inc. All Rights Reserved.

Field Summary
`static int` | `FAULT_SOAP11`
`static int` | `FAULT_SOAP12`
`static int` | `FAULT_UNKNOWN`

Constructor Summary
`SoapFaultException(com.bea.xml.XmlObject xmlObj)` User wants to own the shape of the fault.
`SoapFaultException(com.bea.xml.XmlObject[] detailContent)` Assumes the user just wants to generate the fault document defined in the WSDL for the current operation.
`SoapFaultException(com.bea.xml.XmlObject detailContent, String s)` Deprecated.

Method Summary
`com.bea.xml.XmlObject[]` | `getDetail()`
`com.bea.xml.XmlObject` | `getFault()`
`boolean` | `hasDetail()`
`boolean` | `hasFault()`
`boolean` | `isCausedBySender()`
`void` | `setCausedBySender(boolean senderIsCause)` Settes the code in the SoapFault: for Soap 1.2 Sender/Receiver, for Soap 1.1 Client/Server
`int` | `soapFaultVersion()`

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`

Field Detail

### FAULT_SOAP11

    public static final int FAULT_SOAP11

See Also:
  Constant Field Values

### FAULT_SOAP12

    public static final int FAULT_SOAP12

See Also:
  Constant Field Values

### FAULT_UNKNOWN

    public static final int FAULT_UNKNOWN

See Also:
  Constant Field Values

Constructor Detail

### SoapFaultException

    public SoapFaultException(com.bea.xml.XmlObject xmlObj)

  User wants to own the shape of the fault. The user has to know which version of the envelop to use.

See Also:
  ````

### SoapFaultException

    public SoapFaultException(com.bea.xml.XmlObject[] detailContent)

  Assumes the user just wants to generate the fault document defined in the WSDL for the current operation. This form defaults to server/receiver as the cause.

### SoapFaultException

    public SoapFaultException(com.bea.xml.XmlObject detailContent,
                              String s)

  Deprecated.

  Assumes the user just wants to generate the fault document defined in the WSDL for the current operation. This form defaults to server/receiver as the cause.

Method Detail

### getDetail

    public com.bea.xml.XmlObject[] getDetail()

  Returns:
    detail

### getFault

    public com.bea.xml.XmlObject getFault()

  Returns:
    fault

### hasDetail

    public boolean hasDetail()

  Returns:
    whether the fault contains detail

### hasFault

    public boolean hasFault()

  Returns:
    whether this holds a fault

### isCausedBySender

    public boolean isCausedBySender()

  Returns:
    senderIsCause

### setCausedBySender

    public void setCausedBySender(boolean senderIsCause)

  Settes the code in the SoapFault: for Soap 1.2 Sender/Receiver, for Soap 1.1 Client/Server

  Parameters:
    `senderIsCause` - if true: Sender (Client for Soap 1.1) else: Receiver (Server for Soap 1.1)

### soapFaultVersion

    public int soapFaultVersion()

  Returns:
    soapFaultVersion

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Documentation is available at http://e-docs.bea.com/wls/docs90 Copyright 2005 BEA Systems Inc.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD