|
TagLib documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alweb.doff.util.error.ErrorContainer
public class ErrorContainer
Implements of interface ErrorProducer. You can extend this class for
raising errors.
| Constructor Summary | |
|---|---|
ErrorContainer()
|
|
| Method Summary | |
|---|---|
protected ErrorMessage |
addError(ErrorMessage error)
Adds specified error (if not null) to internal error list. |
protected ErrorMessage |
addError(String message,
Object... params)
Creates and add an error from specified message and params and return it. |
protected void |
addErrors(Collection<ErrorMessage> errors)
Adds all errors from the specified collection to the error internal collection. |
protected void |
addErrors(ErrorProducer... producers)
Adds all errors of specified producers to errors internal collection. |
protected void |
addErrors(String... messages)
Adds and construct all errors from specified messages. |
protected void |
clearErrors()
Clear all errors of this object. |
Collection<ErrorMessage> |
getErrors()
Returns a collection of this object errors. |
boolean |
isInErrorState()
Determines if this object is in error state. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ErrorContainer()
| Method Detail |
|---|
protected ErrorMessage addError(ErrorMessage error)
null) to internal error list.
getErrors()
protected ErrorMessage addError(String message,
Object... params)
getErrors(),
ErrorMessage.ErrorMessage(String, Object[])protected void addErrors(Collection<ErrorMessage> errors)
null errors are added.
addError(ErrorMessage)protected void addErrors(ErrorProducer... producers)
addErrors(Collection)protected void addErrors(String... messages)
addError(String, Object[])protected void clearErrors()
getErrors(),
Collection.clear()public Collection<ErrorMessage> getErrors()
HttpServletRequest for example. This method must never return
null.
getErrors in interface ErrorProducerpublic boolean isInErrorState()
|
TagLib documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||