|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.infoglue.cms.util.ConstraintExceptionBuffer
Any duplicate (ConstraintException.equals()) will be silently discarded.
| Constructor Summary | |
ConstraintExceptionBuffer()
Constructs a ConstraintExceptionBuffer with no exceptions in it. |
|
ConstraintExceptionBuffer(ConstraintException exception)
Constructs a ConstraintExceptionBuffer containing the specified exception(s). |
|
| Method Summary | |
void |
add(ConstraintException exception)
Adds the specified exception to the exceptions of this buffer. |
void |
add(ConstraintExceptionBuffer ceb)
Adds the exceptions of the specified buffer to this buffer. |
boolean |
equals(java.lang.Object o)
Returns true if the specified object is a buffer containing exactly the same exceptions as this one. |
int |
hashCode()
Note! |
boolean |
isEmpty()
Returns true if this buffer contains no exceptions; false otherwise. |
void |
throwIfNotEmpty()
Throws the root exception; if this buffer contains no exceptions, nothing happens. |
ConstraintException |
toConstraintException()
Converts the exceptions of this buffer to chained constraint exceptions. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ConstraintExceptionBuffer()
public ConstraintExceptionBuffer(ConstraintException exception)
exception - the initial exception(s) to add.| Method Detail |
public final boolean isEmpty()
public final void add(ConstraintExceptionBuffer ceb)
ceb - the buffer to add from (empty buffers legal).public final void add(ConstraintException exception)
exception - the exception to add (chained exceptions legal).
public void throwIfNotEmpty()
throws AccessConstraintException,
ConstraintException
ConstraintException - if this buffer contains any exceptions.
AccessConstraintExceptionpublic ConstraintException toConstraintException()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - the reference object with which to compare.
public int hashCode()
hashCode in class java.lang.Object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||