|
Changes since the last release |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ebay.sdk.ExceptionFilter
public class ExceptionFilter
Implements exception matching for call retry and for exception payload logging.
1) If no exceptions are registered, all call exceptions match.
2) If the current exception is registered by type name, it matches.
3) If the current exception is an ApiException (XML API) or SdkSoapException
(SOAP API) and the returned API error code is registered in the
TriggerApiErrorCodes property, it matches.
4) If the current exception is an SdkHTTPException and the returned HTTP
response code is registered in the TriggerHTTPErrorCodes property, it matches.
Title:
Description:
Copyright: Copyright (c) 2004
Company: eBay Inc.
Constructor Summary | |
---|---|
ExceptionFilter()
Constructor. |
|
ExceptionFilter(String errorCodes,
String exceptions,
String httpStatusCodes)
|
Method Summary | |
---|---|
String[] |
getTriggerApiErrorCodes()
Get list of API error codes to match against. |
Class[] |
getTriggerExceptions()
Get the list of exception names upon any of them the call-retry will be triggered. |
int[] |
getTriggerHTTPErrorCodes()
Get list of HTTP status codes to match against. |
boolean |
matches(Exception exception)
Determines if the exception matches the filter. |
void |
setTriggerApiErrorCodes(String[] triggerApiErrorCodes)
For the case where the error is an ApiException / SdkSoapException, sets the list of API error codes to match against. |
void |
setTriggerExceptions(Class[] triggerExceptions)
Set the list of exception names to match against. |
void |
setTriggerHTTPErrorCodes(int[] triggerHTTPErrorCodes)
For the case where the error is an SdkHttpException, sets the list of HTTP status codes to match against. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExceptionFilter()
public ExceptionFilter(String errorCodes, String exceptions, String httpStatusCodes)
Method Detail |
---|
public Class[] getTriggerExceptions()
public void setTriggerExceptions(Class[] triggerExceptions)
triggerExceptions
- String[]public String[] getTriggerApiErrorCodes()
public void setTriggerApiErrorCodes(String[] triggerApiErrorCodes)
triggerApiErrorCodes
- The API error code list.public int[] getTriggerHTTPErrorCodes()
public void setTriggerHTTPErrorCodes(int[] triggerHTTPErrorCodes)
triggerHTTPErrorCodes
- The HTTP status code list.public boolean matches(Exception exception)
exception
- The Exception to be matched.
|
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.