Top "Throwable" questions

The `Throwable` class is the superclass of all errors and exceptions in the Java programming language.

How can I fix 'No exception of type SomeException can be thrown; an exception type must be a subclass of Throwable'

I have java webstart app and want to use app API for testing purposes. So I get required (as I …

java exception throwable
Extending Throwable in Java

Java lets you create an entirely new subtype of Throwable, e.g: public class FlyingPig extends Throwable { ... } Now, very rarely, …

java exception-handling throwable
No exception of type Exception can be thrown, an exception type must be a subclass of Throwable

I was seaching this problem in other questions but still didn't figure out what does exactly mean Throwable. Read a …

java exception throwable
Best practices for catching Throwable in Java

Sometimes, you just have to catch Throwable, e.g. when writing a dispatcher queue that dispatches generic items and needs …

java exception throwable
What is the built in base class to handle all exceptions in Java

What is the built in base class to handle all exceptions in Java? Is It Exception or Throwable? What is …

java exception exception-handling throwable
What is the C# equivalent to Java's Throwable?

What is the C# equivalent to Java's Throwable? In Java, the root of the exception class hierarchy is called Throwable, …

c# java exception throwable
Error code from Throwable - Android

How can I get the error code from the Throwable public void onFailure(Throwable exception) { } I saw that we can …

android error-code throwable
How to get the method name from which the exception is thrown?

I need to get the class name and the method name from which the exception is thrown. How can I …

java exception exception-handling throwable
What is the preferred Throwable to use in a private utility class constructor?

Effective Java (Second Edition), Item 4, discusses using private constructors to enforce noninstantiability. Here's the code sample from the book: public …

java coding-style throwable