Package com.splunk.logging
Class HttpEventCollectorErrorHandler.ServerErrorException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.splunk.logging.HttpEventCollectorErrorHandler.ServerErrorException
- All Implemented Interfaces:
Serializable
- Enclosing class:
- HttpEventCollectorErrorHandler
public static class HttpEventCollectorErrorHandler.ServerErrorException extends Exception
This exception is passed to error callback when Splunk server replies an error
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description ServerErrorException(String serverReply)
Create an exception with server error reply -
Method Summary
Modifier and Type Method Description long
getErrorCode()
String
getErrorText()
* @return error text replied by Splunk serverString
getMessage()
String
getReply()
String
toString()
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
ServerErrorException
Create an exception with server error reply- Parameters:
serverReply
- server reply
-
-
Method Details
-
getReply
- Returns:
- Splunk server reply in json format
-
getErrorCode
public long getErrorCode()- Returns:
- error code replied by Splunk server
-
getErrorText
* @return error text replied by Splunk server -
getMessage
- Overrides:
getMessage
in classThrowable
-
toString
-