pl.bristleback.server.bristle.exceptions
Class BindingException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by pl.bristleback.server.bristle.exceptions.BindingException
All Implemented Interfaces:
java.io.Serializable

public class BindingException
extends java.lang.RuntimeException

This exception can be thrown during binding operations. Contains binding result wrapper.

Created on: 2011-03-12 16:32:33

Author:
Wojciech Niemiec
See Also:
Serialized Form

Constructor Summary
BindingException(java.lang.String message, BindingResult bindingResult)
           
 
Method Summary
 BindingResult<?> getBindingResult()
          Gets binding result wrapper.
 java.util.List<BindingError> getErrors()
          Gets list of binding errors, most of all validation errors.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BindingException

public BindingException(java.lang.String message,
                        BindingResult bindingResult)
Method Detail

getBindingResult

public BindingResult<?> getBindingResult()
Gets binding result wrapper.

Returns:
binding result.

getErrors

public java.util.List<BindingError> getErrors()
Gets list of binding errors, most of all validation errors.

Returns:
binding errors.


Copyright © 2011. All Rights Reserved.