• Java custom exception


    Custom exception   1、Inheritance class       Generally, you choose to inherit Exception.andRuntimeExceptionIf the caller is not required to handle the thrown exception, inheritRuntimeException。   2、Custom Exception Class Construction Method     Code examples: People entity class public class People { String name=””; int age=0; String sex; public String getSex() { return sex; } public […]