public class ErrorAnalyzerImpl extends java.lang.Object implements ErrorAnalyzer
DEFAULT, NO_STATUS| Constructor and Description |
|---|
ErrorAnalyzerImpl(ErrorCollectorConfig errorCollectorConfig) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
areErrorsEnabled()
Return true if error collection is enabled for this application, false otherwise
|
boolean |
isExpectedError(int statusCode,
TransactionThrowable transactionThrowable)
Returns true if the throwable's class is in a list of configured expected
throwable classes, if the throwable has already been marked "expected", or if the
status code is in a list of expected status codes.
|
boolean |
isIgnoredError(int statusCode,
java.lang.Throwable throwable)
Returns true if the throwable is ignored OR the status code is ignored.
|
boolean |
isIgnoredStatus(int statusCode)
Returns true if the status code is in a list of configured ignored status codes.
|
boolean |
isIgnoredThrowable(java.lang.Throwable throwable)
Returns true if the throwable's class is in a list of configured ignored throwable classes.
|
boolean |
isReportable(int statusCode)
Identifies if a status code is reportable.
|
boolean |
isReportable(int statusCode,
java.lang.Throwable throwable)
Identifies if a status code OR a throwable are reportable.
|
boolean |
isReportable(int statusCode,
TransactionThrowable transactionThrowable)
Identifies if a status code OR a throwable are reportable.
|
public ErrorAnalyzerImpl(ErrorCollectorConfig errorCollectorConfig)
public boolean areErrorsEnabled()
ErrorAnalyzerareErrorsEnabled in interface ErrorAnalyzerpublic boolean isReportable(int statusCode)
ErrorAnalyzerisReportable in interface ErrorAnalyzerpublic boolean isReportable(int statusCode,
java.lang.Throwable throwable)
ErrorAnalyzerisReportable in interface ErrorAnalyzerpublic boolean isReportable(int statusCode,
TransactionThrowable transactionThrowable)
ErrorAnalyzerisReportable in interface ErrorAnalyzerpublic boolean isIgnoredError(int statusCode,
java.lang.Throwable throwable)
ErrorAnalyzerAn ignored error is not reported.
isIgnoredError in interface ErrorAnalyzerpublic boolean isIgnoredStatus(int statusCode)
ErrorAnalyzerAn ignored error is not reported.
isIgnoredStatus in interface ErrorAnalyzerpublic boolean isIgnoredThrowable(java.lang.Throwable throwable)
ErrorAnalyzerAn ignored error is not reported.
isIgnoredThrowable in interface ErrorAnalyzerpublic boolean isExpectedError(int statusCode,
TransactionThrowable transactionThrowable)
ErrorAnalyzerAn expected error
is still reported, but it's marked expected so queries can easily filter them.isExpectedError in interface ErrorAnalyzer