|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ErrorHandler
ErrorHandler implementations can decide what to do with certain conditions. Specifically, they'll usually log or throw exceptions. They can only throw NodeOperationException (or other RuntimeExceptions, obviously), which the client code is expected to handle.
Method Summary | |
---|---|
void |
handle(javax.jcr.RepositoryException e,
Content context)
The operation calling this method isn't expected to do anything here; the ErrorHandler implementation will attempt to build a fully formed message, then decide what to do with it. |
void |
report(java.lang.String message)
The operation calling this method is expected to pass a fully formed message; it should ideally contain some context information about the operation that caused an issue. |
void |
report(java.lang.String message,
java.lang.Throwable cause)
The operation calling this method is expected to pass a fully formed message; it should ideally contain some context information about the operation that caused an issue. |
Method Detail |
---|
void report(java.lang.String message) throws NodeOperationException
NodeOperationException
void report(java.lang.String message, java.lang.Throwable cause) throws NodeOperationException
NodeOperationException
void handle(javax.jcr.RepositoryException e, Content context) throws NodeOperationException
NodeOperationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |