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
All Methods Instance Methods Concrete Methods 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 Detail
-
ServerErrorException
public ServerErrorException(String serverReply)
Create an exception with server error reply- Parameters:
serverReply
- server reply
-
-
Method Detail
-
getReply
public String getReply()
- Returns:
- Splunk server reply in json format
-
getErrorCode
public long getErrorCode()
- Returns:
- error code replied by Splunk server
-
getErrorText
public String getErrorText()
* @return error text replied by Splunk server
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classThrowable
-
-