|
JavaTM Platform Standard Ed. 6 |
|||||||||
��һ���� ��һ���� | ��� ��� ������ | |||||||||
ժҪ�� Ƕ�� | �ֶ� | ���췽�� | ���� | ��ϸ��Ϣ�� �ֶ� | ���췽�� | ���� |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
public class Exception
Exception
�༰�������� Throwable
��һ����ʽ����ָ���˺�����Ӧ�ó�����Ҫ�����������
Error
,
���л��������췽��ժҪ | |
---|---|
Exception()
������ϸ��ϢΪ null �����쳣�� |
|
Exception(String message)
�����ָ����ϸ��Ϣ�����쳣�� |
|
Exception(String message,
Throwable cause)
�����ָ����ϸ��Ϣ��ԭ������쳣�� |
|
Exception(Throwable cause)
����ָ����ԭ��� (cause==null ? null : cause.toString()) ����ϸ��Ϣ�������쳣����ͨ������ cause �������ϸ��Ϣ���� |
����ժҪ |
---|
���� java.lang.Throwable �̳еķ��� |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
���� java.lang.Object �̳еķ��� |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
���췽����ϸ��Ϣ |
---|
public Exception()
null
�����쳣��ԭ����δ����ʼ���������Ժ�ͨ������ Throwable.initCause(java.lang.Throwable)
������г�ʼ����
public Exception(String message)
Throwable.initCause(java.lang.Throwable)
������г�ʼ����
message
- ��ϸ��Ϣ��������ϸ��Ϣ���Ա��Ժ�ͨ�� Throwable.getMessage()
������ȡ����public Exception(String message, Throwable cause)
ע�⣬�� cause
��ص���ϸ��Ϣ���� �Զ��ϲ�������쳣����ϸ��Ϣ�еġ�
message
- ��ϸ��Ϣ���������Ϣ���Ա��Ժ�ͨ�� Throwable.getMessage()
������ȡ������cause
- ԭ�����ԭ���Ա��Ժ�ͨ��Throwable.getCause()
������ȡ������
������ʹ�� null ֵ��ָ��ԭ���ڻ�����δ֪�ġ���public Exception(Throwable cause)
PrivilegedActionException
���İ�װ����ͬ���쳣���˹��췽�������á�
cause
- ԭ�����ԭ���Ա��Ժ�ͨ��Throwable.getCause()
������ȡ������
������ʹ�� null ֵ��ָ��ԭ���ڻ�����δ֪�ġ���
|
JavaTM Platform Standard Ed. 6 |
|||||||||
��һ���� ��һ���� | ��� ��� ������ | |||||||||
ժҪ�� Ƕ�� | �ֶ� | ���췽�� | ���� | ��ϸ��Ϣ�� �ֶ� | ���췽�� | ���� |
��Ȩ���� 2007 Sun Microsystems, Inc. ��������Ȩ���� ����������֤��������������ĵ����·ַ�������