public class Throwable extends Object
Constructor and Description |
---|
Throwable()
Constructs a new Throwable with null as its error message string.
|
Throwable(String message)
Constructs a new Throwable with the specified error message.
|
Modifier and Type | Method and Description |
---|---|
String |
getMessage()
Returns the error message string of this Throwable object.
|
Throwable |
initCause(Throwable cause)
Deprecated.
DO NOT USE THIS METHOD, its here just to get the compiler working and isn't intended for use
|
void |
printStackTrace()
Prints this Throwable and its backtrace to the standard error stream.
|
String |
toString()
Returns a short description of this Throwable object.
|
public Throwable()
public Throwable(String message)
public Throwable initCause(Throwable cause)
public String getMessage()
public void printStackTrace()
public String toString()