CreateException.java

  1. /*
  2.    Copyright 2014-now by Alain Stalder. Made in Switzerland.

  3.    Licensed under the Apache License, Version 2.0 (the "License");
  4.    you may not use this file except in compliance with the License.
  5.    You may obtain a copy of the License at

  6.        https://www.apache.org/licenses/LICENSE-2.0

  7.    Unless required by applicable law or agreed to in writing, software
  8.    distributed under the License is distributed on an "AS IS" BASIS,
  9.    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10.    See the License for the specific language governing permissions and
  11.    limitations under the License.
  12. */

  13. package ch.grengine.except;


  14. /**
  15.  * Exception thrown when creating an instance of {@link groovy.lang.Script} failed.
  16.  *
  17.  * @since 1.0
  18.  *
  19.  * @author Alain Stalder
  20.  * @author Made in Switzerland.
  21.  */
  22. public class CreateException extends GrengineException {

  23.     private static final long serialVersionUID = 1910647986466544521L;

  24.     /**
  25.      * constructor from exception message.
  26.      *
  27.      * @param message message
  28.      *
  29.      * @since 1.0
  30.      */
  31.     public CreateException(final String message) {
  32.         super(message);
  33.     }

  34.     /**
  35.      * constructor from exception message and causing throwable.
  36.      *
  37.      * @param message message
  38.      * @param cause cause
  39.      *
  40.      * @since 1.0
  41.      */
  42.     public CreateException(final String message, final Throwable cause) {
  43.         super(message, cause);
  44.     }

  45. }