public class HttpEventCollectorErrorHandler
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
HttpEventCollectorErrorHandler.ErrorCallback |
static class |
HttpEventCollectorErrorHandler.ServerErrorException
This exception is passed to error callback when Splunk server replies an error
|
Constructor and Description |
---|
HttpEventCollectorErrorHandler() |
Modifier and Type | Method and Description |
---|---|
static void |
error(java.util.List<HttpEventCollectorEventInfo> data,
java.lang.Exception ex)
Report an exception
|
static void |
onError(HttpEventCollectorErrorHandler.ErrorCallback callback)
Register error callbacks
|
public static void onError(HttpEventCollectorErrorHandler.ErrorCallback callback)
callback
- public static void error(java.util.List<HttpEventCollectorEventInfo> data, java.lang.Exception ex)
data
- ex
- is an exception thrown by posting or processing data