Android Open Source - android-sdk Catchoom Error Response Item






From Project

Back to project page android-sdk.

License

The source code is released under:

MIT License

If you think the Android project android-sdk listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

// (c) Catchoom Technologies S.L.
// Licensed under the MIT license.
// https://raw.github.com/catchoom/android-sdk/master/LICENSE
// All warranties and liabilities are disclaimed.
package com.catchoom.api;
/*from  www  .  j a v a2 s  .  c o  m*/
/**
 * CatchoomErrorResponseItem is used to comunicate to a {@link CatchoomResponseHandler}
 * an error raised during a request.
 * @author Catchoom
 *
 */
public class CatchoomErrorResponseItem {
  
  private int errorCode = -1;
  private String errorPhrase = null;
  private String errorDescription = null;
  
  CatchoomErrorResponseItem(int errorCode, String errorPhrase, String errorDescription) {
    this.errorCode = errorCode;
    this.errorPhrase = errorPhrase;
    this.errorDescription = errorDescription;
  }
  
  /**
   * Gets the HTTP error code.
   * @return The error code.
   */
  public int getErrorCode() {
    return errorCode;
  }
  
  /**
   * Gets the HTTP error phrase.
   * @return The error phrase.
   */
  public String getErrorPhrase() {
    return errorPhrase;
  }
  
  /**
   * Gets the Catchoom error description. <strong>Watch out:</strong> this
   * error description should be used for debugging purposes only and not relay
   * on it when implementing your own error handling system.
   * @return
   */
  public String getErrorDescription() {
    return errorDescription;
  }
}




Java Source Code List

com.catchoom.api.CatchoomErrorResponseItem.java
com.catchoom.api.CatchoomImageUtil.java
com.catchoom.api.CatchoomResponseHandler.java
com.catchoom.api.CatchoomSearchResponseItem.java
com.catchoom.api.Catchoom.java
org.apache.http.entity.mime.FormBodyPart.java
org.apache.http.entity.mime.Header.java
org.apache.http.entity.mime.HttpMultipartMode.java
org.apache.http.entity.mime.HttpMultipart.java
org.apache.http.entity.mime.MIME.java
org.apache.http.entity.mime.MinimalField.java
org.apache.http.entity.mime.MultipartEntity.java
org.apache.http.entity.mime.content.AbstractContentBody.java
org.apache.http.entity.mime.content.ByteArrayBody.java
org.apache.http.entity.mime.content.ContentBody.java
org.apache.http.entity.mime.content.ContentDescriptor.java
org.apache.http.entity.mime.content.FileBody.java
org.apache.http.entity.mime.content.InputStreamBody.java
org.apache.http.entity.mime.content.StringBody.java