Class Binding.SyncFailure

  • Enclosing class:
    Binding<SS,​SV,​TS,​TV>

    public static final class Binding.SyncFailure
    extends Object
    SyncFailure represents a failure to sync (save or refresh) a Binding.
    • Method Detail

      • getConversionException

        public RuntimeException getConversionException()
        Returns the exception that occurred during conversion if this failure represents a conversion failure. Throws UnsupportedOperationException otherwise.
        Returns:
        the exception that occurred during conversion
        Throws:
        UnsupportedOperationException - if the type of failure is not SyncFailureType.CONVERSION_FAILED
      • getValidationResult

        public Validator.Result getValidationResult()
        Returns the result that was returned from the Binding's validator if this failure represents a validation failure. Throws UnsupportedOperationException otherwise.
        Returns:
        the result that was returned from the Binding's validator
        Throws:
        UnsupportedOperationException - if the type of failure is not SyncFailureType.VALIDATION_FAILED
      • toString

        public String toString()
        Returns a string representation of the SyncFailure. This method is intended to be used for debugging purposes only, and the content and format of the returned string may vary between implementations. The returned string may be empty but may not be null.
        Overrides:
        toString in class Object
        Returns:
        a string representation of this SyncFailure