Almost all Error subclasses in Java include the "-Error" suffix in their names, but not ThreadDeath. Why is this? This makes it hard to remember if it is a subclass of Error or Exception.
Why is the ThreadDeath class not called ThreadDeathError instead?
286 Views Asked by K Man At
1
There are 1 best solutions below
Related Questions in JAVA
- I need the BIRT.war that is compatible with Java 17 and Tomcat 10
- Creating global Class holder
- No method found for class java.lang.String in Kafka
- Issue edit a jtable with a pictures
- getting error when trying to launch kotlin jar file that use supabase "java.lang.NoClassDefFoundError"
- Does the && (logical AND) operator have a higher precedence than || (logical OR) operator in Java?
- Mixed color rendering in a JTable
- HTTPS configuration in Spring Boot, server returning timeout
- How to use Layout to create textfields which dont increase in size?
- Function for making the code wait in javafx
- How to create beans of the same class for multiple template parameters in Spring
- How could you print a specific String from an array with the values of an array from a double array on the same line, using iteration to print all?
- org.telegram.telegrambots.meta.exceptions.TelegramApiException: Bot token and username can't be empty
- Accessing Secret Variables in Classic Pipelines through Java app in Azure DevOps
- Postgres && statement Error in Mybatis Mapper?
Related Questions in ERROR-HANDLING
- Simple movie API request not showing up in the console log
- Sends a personalised error message from the back-end to the front-end with Nuxt-auth
- Creating Chrome extension, but display text from Javascript file is not showing up on HTML's display. The HTML is the InnerHTML of another HTML file
- How do I fix the response: Error in contrasts in R
- new to express & js and trying to understand next
- How to implement a Higher Order Component using TypeScript?
- symbol not found in flat namespace '__PyTrash_begin
- Handling multiple errors in Bison parser
- getting error 422 (Unprocessable entity) in a api-integration webapp
- Handling errors in MSAL Redirect - reactjs login with microsoft sso
- Node.JS getting error while building EXE with PKG module
- How do I display Supabase AuthApiError from server-side in client -side
- VBA dynamic feed multiple files into current one but error of "Run-rime error 7 out of memory" occurs
- How do I fix subscript out of bound error for my interaction matrices?
- pyinstaller' is not recognized as an internal or external command, operable program or batch file
Related Questions in THROWABLE
- How to make a java Thread unstoppable without catching Throwable
- Creating own IntelliJ Plugin causes Read access is allowed from inside read-action
- Final rethrow in Java: Exception Handling
- Examples of when PHP calls the function set by set_exception_handler with an Error object? And is it always fatal? Can it be caught?
- In java we use try catch with exceptions in the try block. can we use this for throwables or can we create even throwables as implements serializers?
- log4j PatternLayout Regex for throwables
- OpenJDK-java/lang/Throwable.fillInStackTrace - awkward implementation?
- method.invoke dynamic exception throwing
- Catch and rethrow an exception for monitoring
- How to use .onFailure in scala Future?
- throw Throwable in Stream -> "Unhandled exception type Throwable"
- problem with Laravel exceptions - not working for all errors
- Xamarin android App crashes with error android.runtime.JavaProxyThrowable reported in Google Play Console Vitals
- Laravel Throwable not handle exception - get 500 internal error
- Why does Java expose Error and Java SE API callback methods accept Throwable instead of Exception?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The javadocs for
ThreadDeathsay this:and
What it is saying is that an application should treat
ThreadDeathdifferently from bothExceptionand (other)Errorclasses.Since the exception should be treated differently, it makes sense to use a class name that doesn't fit the normal patterns.
However, this should be of historic interest anyway. The
Thread.stop()method that throws this was deprecated over 20 years ago. Your code shouldn't usestop(), and hence should not need to concern itself with this exception. And neither should you.