public class ChainedThrowableDelegate extends Object implements ChainedThrowable
| 限定符和类型 | 字段和说明 |
|---|---|
protected Throwable |
delegatedThrowable
�������
Throwable����. |
protected static Throwable |
NO_CAUSE
��ʾ�쳣�����ڵij���.
|
| 构造器和说明 |
|---|
ChainedThrowableDelegate(Throwable throwable)
����һ��
Throwable����. |
| 限定符和类型 | 方法和说明 |
|---|---|
Throwable |
getCause()
ȡ�ñ�������쳣������.
|
protected Throwable |
getCauseByFieldName(Throwable throwable,
Class throwableClass,
String fieldName)
ͨ�������ķ�����̬��ȡ���쳣����.
|
protected Throwable |
getCauseByMethodName(Throwable throwable,
Class throwableClass,
String methodName)
ͨ�������ķ�����̬��ȡ���쳣����.
|
protected Throwable |
getCauseByWellKnownTypes(Throwable throwable)
ȡ�ó���
Throwable����쳣����. |
void |
printCurrentStackTrace(PrintWriter writer)
��ӡ�쳣�ĵ���ջ, �����������쳣����Ϣ.
|
void |
printStackTrace()
��ӡ����ջ��������.
|
void |
printStackTrace(PrintStream stream)
��ӡ����ջ��ָ�������.
|
void |
printStackTrace(PrintWriter writer)
��ӡ����ջ��ָ�������.
|
protected static final Throwable NO_CAUSE
protected Throwable delegatedThrowable
Throwable����.public ChainedThrowableDelegate(Throwable throwable)
Throwable����.
throwable ��������쳣public Throwable getCause()
getCause 在接口中 ChainedThrowableprotected Throwable getCauseByWellKnownTypes(Throwable throwable)
Throwable����쳣����.
throwable �쳣
�쳣����protected Throwable getCauseByMethodName(Throwable throwable, Class throwableClass, String methodName)
NO_CAUSEprotected Throwable getCauseByFieldName(Throwable throwable, Class throwableClass, String fieldName)
NO_CAUSEpublic void printStackTrace()
printStackTrace 在接口中 ChainedThrowablepublic void printStackTrace(PrintStream stream)
printStackTrace 在接口中 ChainedThrowablepublic void printStackTrace(PrintWriter writer)
printStackTrace 在接口中 ChainedThrowablepublic void printCurrentStackTrace(PrintWriter writer)
printCurrentStackTrace 在接口中 ChainedThrowableCopyright © 2018. All rights reserved.