Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/mobile
Path: blob/master/src/jdk.crypto.cryptoki/share/classes/sun/security/pkcs11/wrapper/PKCS11RuntimeException.java
41161 views
1
/*
2
* reserved comment block
3
* DO NOT REMOVE OR ALTER!
4
*/
5
/* Copyright (c) 2002 Graz University of Technology. All rights reserved.
6
*
7
* Redistribution and use in source and binary forms, with or without
8
* modification, are permitted provided that the following conditions are met:
9
*
10
* 1. Redistributions of source code must retain the above copyright notice,
11
* this list of conditions and the following disclaimer.
12
*
13
* 2. Redistributions in binary form must reproduce the above copyright notice,
14
* this list of conditions and the following disclaimer in the documentation
15
* and/or other materials provided with the distribution.
16
*
17
* 3. The end-user documentation included with the redistribution, if any, must
18
* include the following acknowledgment:
19
*
20
* "This product includes software developed by IAIK of Graz University of
21
* Technology."
22
*
23
* Alternately, this acknowledgment may appear in the software itself, if
24
* and wherever such third-party acknowledgments normally appear.
25
*
26
* 4. The names "Graz University of Technology" and "IAIK of Graz University of
27
* Technology" must not be used to endorse or promote products derived from
28
* this software without prior written permission.
29
*
30
* 5. Products derived from this software may not be called
31
* "IAIK PKCS Wrapper", nor may "IAIK" appear in their name, without prior
32
* written permission of Graz University of Technology.
33
*
34
* THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED
35
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
36
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
37
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE LICENSOR BE
38
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
39
* OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
40
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
41
* OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
42
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
43
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
44
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
45
* POSSIBILITY OF SUCH DAMAGE.
46
*/
47
48
package sun.security.pkcs11.wrapper;
49
50
51
/**
52
* This is the superclass of all runtime exception used by this library.
53
* For instance, Runtime exceptions occur, if an internal error in the native
54
* part of the wrapper occurs.
55
*
56
* @author <a href="mailto:[email protected]"> Karl Scheibelhofer </a>
57
* @invariants
58
*/
59
public class PKCS11RuntimeException extends RuntimeException {
60
private static final long serialVersionUID = 7889842162743590564L;
61
62
/**
63
* Empty constructor.
64
*
65
* @preconditions
66
* @postconditions
67
*/
68
public PKCS11RuntimeException() {
69
super();
70
}
71
72
/**
73
* Constructor taking a string that describes the reason of the exception
74
* in more detail.
75
*
76
* @param message A descrption of the reason for this exception.
77
* @preconditions
78
* @postconditions
79
*/
80
public PKCS11RuntimeException(String message) {
81
super(message);
82
}
83
84
/**
85
* Constructor taking an other exception to wrap.
86
*
87
* @param encapsulatedException The other exception the wrap into this.
88
* @preconditions
89
* @postconditions
90
*/
91
public PKCS11RuntimeException(Exception encapsulatedException) {
92
super(encapsulatedException);
93
}
94
95
/**
96
* Constructor taking a message for this exception and an other exception to
97
* wrap.
98
*
99
* @param message The message giving details about the exception to ease
100
* debugging.
101
* @param encapsulatedException The other exception the wrap into this.
102
* @preconditions
103
* @postconditions
104
*/
105
public PKCS11RuntimeException(String message, Exception encapsulatedException) {
106
super(message, encapsulatedException);
107
}
108
109
}
110
111