1. 程式人生 > >java異常介面

java異常介面

public class MapperException extends RuntimeException {
    public MapperException() {
        super();
    }

    public MapperException(String message) {
        super(message);
    }

    public MapperException(String message, Throwable cause) {
        super(message, cause);
    }

    public MapperException(Throwable cause) {
        super(cause);
    }

}
throw new MapperException("類 " + entityClass.getSimpleName() + " 不包含屬性 \'" + property + "\',或該屬性被@Transient註釋!");