org.grails.databinding.errors
Class SimpleBindingError

java.lang.Object
  extended by org.grails.databinding.errors.SimpleBindingError
All Implemented Interfaces:
BindingError

public class SimpleBindingError
extends java.lang.Object
implements BindingError

Since:
2.3

Constructor Summary
SimpleBindingError(java.lang.Object object, java.lang.String propertyName, java.lang.Object rejectedValue, java.lang.Throwable cause)
           
 
Method Summary
 java.lang.Throwable getCause()
           
 java.lang.Object getObject()
           
 java.lang.String getPropertyName()
           
 java.lang.Object getRejectedValue()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleBindingError

public SimpleBindingError(java.lang.Object object,
                          java.lang.String propertyName,
                          java.lang.Object rejectedValue,
                          java.lang.Throwable cause)
Method Detail

getObject

public java.lang.Object getObject()
Specified by:
getObject in interface BindingError
Returns:
the object that data binding was being imposed upon

getPropertyName

public java.lang.String getPropertyName()
Specified by:
getPropertyName in interface BindingError
Returns:
the name of the property that the data binding error occurred on

getRejectedValue

public java.lang.Object getRejectedValue()
Specified by:
getRejectedValue in interface BindingError
Returns:
The value which could not be bound to the property

getCause

public java.lang.Throwable getCause()
Specified by:
getCause in interface BindingError
Returns:
an exception thrown during the data binding process