Skip to content

Package: SkipPageException

SkipPageException

nameinstructionbranchcomplexitylinemethod
SkipPageException()
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%
SkipPageException(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%
SkipPageException(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%
SkipPageException(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, 2021 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: * Exception to indicate the calling page must cease evaluation. Thrown by a simple tag handler to indicate that the
23: * remainder of the page must not be evaluated. The result is propagated back to the page in the case where one tag
24: * invokes another (as can be the case with tag files). The effect is similar to that of a Classic Tag Handler returning
25: * Tag.SKIP_PAGE from doEndTag(). Jsp Fragments may also throw this exception. This exception should not be thrown
26: * manually in a JSP page or tag file - the behavior is undefined. The exception is intended to be thrown inside
27: * SimpleTag handlers and in JSP fragments.
28: *
29: * @see jakarta.servlet.jsp.tagext.SimpleTag#doTag
30: * @see jakarta.servlet.jsp.tagext.JspFragment#invoke
31: * @see jakarta.servlet.jsp.tagext.Tag#doEndTag
32: * @since JSP 2.0
33: */
34: public class SkipPageException extends JspException {
35: private static final long serialVersionUID = -7223157500637139188L;
36:
37: /**
38: * Creates a SkipPageException with no message.
39: */
40: public SkipPageException() {
41: super();
42: }
43:
44: /**
45: * Creates a SkipPageException with the provided message.
46: *
47: * @param message the detail message
48: */
49: public SkipPageException(String message) {
50: super(message);
51: }
52:
53: /**
54: * Creates a SkipPageException with the provided message and root cause.
55: *
56: * @param message the detail message
57: * @param rootCause the originating cause of this exception
58: */
59: public SkipPageException(String message, Throwable rootCause) {
60: super(message, rootCause);
61: }
62:
63: /**
64: * Creates a SkipPageException with the provided root cause.
65: *
66: * @param rootCause the originating cause of this exception
67: */
68: public SkipPageException(Throwable rootCause) {
69: super(rootCause);
70: }
71:
72: }