Skip to content

Package: JspException

JspException

nameinstructionbranchcomplexitylinemethod
JspException()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
JspException(String)
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
JspException(String, Throwable)
M: 5 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
JspException(Throwable)
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /*
2: * Copyright (c) 1997, 2022 Oracle and/or its affiliates and others.
3: * All rights reserved.
4: * Copyright 2004 The Apache Software Foundation
5: *
6: * Licensed under the Apache License, Version 2.0 (the "License");
7: * you may not use this file except in compliance with the License.
8: * You may obtain a copy of the License at
9: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing, software
13: * distributed under the License is distributed on an "AS IS" BASIS,
14: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15: * See the License for the specific language governing permissions and
16: * limitations under the License.
17: */
18:
19: package jakarta.servlet.jsp;
20:
21: /**
22: * A generic exception known to the JSP engine; uncaught JspExceptions will result in an invocation of the errorpage
23: * machinery.
24: */
25: public class JspException extends Exception {
26:
27: private static final long serialVersionUID = -724329986255528641L;
28:
29: /**
30: * Construct a JspException.
31: */
32: public JspException() {
33: }
34:
35: /**
36: * Constructs a new JSP exception with the specified message. The message can be written to the server log and/or
37: * displayed for the user.
38: *
39: * @param msg a <code>String</code> specifying the text of the exception message
40: *
41: */
42: public JspException(String msg) {
43: super(msg);
44: }
45:
46: /**
47: * Constructs a new <code>JspException</code> with the specified detail message and cause.
48: *
49: * @param message a <code>String</code> specifying the text of the exception message
50: * @param cause the cause which is saved for later retrieval by the {@link #getCause()} method.
51: *
52: * @see java.lang.Exception#Exception(String, Throwable)
53: */
54: public JspException(String message, Throwable cause) {
55: super(message, cause);
56: }
57:
58: /**
59: * Constructs a new <code>JspException</code> with the specified cause.
60: *
61: * @param cause the cause which is saved for later retrieval by the {@link #getCause()} method.
62: *
63: * @see java.lang.Exception#Exception(Throwable)
64: */
65: public JspException(Throwable cause) {
66: super(cause);
67: }
68: }