Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.sample.jsp.validation
Class SampleErrorHandler  view SampleErrorHandler download SampleErrorHandler.java

java.lang.Object
  extended bycom.sample.jsp.validation.SampleErrorHandler

public class SampleErrorHandler
extends java.lang.Object

A sample error handler class for managing validation failures.


Field Summary
private  com.aendvari.common.notices.Notices errors
          A com.aendvari.common.notices.Notice instance for holding all notices for later retrieval.
 
Constructor Summary
SampleErrorHandler()
           
 
Method Summary
 void addError(java.lang.String propertyName, java.lang.String propertyValue, java.lang.String resourceKey)
          Adds an error to the messages list.
 com.aendvari.common.notices.Notices getErrorMessages()
          Retrieve the error messages.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

errors

private com.aendvari.common.notices.Notices errors
A com.aendvari.common.notices.Notice instance for holding all notices for later retrieval.

Constructor Detail

SampleErrorHandler

public SampleErrorHandler()
Method Detail

addError

public void addError(java.lang.String propertyName,
                     java.lang.String propertyValue,
                     java.lang.String resourceKey)
              throws java.lang.Exception
Adds an error to the messages list.


getErrorMessages

public com.aendvari.common.notices.Notices getErrorMessages()
Retrieve the error messages.