// Path: mangopay/src/main/java/com/mangopay/android/sdk/model/ErrorCode.java
// public enum ErrorCode {
// 
//   VALIDATION("sdk-validation"),
//   SERVER_ERROR("server-error"),
//   SDK_ERROR("sdk-error"),
// 
//   MISSING_FIELD_ERROR("105201"),
//   CARD_NUMBER_FORMAT_ERROR("105202"),
//   EXPIRY_DATE_FORMAT_ERROR("105203"),
//   CVV_FORMAT_ERROR("105204");
// 
//   private String id;
// 
//   ErrorCode(String id) {
//     this.id = id;
//   }
// 
//   public String getValue() {
//     return this.id;
//   }
// }


import com.mangopay.android.sdk.model.ErrorCode;
package com.mangopay.android.sdk.model.exception;


/**
 * Possible error returned from the mangoPay servers
 */
public class MangoException extends RuntimeException {

  private String id;
  private String type;
  private long timestamp;

  public MangoException(Throwable throwable) {
    super(throwable);
// Path: mangopay/src/main/java/com/mangopay/android/sdk/model/ErrorCode.java
// public enum ErrorCode {
// 
//   VALIDATION("sdk-validation"),
//   SERVER_ERROR("server-error"),
//   SDK_ERROR("sdk-error"),
// 
//   MISSING_FIELD_ERROR("105201"),
//   CARD_NUMBER_FORMAT_ERROR("105202"),
//   EXPIRY_DATE_FORMAT_ERROR("105203"),
//   CVV_FORMAT_ERROR("105204");
// 
//   private String id;
// 
//   ErrorCode(String id) {
//     this.id = id;
//   }
// 
//   public String getValue() {
//     return this.id;
//   }
// }


// Path: mangopay/src/main/java/com/mangopay/android/sdk/model/exception/MangoException.java
import com.mangopay.android.sdk.model.ErrorCode;

package com.mangopay.android.sdk.model.exception;


/**
 * Possible error returned from the mangoPay servers
 */
public class MangoException extends RuntimeException {

  private String id;
  private String type;
  private long timestamp;

  public MangoException(Throwable throwable) {
    super(throwable);
    this.id = ErrorCode.SDK_ERROR.getValue();