Changes since
the last release

com.ebay.sdk
Class SdkSoapException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.ebay.sdk.SdkException
              extended by com.ebay.sdk.SdkSoapException
All Implemented Interfaces:
java.io.Serializable

public class SdkSoapException
extends SdkException

Wraps SOAP exception (SOAPFaultException) for SDK. It exatracts an ErrorType object from the SOAPFaultException.

Title:

Description:

Copyright: Copyright (c) 2004

Company: eBay Inc.

Version:
1.0
Author:
weijun.li & william.yang
See Also:
Serialized Form

Constructor Summary
protected SdkSoapException(ErrorType errorType, java.lang.Exception innerException)
          Constructor.
 
Method Summary
 boolean containsErrorCode(java.lang.String errorCode)
           
static SdkSoapException fromSOAPFaultException(javax.xml.ws.soap.SOAPFaultException sfe)
          Create an instance of SdkSoapException object from SOAPFaultException.
 ErrorType getErrorType()
          Gets the associated ErrorType object.
 java.lang.String getMessage()
          Overrides Exception.GetMessage() to return short message if there's one.
 void setErrorType(ErrorType errorType)
          Sets the associated ErrorType object.
 
Methods inherited from class com.ebay.sdk.SdkException
getInnerThrowable
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, 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
 

Constructor Detail

SdkSoapException

protected SdkSoapException(ErrorType errorType,
                           java.lang.Exception innerException)
Constructor.

Parameters:
errorType - ErrorType
innerException - Exception
Method Detail

fromSOAPFaultException

public static SdkSoapException fromSOAPFaultException(javax.xml.ws.soap.SOAPFaultException sfe)
Create an instance of SdkSoapException object from SOAPFaultException.

Parameters:
sfe - SOAPFaultException
Returns:
SdkSoapException

getErrorType

public ErrorType getErrorType()
Gets the associated ErrorType object.

Returns:
ErrorType

setErrorType

public void setErrorType(ErrorType errorType)
Sets the associated ErrorType object.

Parameters:
errorType - ErrorType

getMessage

public java.lang.String getMessage()
Overrides Exception.GetMessage() to return short message if there's one.

Overrides:
getMessage in class SdkException
Returns:
String

containsErrorCode

public boolean containsErrorCode(java.lang.String errorCode)

Changes since
the last release

The information contained in this document is proprietary and confidential. Use of this information and the eBay API requires a Non-Disclosure Agreement (NDA) between the user and eBay Inc. For information regarding a qualifying NDA, contact Developer Relations: developer-relations@ebay.com
© 2004-2009 eBay Inc. All rights reserved.