ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/java/jakarta/servlet/ServletException.java

Path
ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/java/jakarta/servlet/ServletException.java
Status
scanned
Type
file
Name
ServletException.java
Extension
.java
Programming language
Java
Mime type
text/plain
File type
ASCII text, with CRLF line terminators
Tag

      
    
Rootfs path

      
    
Size
3353 (3.3 KB)
MD5
58674f0d8f046fe5aaa364145dda648c
SHA1
e13781828d660be4ccc65bec119f221a5fcf2a3c
SHA256
99e129125f2a9ba2213f55c00c62a86a77280dd923005199c58339aac4d7caec
SHA512

      
    
SHA1_git
4d4dccc3eedb805c17260bbc0e13bb770bb13267
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
ServletException.java | 3.3 KB |

/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package jakarta.servlet; import java.io.Serial; /** * Defines a general exception a servlet can throw when it encounters difficulty. */ public class ServletException extends Exception { @Serial private static final long serialVersionUID = 1L; /** * Constructs a new servlet exception. */ public ServletException() { super(); } /** * Constructs a new servlet exception with the specified message. The message can be written to the server log * and/or displayed for the user. * * @param message a <code>String</code> specifying the text of the exception message */ public ServletException(String message) { super(message); } /** * Constructs a new servlet exception when the servlet needs to throw an exception and include a message about the * "root cause" exception that interfered with its normal operation, including a description message. * * @param message a <code>String</code> containing the text of the exception message * @param rootCause the <code>Throwable</code> exception that interfered with the servlet's normal operation, making * this servlet exception necessary */ public ServletException(String message, Throwable rootCause) { super(message, rootCause); } /** * Constructs a new servlet exception when the servlet needs to throw an exception and include a message about the * "root cause" exception that interfered with its normal operation. The exception's message is based on the * localized message of the underlying exception. * <p> * This method calls the <code>getLocalizedMessage</code> method on the <code>Throwable</code> exception to get a * localized exception message. When subclassing <code>ServletException</code>, this method can be overridden to * create an exception message designed for a specific locale. * * @param rootCause the <code>Throwable</code> exception that interfered with the servlet's normal operation, making * the servlet exception necessary */ public ServletException(Throwable rootCause) { super(rootCause); } /** * Returns the exception that caused this servlet exception. * * @return the <code>Throwable</code> that caused this servlet exception */ public Throwable getRootCause() { return getCause(); } }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
30.36
Copyrights

      
    
Holders

      
    
Authors

      
    
License detections License expression License expression SPDX
apache_2_0-4bde3f57-78aa-4201-96bf-531cba09e7de apache-2.0 Apache-2.0
URL Start line End line
http://www.apache.org/licenses/LICENSE-2.0 9 9