001/* 002 * Copyright 2022 Anyware Services 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package org.ametys.plugins.hyperplanning; 017 018/** 019 * Runtime exception representing the fact that the user is unknown 020 */ 021public class UnknownStudentException extends RuntimeException 022{ 023 /** Constructs a new runtime exception with the specified detail message. 024 * The cause is not initialized, and may subsequently be initialized by a 025 * call to {@link #initCause}. 026 * 027 * @param message the detail message. The detail message is saved for 028 * later retrieval by the {@link #getMessage()} method. 029 */ 030 public UnknownStudentException(String message) 031 { 032 super(message); 033 } 034 035 /** 036 * Constructs a new runtime exception with the specified detail message and 037 * cause. <p>Note that the detail message associated with 038 * {@code cause} is <i>not</i> automatically incorporated in 039 * this runtime exception's detail message. 040 * 041 * @param message the detail message (which is saved for later retrieval 042 * by the {@link #getMessage()} method). 043 * @param cause the cause (which is saved for later retrieval by the 044 * {@link #getCause()} method). (A {@code null} value is 045 * permitted, and indicates that the cause is nonexistent or 046 * unknown.) 047 * @since 1.4 048 */ 049 public UnknownStudentException(String message, Throwable cause) 050 { 051 super(message, cause); 052 } 053 054 /** Constructs a new runtime exception with the specified cause and a 055 * detail message of {@code (cause==null ? null : cause.toString())} 056 * (which typically contains the class and detail message of 057 * {@code cause}). This constructor is useful for runtime exceptions 058 * that are little more than wrappers for other throwables. 059 * 060 * @param cause the cause (which is saved for later retrieval by the 061 * {@link #getCause()} method). (A {@code null} value is 062 * permitted, and indicates that the cause is nonexistent or 063 * unknown.) 064 * @since 1.4 065 */ 066 public UnknownStudentException(Throwable cause) 067 { 068 super(cause); 069 } 070}