异常处理有哪几种形式呀
异常处理
------解决方案--------------------Acl
NotFoundException, ActivationException, AlreadyBoundException, ApplicationException, AWTException, BackingStoreException, BadAttributeValueExpException, BadBinaryOpValueExpException, BadLocationException, BadStringOperationException, BrokenBarrierException, CertificateException,
ClassNotFoundException, CloneNotSupportedException, DataFormatException, Datatype
ConfigurationException, DestroyFailedException, ExecutionException, ExpandVetoException, FontFormatException, General
SecurityException, GSSException,
IllegalAccessException, Illegal
ClassFormatException,
InstantiationException, InterruptedException, IntrospectionException, InvalidApplicationException, InvalidMidi
DataException, InvalidPreferencesFormatException, InvalidTargetObjectTypeException,
InvocationTargetException,
IOException, JMException, LastOwnerException, Line
UnavailableException, MidiUnavailableException, MimeType
ParseException, NamingException, NoninvertibleTransformException, NoSuchFieldException, NoSuchMethodException, NotBoundException, NotOwnerException, ParseException, ParserConfigurationException, PrinterException, PrintException, PrivilegedActionException, PropertyVetoException, RefreshFailedException, RemarshalException,
RuntimeException,
SAXException, ServerNotActiveException,
SQLException,
TimeoutException, TooManyListenersException, TransformerException, UnmodifiableClassException, UnsupportedAudioFileException, UnsupportedCallbackException, UnsupportedFlavorException, UnsupportedLookAndFeelException, URISyntaxException, UserException, XAException, XMLParseException, XPathException
try
{
//...
}
catch(YourException e)
{
//...
}
finally()
{
//...
}
------解决方案--------------------正常异常处理和系统异常处理