Common exceptions mean

ArithmeticException arithmetic exceptions, conducted an illegal operation when performing a mathematical operation is executed (other than zero)

Bounds Exception ArrayIndexOutOfBoundsException index data, when accessing an array element, using illegal subscript (negative than or equal to the array length) throws

ClassCastException type conversion exception is thrown when a big strong type into small type, small type variable can not reference a large object type variable points

When NullberFormatException abnormal digital converter to convert the string to a numeric type, when the string is not a legal digital format Throws

NullPointerException null pointer exception is thrown when a property or method call to a null value

throw new Exceptio () to create an exception object is thrown

Java.util.regex.PatternsyntaxException regular expression format exception. When using a regular expression validation, the regular expression Throws clerical error

When Java.io.FileNotFoundException operation flow stream file, the target file does not exist throw

Throws Java.io.NotserializableException streaming through the object when the object, the interface object does not implement serialization

Java.lang.ClassNotFoundException thrown when loading classes, the class specified path does not exist

com.maysql.jdbc.exceptionts.jdbc4.MySQLyntaxErrorException: Unknown database 'tes' link library does not exist throw
Table' test.t_student 'does not exist table does not exist
Unkonwn column' sd_phone'in'field list column does not exist

Guess you like

Origin www.cnblogs.com/zhigeJava/p/11838740.html