Class ElasticServerException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- co.elasticsearch.enterprisesearch.client.ElasticServerException
-
- All Implemented Interfaces:
Serializable
public class ElasticServerException extends RuntimeException
Represents an exception caused or returned by the elasticsearch server- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ElasticServerException()Create a blank server exceptionElasticServerException(String message)Create a server exception with an error messageElasticServerException(String message, Throwable cause)Create a server exception with an error message and causeElasticServerException(Throwable cause)Create a server exception with a cause
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ElasticServerException
public ElasticServerException()
Create a blank server exception
-
ElasticServerException
public ElasticServerException(String message)
Create a server exception with an error message- Parameters:
message- The exception error message
-
ElasticServerException
public ElasticServerException(String message, Throwable cause)
Create a server exception with an error message and cause- Parameters:
message- The exception error messagecause- The cause of the exception
-
ElasticServerException
public ElasticServerException(Throwable cause)
Create a server exception with a cause- Parameters:
cause- The cause of the exception
-
-