Java开发常见异常(201912)

一、异常分类

Java开发常见异常(201912)_第1张图片

Java常见异常分类详解:https://blog.csdn.net/libusi001/article/details/100972441

二、编译时异常

 

三、运行时异常

空指针异常:Java.lang.NullPointerException:https://blog.csdn.net/libusi001/article/details/101391710

指定类不存在异常:java.lang.classnotfoundexception:https://blog.csdn.net/libusi001/article/details/101391804

数学运算异常:java.lang.arithmeticexception:https://blog.csdn.net/libusi001/article/details/101391887

数组下标越界异常:java.lang.arrayindexoutofboundsexception:https://blog.csdn.net/libusi001/article/details/101391974

类型转换异常:ClassCastException:https://blog.csdn.net/libusi001/article/details/101392222

方法的参数错误异常:https://blog.csdn.net/libusi001/article/details/101392079

没有访问权限:java.lang.illegalaccessexception:https://blog.csdn.net/libusi001/article/details/101392112

数字格式异常(字符串不能转化为数字):NumberFormatException

四、springboot异常

is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto:

 

五、mybatis异常

 

六、数据库

 

你可能感兴趣的:(#,代码质量:Java开发常见异常)