Constructor and Description |
---|
Throwable()
Throwable
|
Throwable(String s) |
Throwable(String s,
Throwable c) |
Throwable(Throwable c) |
Modifier and Type | Method and Description |
---|---|
Throwable |
fillInStackTrace() |
Throwable |
getCause() |
String |
getLocalizedMessage() |
String |
getMessage() |
static String[] |
getStackTrace() |
Throwable |
initCause(Throwable c) |
void |
printStackTrace()
printStackTrace
|
void |
printStackTrace(PrintStream printstream) |
void |
printStackTrace(PrintWriter printwriter) |
void |
setStackTrace(String[] stackTrace) |
String |
toString()
Returns a string representation of the object.
|
public Throwable()
public Throwable(String s)
s
- ?public Throwable(Throwable c)
c
- ?public Throwable getCause()
public Throwable fillInStackTrace()
public static String[] getStackTrace()
public void setStackTrace(String[] stackTrace)
stackTrace
- ?public String getLocalizedMessage()
public String getMessage()
public void printStackTrace()
public void printStackTrace(PrintStream printstream)
printstream
- ?public void printStackTrace(PrintWriter printwriter)
printwriter
- ?public String toString()
Object
toString
method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString
method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@
', and
the unsigned hexadecimal representation of the hash code of the
object.