|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.github.inspektr.error.support.DefaultErrorLogManager
public class DefaultErrorLogManager
An ErrorLogManager implementation.
| Constructor Summary | |
|---|---|
DefaultErrorLogManager(String applicationCode,
List<ErrorReporter> errorReporters)
Constructs a new DefaultErrorLogManager. |
|
| Method Summary | |
|---|---|
List<ErrorReporter> |
getErrorReporters()
Returns the list of ErrorReporter associated with this manager. |
void |
recordError(String errorDescription)
Records the specified error. |
void |
recordError(Throwable throwable)
Records the specified throwable. |
void |
setCurrentContextPrincipalResolver(PrincipalResolver resolver)
Sets the currentContextPrincipalResolver. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultErrorLogManager(String applicationCode,
List<ErrorReporter> errorReporters)
DefaultErrorLogManager.
applicationCode - The application identifier to use when reporting errors.errorReporters - A list of ErrorReporters to use for reporting errors.| Method Detail |
|---|
public void setCurrentContextPrincipalResolver(PrincipalResolver resolver)
currentContextPrincipalResolver. The resolver will be
used to resolve current context information on the principal.
resolver - the CurrentContextPrincipalResolver to use.public void recordError(String errorDescription)
ErrorLogManager
recordError in interface ErrorLogManagererrorDescription - The error description.public void recordError(Throwable throwable)
ErrorLogManager
recordError in interface ErrorLogManagerthrowable - The throwable describing the error.public List<ErrorReporter> getErrorReporters()
ErrorLogManagerErrorReporter associated with this manager.
getErrorReporters in interface ErrorLogManagerErrorReporters.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||