JavaTM Platform
Standard Ed. 6

java.lang
�� Exception

java.lang.Object
  �̳��� java.lang.Throwable
      �̳��� java.lang.Exception
������ʵ�ֵĽӿڣ�
Serializable
ֱ����֪���ࣺ
AclNotFoundException, ActivationException, AlreadyBoundException, ApplicationException, AWTException, BackingStoreException, BadAttributeValueExpException, BadBinaryOpValueExpException, BadLocationException, BadStringOperationException, BrokenBarrierException, CertificateException, ClassNotFoundException, CloneNotSupportedException, DataFormatException, DatatypeConfigurationException, DestroyFailedException, ExecutionException, ExpandVetoException, FontFormatException, GeneralSecurityException, GSSException, IllegalAccessException, IllegalClassFormatException, InstantiationException, InterruptedException, IntrospectionException, InvalidApplicationException, InvalidMidiDataException, InvalidPreferencesFormatException, InvalidTargetObjectTypeException, InvocationTargetException, IOException, JAXBException, JMException, KeySelectorException, LastOwnerException, LineUnavailableException, MarshalException, MidiUnavailableException, MimeTypeParseException, MimeTypeParseException, NamingException, NoninvertibleTransformException, NoSuchFieldException, NoSuchMethodException, NotBoundException, NotOwnerException, ParseException, ParserConfigurationException, PrinterException, PrintException, PrivilegedActionException, PropertyVetoException, RefreshFailedException, RemarshalException, RuntimeException, SAXException, ScriptException, ServerNotActiveException, SOAPException, SQLException, TimeoutException, TooManyListenersException, TransformerException, TransformException, UnmodifiableClassException, UnsupportedAudioFileException, UnsupportedCallbackException, UnsupportedFlavorException, UnsupportedLookAndFeelException, URIReferenceException, URISyntaxException, UserException, XAException, XMLParseException, XMLSignatureException, XMLStreamException, XPathException

public class Exception
extends Throwable

Exception �༰�������� Throwable ��һ����ʽ����ָ���˺�����Ӧ�ó�����Ҫ�����������

�����°汾��ʼ��
JDK1.0
������
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
 

���췽����ϸ��Ϣ

Exception

public Exception()
������ϸ��ϢΪ null �����쳣��ԭ����δ����ʼ���������Ժ�ͨ������ Throwable.initCause(java.lang.Throwable) ������г�ʼ����


Exception

public Exception(String message)
�����ָ����ϸ��Ϣ�����쳣��ԭ����δ����ʼ���������Ժ�ͨ������ Throwable.initCause(java.lang.Throwable) ������г�ʼ����

������
message - ��ϸ��Ϣ��������ϸ��Ϣ���Ա��Ժ�ͨ�� Throwable.getMessage() ������ȡ����

Exception

public Exception(String message,
                 Throwable cause)
�����ָ����ϸ��Ϣ��ԭ������쳣��

ע�⣬�� cause ��ص���ϸ��Ϣ���� �Զ��ϲ�������쳣����ϸ��Ϣ�еġ�

������
message - ��ϸ��Ϣ���������Ϣ���Ա��Ժ�ͨ�� Throwable.getMessage() ������ȡ������
cause - ԭ�򣨱����ԭ���Ա��Ժ�ͨ��Throwable.getCause() ������ȡ������ ������ʹ�� null ֵ��ָ��ԭ�򲻴��ڻ�����δ֪�ġ���
�����°汾��ʼ��
1.4

Exception

public Exception(Throwable cause)
����ָ����ԭ��� (cause==null ? null : cause.toString()) ����ϸ��Ϣ�������쳣����ͨ������ cause �������ϸ��Ϣ����������Щ���������׳��쳣�����磬PrivilegedActionException���İ�װ����ͬ���쳣���˹��췽�������á�

������
cause - ԭ�򣨱����ԭ���Ա��Ժ�ͨ��Throwable.getCause() ������ȡ������ ������ʹ�� null ֵ��ָ��ԭ�򲻴��ڻ�����δ֪�ġ���
�����°汾��ʼ��
1.4

JavaTM Platform
Standard Ed. 6

�ύ��������
�йظ���� API �ο����ϺͿ�����Ա�ĵ�������� Java SE ������Ա�ĵ������ĵ���������ϸ�ġ����򿪷���Ա���������Լ�������������ﶨ�塢ʹ�ü��ɺ͹�������ʾ����

��Ȩ���� 2007 Sun Microsystems, Inc. ��������Ȩ���� ����������֤��������������ĵ����·ַ�������