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