|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.nabla.algorithmic.forward.analysis.ErrorReporter
public class ErrorReporter
Class used for delayed error reporting.
Constructor Summary | |
---|---|
ErrorReporter()
|
Method Summary | |
---|---|
boolean |
hasError()
Check if an error has already been registered. |
void |
register(DifferentiationException exception)
Register an exception to be reported later. |
void |
reportErrors()
Report the error if any. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ErrorReporter()
Method Detail |
---|
public void register(DifferentiationException exception)
exception
- exception to be reportedpublic boolean hasError()
public void reportErrors() throws DifferentiationException
If not error has been reported (i.e. if hasError()
returns
false
), this method does nothing. Otherwise, it rethrows
the original exception.
DifferentiationException
- if some error occurred
during differentiation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |