public interface ErrorAnalyzer
| Modifier and Type | Field and Description |
|---|---|
static ErrorAnalyzer |
DEFAULT |
static int |
NO_STATUS |
| 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.
|
static final int NO_STATUS
static final ErrorAnalyzer DEFAULT
boolean areErrorsEnabled()
boolean isReportable(int statusCode)
boolean isReportable(int statusCode,
java.lang.Throwable throwable)
boolean isReportable(int statusCode,
TransactionThrowable transactionThrowable)
boolean isIgnoredStatus(int statusCode)
An ignored error is not reported.
boolean isIgnoredThrowable(java.lang.Throwable throwable)
An ignored error is not reported.
boolean isIgnoredError(int statusCode,
java.lang.Throwable throwable)
An ignored error is not reported.
boolean isExpectedError(int statusCode,
TransactionThrowable transactionThrowable)
An expected error
is still reported, but it's marked expected so queries can easily filter them.