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

com.geotab.http.exception.OverLimitException Maven / Gradle / Ivy

/*
 *
 * 2020 Copyright (C) Geotab Inc. All rights reserved.
 */

package com.geotab.http.exception;

/**
 * Represents an exception thrown when a users has exceeded the query limit of an API.
 */
public class OverLimitException extends JsonRpcErrorDataException {

  public OverLimitException(String message) {
    super(message);
  }

  /**
   * Initializes a new instance, having the message contain user details.
   *
   * @param username The user name.
   * @param database The database.
   */
  public OverLimitException(String username, String database) {
    super(String.format("Exceeded query limit %s:%s", username, database));
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy