|
Changes since the last release |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.ebay.sdk.SdkException
com.ebay.sdk.ApiException
public class ApiException
Represents one or more errors reported by an API call. Note that an API
call can also return warnings, which do not trigger an ApiException.
Title:
Description:
Copyright: Copyright (c) 2004
Company: eBay Inc.
Constructor Summary | |
---|---|
ApiException()
Constructor. |
|
ApiException(ErrorType[] errors)
Constructor. |
Method Summary | |
---|---|
boolean |
containsErrorCode(String errorCode)
|
ErrorType[] |
getErrors()
Get list of errors included in the exception. |
String |
getLocalizedMessage()
Overrides Exception.getLocalizedMessage(). |
String |
getMessage()
Overrides Exception.getMessage(). |
int |
getSeverityErrorCount()
Count number of errors with the severity of SeverityCodeType.ERROR in the error list. |
int |
getSeverityWarningCount()
Count number of errors with the severity of SeverityCodeType.WARNING in the error list. |
void |
setErrors(ErrorType[] errors)
Set list of errors to be included in the exception. |
Methods inherited from class com.ebay.sdk.SdkException |
---|
getInnerThrowable |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, 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 |
---|
public ApiException()
public ApiException(ErrorType[] errors)
errors
- The array of errors of the exception.Method Detail |
---|
public ErrorType[] getErrors()
public void setErrors(ErrorType[] errors)
errors
- ErrorType[]public int getSeverityErrorCount()
public int getSeverityWarningCount()
public String getMessage()
getMessage
in class SdkException
public String getLocalizedMessage()
getLocalizedMessage
in class Throwable
public boolean containsErrorCode(String errorCode)
|
Changes since the last release |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.