ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/java/org/apache/el/util/ExceptionUtils.java

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

      
    
Rootfs path

      
    
Size
1888 (1.8 KB)
MD5
309500b26d54b47e01a13ffdb1cc13c2
SHA1
4bd3de149513bf38695ab5579d2bf2bd032b9aae
SHA256
20a9af5b78c905a8dd9c8af632d8210bf98e3d7c6b5705f63174dcdc3db1df5c
SHA512

      
    
SHA1_git
814f2dadc435e5adaa500e394f465f3649b05182
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
ExceptionUtils.java | 1.8 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 org.apache.el.util; /** * Utilities for handling Throwable and Exceptions. */ /* * Copied from o.a.t.u.ExceptionUtils */ public class ExceptionUtils { /** * Checks whether the supplied Throwable is one that needs to be rethrown and swallows all others. * * @param t the Throwable to check */ public static void handleThrowable(Throwable t) { if (t instanceof StackOverflowError) { // Swallow silently - it should be recoverable return; } if (t instanceof VirtualMachineError) { throw (VirtualMachineError) t; } // All other instances of Throwable will be silently swallowed } /** * NO-OP method provided to enable simple preloading of this class. Since the class is used extensively in error * handling, it is prudent to preload it to avoid any failure to load this class masking the true problem during * error handling. */ public static void preload() { // NO-OP } }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
50.21
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