001 package data;
002
003 /**
004 * Exception thrown by {@link Stock} if you attempt to remove more elements than there are actually available.
005 *
006 * @author Steffen Zschaler
007 * @version 2.0 18/08/1999
008 * @since v2.0
009 */
010 public class NotEnoughElementsException extends RuntimeException {
011
012 /**
013 * ID for serialization.
014 */
015 private static final long serialVersionUID = -7996727975105933460L;
016
017 /**
018 * Create a new NotEnoughElementsException.
019 */
020 public NotEnoughElementsException() {
021 super();
022 }
023
024 /**
025 * Create a new NotEnoughElementsException with a detail message.
026 *
027 * @param sDetail the detail message.
028 */
029 public NotEnoughElementsException(String sDetail) {
030 super(sDetail);
031 }
032 }