1 package org.djutils.draw; 2 3 /** 4 * InvalidProjectionException is an exception that is thrown when a projection results in an invalid object, or if a projection 5 * cannot be carried out. 6 * <p> 7 * Copyright (c) 2020-2025 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br> 8 * BSD-style license. See <a href="https://djutils.org/docs/current/djutils/licenses.html">DJUTILS License</a>. 9 * </p> 10 * @author <a href="https://www.tudelft.nl/averbraeck">Alexander Verbraeck</a> 11 * @author <a href="https://github.com/peter-knoppers">Peter Knoppers</a> 12 * @author <a href="https://github.com/wjschakel">Wouter Schakel</a> 13 */ 14 public class InvalidProjectionException extends RuntimeException 15 { 16 /** */ 17 private static final long serialVersionUID = 20200828L; 18 19 /** 20 * Create an empty runtime projection exception. 21 */ 22 public InvalidProjectionException() 23 { 24 super(); 25 } 26 27 /** 28 * Create a runtime projection exception with a custom message. 29 * @param message the custom message. 30 */ 31 public InvalidProjectionException(final String message) 32 { 33 super(message); 34 } 35 36 /** 37 * Create a runtime projection exception with an underlying cause. 38 * @param cause the cause of this exception to be thrown 39 */ 40 public InvalidProjectionException(final Throwable cause) 41 { 42 super(cause); 43 } 44 45 /** 46 * Create a runtime projection exception with a custom message and an underlying cause. 47 * @param message the custom message 48 * @param cause the cause of this exception to be thrown 49 */ 50 public InvalidProjectionException(final String message, final Throwable cause) 51 { 52 super(message, cause); 53 } 54 55 }