Class ZulipClientException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.github.jamesnetherton.zulip.client.exception.ZulipClientException
- All Implemented Interfaces:
Serializable
Generic exception for any Zulip client error scenarios.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs aZulipClientException
.ZulipClientException
(String message) Constructs aZulipClientException
.ZulipClientException
(String message, String code) Constructs aZulipClientException
. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ZulipClientException
Constructs aZulipClientException
.- Parameters:
message
- The error message received in the Zulip API response
-
ZulipClientException
Constructs aZulipClientException
.- Parameters:
message
- The error message received in the Zulip API responsecode
- The error code received in the Zulip API response
-
ZulipClientException
Constructs aZulipClientException
.- Parameters:
e
- The cause of the exception
-
-
Method Details
-
getCode
Gets the Zulip error code associated with the exception.- Returns:
- The Zulip error code
-