001package org.intellimate.izou.identification; 002 003/** 004 * This Exception gets fired when an Identification or Identifiable doesn't fulfil certain requirements 005 * (e.g. used twice) 006 * @author Leander Kurscheidt 007 * @version 1.0 008 */ 009//This Exception is more of a placeholder, but in future version we will certainly check if an ID is valid 010public class IllegalIDException extends RuntimeException { 011 /** 012 * Constructs a new exception with {@code null} as its detail message. 013 * The cause is not initialized, and may subsequently be initialized by a 014 * call to {@link #initCause}. 015 */ 016 public IllegalIDException() { 017 super("The Identification does not fulfil the requirements"); 018 } 019 020 /** 021 * Constructs a new exception with the specified detail message. The 022 * cause is not initialized, and may subsequently be initialized by 023 * a call to {@link #initCause}. 024 * 025 * @param message the detail message. The detail message is saved for 026 * later retrieval by the {@link #getMessage()} method. 027 */ 028 public IllegalIDException(String message) { 029 super(message); 030 } 031}