Package org.jdesktop.beansbinding
Class Binding.SyncFailure
java.lang.Object
org.jdesktop.beansbinding.Binding.SyncFailure
SyncFailure represents a failure to sync (save or refresh) a
Binding.-
Method Summary
Modifier and TypeMethodDescriptionReturns the exception that occurred during conversion if this failure represents a conversion failure.getType()Returns the type of failure.Returns the result that was returned from theBinding'svalidator if this failure represents a validation failure.toString()Returns a string representation of theSyncFailure.
-
Method Details
-
getType
Returns the type of failure.- Returns:
- the type of failure
-
getConversionException
Returns the exception that occurred during conversion if this failure represents a conversion failure. ThrowsUnsupportedOperationExceptionotherwise.- Returns:
- the exception that occurred during conversion
- Throws:
UnsupportedOperationException- if the type of failure is notSyncFailureType.CONVERSION_FAILED
-
getValidationResult
Returns the result that was returned from theBinding'svalidator if this failure represents a validation failure. ThrowsUnsupportedOperationExceptionotherwise.- Returns:
- the result that was returned from the
Binding'svalidator - Throws:
UnsupportedOperationException- if the type of failure is notSyncFailureType.VALIDATION_FAILED
-
toString
Returns a string representation of theSyncFailure. 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 benull.
-