类 PropertyAccessException

    • 构造器详细资料

      • PropertyAccessException

        public PropertyAccessException​(PropertyChangeEvent propertyChangeEvent,
                                       String msg,
                                       Throwable cause)
        Create a new PropertyAccessException.
        参数:
        propertyChangeEvent - the PropertyChangeEvent that resulted in the problem
        msg - the detail message
        cause - the root cause
      • PropertyAccessException

        public PropertyAccessException​(String msg,
                                       Throwable cause)
        Create a new PropertyAccessException without PropertyChangeEvent.
        参数:
        msg - the detail message
        cause - the root cause
    • 方法详细资料

      • getValue

        public Object getValue()
        Return the affected value that was about to be set, if any.
      • getErrorCode

        public abstract String getErrorCode()
        Return a corresponding error code for this type of exception.
        指定者:
        getErrorCode 在接口中 ErrorCoded
        返回:
        a String error code associated with this failure, or null if not error-coded