Package eBLBaseComponents.apis.ebay

Examples of eBLBaseComponents.apis.ebay.ErrorType


   * @param _response
   */
  public static final void processResponse(AbstractResponseType _response) {
    if (_response.getErrors() != null && _response.getErrors().length > 0) {
      for (int i = 0; i < _response.getErrors().length; i++) {
        ErrorType error = _response.getErrors(i);
        if (error.getSeverityCode().equals(SeverityCodeType.Warning) && LOG.isWarnEnabled()) {
          LOG.warn(new StringBuffer("Warning processing PayPal Request: ").append(error.getShortMessage()).append(" - ").append(error.getLongMessage()).append(" (").append(error.getErrorCode().toString()).append(")").toString());
        }
        else if (LOG.isErrorEnabled()) {
          LOG.error(new StringBuffer("Error processing PayPal Request: ").append(error.getShortMessage()).append(" - ").append(error.getLongMessage()).append(" (").append(error.getErrorCode().toString()).append(")").toString());
        }
      }
    }

  }
View Full Code Here

TOP

Related Classes of eBLBaseComponents.apis.ebay.ErrorType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.