InvalidApiUsageException.java

  1. /*
  2.  * Copyright 2017 Global Crop Diversity Trust
  3.  *
  4.  * Licensed under the Apache License, Version 2.0 (the "License");
  5.  * you may not use this file except in compliance with the License.
  6.  * You may obtain a copy of the License at
  7.  *
  8.  *   http://www.apache.org/licenses/LICENSE-2.0
  9.  *
  10.  * Unless required by applicable law or agreed to in writing, software
  11.  * distributed under the License is distributed on an "AS IS" BASIS,
  12.  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13.  * See the License for the specific language governing permissions and
  14.  * limitations under the License.
  15.  */
  16. package org.genesys.server.exception;

  17. /**
  18.  * Parent exception for cases where data does not match business logic.
  19.  *
  20.  * @author Matija Obreza
  21.  */
  22. public class InvalidApiUsageException extends RuntimeException {

  23.     private static final long serialVersionUID = 525397094935272124L;

  24.     /**
  25.      * Instantiates a new invalid api usage exception.
  26.      */
  27.     public InvalidApiUsageException() {
  28.         super();
  29.     }

  30.     /**
  31.      * Instantiates a new invalid api usage exception.
  32.      *
  33.      * @param message the message
  34.      */
  35.     public InvalidApiUsageException(final String message) {
  36.         super(message);
  37.     }

  38.     /**
  39.      * Instantiates a new invalid api usage exception.
  40.      *
  41.      * @param message the message
  42.      * @param cause the cause
  43.      */
  44.     public InvalidApiUsageException(final String message, final Throwable cause) {
  45.         super(message, cause);
  46.     }

  47.     /**
  48.      * Instantiates a new invalid api usage exception.
  49.      *
  50.      * @param cause the cause
  51.      */
  52.     public InvalidApiUsageException(final Throwable cause) {
  53.         super(cause);
  54.     }
  55. }