Changes since
the last release

com.ebay.sdk
Class SdkHTTPException

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

public class SdkHTTPException
extends SdkException

Wraps HTTP exception (unexpected return codes 300 - 499, 501-599) for SDK. The HTTP return code is available in the ErrorCode property.

Title:

Description:

Copyright: Copyright (c) 2004

Company: eBay Inc.

Version:
1.0
Author:
Ron Murphy & William Yang
See Also:
Serialized Form

Constructor Summary
SdkHTTPException(int code)
           
 
Method Summary
static SdkHTTPException fromHTTPException(HTTPException he)
          Create an instance of SdkHTTPException object from the associated HTTPException.
 int getErrorCode()
          Gets the HTTP return code associated with the unexpected HTTP response.
 void setErrorCode(int errorCode)
          Sets the HTTP return code.
 
Methods inherited from class com.ebay.sdk.SdkException
getInnerThrowable, getMessage
 
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

SdkHTTPException

public SdkHTTPException(int code)
Method Detail

fromHTTPException

public static SdkHTTPException fromHTTPException(HTTPException he)
Create an instance of SdkHTTPException object from the associated HTTPException.

Parameters:
he -
Returns:
the new SdkHTTPException

getErrorCode

public int getErrorCode()
Gets the HTTP return code associated with the unexpected HTTP response.

Returns:
ErrorType

setErrorCode

public void setErrorCode(int errorCode)
Sets the HTTP return code.

Parameters:
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.