InvalidAccessException.java

  1. /* Copyright 2015 Laurent COCAULT
  2.  * Licensed to Laurent COCAULT under one or more contributor license agreements.
  3.  * See the NOTICE file distributed with this work for additional information
  4.  * regarding copyright ownership. Laurent COCAULT licenses this file to You
  5.  * under the Apache License, Version 2.0 (the "License"); you may not use this
  6.  * file except in compliance with the License.  You may obtain a copy of the
  7.  * License at
  8.  *
  9.  *   http://www.apache.org/licenses/LICENSE-2.0
  10.  *
  11.  * Unless required by applicable law or agreed to in writing, software
  12.  * distributed under the License is distributed on an "AS IS" BASIS,
  13.  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14.  * See the License for the specific language governing permissions and
  15.  * limitations under the License.
  16.  */
  17. package org.csp.constraint.model;

  18. /**
  19.  * Exception thrown when a method is called in an inappropriate context.
  20.  */
  21. public class InvalidAccessException extends RuntimeException {

  22.     /** Version of the class. */
  23.     private static final long serialVersionUID = 1L;

  24.     /**
  25.      * Constructor.
  26.      */
  27.     public InvalidAccessException() {
  28.         super();
  29.     }

  30.     /**
  31.      * Constructor.
  32.      * @param message
  33.      *            Message of the exception
  34.      */
  35.     public InvalidAccessException(final String message) {
  36.         super(message);
  37.     }

  38. }