Novell exteNd Web Services SDK API

com.sssw.jbroker.web.portable
Class ApplicationException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.sssw.jbroker.web.portable.ApplicationException
All Implemented Interfaces:
Serializable

public class ApplicationException
extends Exception

An ApplicationException represents an exception which occured on the server and is present in the response.

Since:
jBroker Web 1.1
See Also:
Serialized Form

Constructor Summary
ApplicationException(Element detail, String faultString, String faultCode)
          Construct a new ApplicationException object.
ApplicationException(String faultString, String faultCode, QName excQName, InputStream is)
          Construct a new ApplicationException object.
 
Method Summary
 Element getDetail()
          Get the detail of the exception
 String getFaultCode()
          Get the application exception's fault code.
 String getFaultString()
          Get the application exception's fault string.
 InputStream getInputStream()
          Get the application exception's input stream
 QName getQName()
          Get the QName of the exception's XML tag
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ApplicationException

public ApplicationException(Element detail,
                            String faultString,
                            String faultCode)
Construct a new ApplicationException object.

Parameters:
faultString - the exception's fault string
faultCode - the exception's fault code
detail - the DOM Element containing fault detail information
Since:
jBroker Web 2.1

ApplicationException

public ApplicationException(String faultString,
                            String faultCode,
                            QName excQName,
                            InputStream is)
Construct a new ApplicationException object.

Parameters:
faultString - the exception's fault string
faultCode - the exception's fault code
excQName - the QName of the exception's XML tag
is - an input stream to read exception details from
Since:
jBroker Web 1.1
Method Detail

getFaultCode

public String getFaultCode()
Get the application exception's fault code.

Returns:
fault code string
Since:
jBroker Web 1.1

getFaultString

public String getFaultString()
Get the application exception's fault string.

Returns:
fault string
Since:
jBroker Web 1.1

getInputStream

public InputStream getInputStream()
Get the application exception's input stream

Returns:
input stream to read exception details from
Since:
jBroker Web 1.1

getQName

public QName getQName()
Get the QName of the exception's XML tag

Returns:
QName for application exception
Since:
jBroker Web 1.1

getDetail

public Element getDetail()
Get the detail of the exception

Returns:
Element for the detail in the SOAP Fault
Since:
jBroker Web 2.0

Novell exteNd Web Services SDK API

exteNd is a registered trademark of Novell, Inc.
Copyright 1998-2003 Novell, Inc. All Rights Reserved.