Path: blob/aarch64-shenandoah-jdk8u272-b10/jdk/src/share/classes/java/security/InvalidAlgorithmParameterException.java
38829 views
/*1* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation. Oracle designates this7* particular file as subject to the "Classpath" exception as provided8* by Oracle in the LICENSE file that accompanied this code.9*10* This code is distributed in the hope that it will be useful, but WITHOUT11* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or12* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License13* version 2 for more details (a copy is included in the LICENSE file that14* accompanied this code).15*16* You should have received a copy of the GNU General Public License version17* 2 along with this work; if not, write to the Free Software Foundation,18* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.19*20* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA21* or visit www.oracle.com if you need additional information or have any22* questions.23*/2425package java.security;2627/**28* This is the exception for invalid or inappropriate algorithm parameters.29*30* @author Jan Luehe31*32*33* @see AlgorithmParameters34* @see java.security.spec.AlgorithmParameterSpec35*36* @since 1.237*/3839public class InvalidAlgorithmParameterException40extends GeneralSecurityException {4142private static final long serialVersionUID = 2864672297499471472L;4344/**45* Constructs an InvalidAlgorithmParameterException with no detail46* message.47* A detail message is a String that describes this particular48* exception.49*/50public InvalidAlgorithmParameterException() {51super();52}5354/**55* Constructs an InvalidAlgorithmParameterException with the specified56* detail message.57* A detail message is a String that describes this58* particular exception.59*60* @param msg the detail message.61*/62public InvalidAlgorithmParameterException(String msg) {63super(msg);64}6566/**67* Creates a {@code InvalidAlgorithmParameterException} with the68* specified detail message and cause.69*70* @param message the detail message (which is saved for later retrieval71* by the {@link #getMessage()} method).72* @param cause the cause (which is saved for later retrieval by the73* {@link #getCause()} method). (A {@code null} value is permitted,74* and indicates that the cause is nonexistent or unknown.)75* @since 1.576*/77public InvalidAlgorithmParameterException(String message, Throwable cause) {78super(message, cause);79}8081/**82* Creates a {@code InvalidAlgorithmParameterException} with the83* specified cause and a detail message of84* {@code (cause==null ? null : cause.toString())}85* (which typically contains the class and detail message of86* {@code cause}).87*88* @param cause the cause (which is saved for later retrieval by the89* {@link #getCause()} method). (A {@code null} value is permitted,90* and indicates that the cause is nonexistent or unknown.)91* @since 1.592*/93public InvalidAlgorithmParameterException(Throwable cause) {94super(cause);95}96}979899