All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.tinypass.client.common.ApiException Maven / Gradle / Ivy

There is a newer version: 16.366.0
Show newest version
package com.tinypass.client.common;

import java.util.ArrayList;
import java.util.List;

public class ApiException extends Exception {
  private final int code;
  private List parameterExceptions = new ArrayList();

  public ApiException(int code, String message) {
    super(message);
    this.code = code;
  }

  public ApiException(int code, String message, Throwable e) {
      super(message, e);
      this.code = code;
  }

  public int getCode() {
    return code;
  }

  public List getParameterExceptions() {
      return parameterExceptions;
  }

  public void addException(ApiParameterException exception){
      parameterExceptions.add(exception);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy