Class ZulipClientException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.github.jamesnetherton.zulip.client.exception.ZulipClientException
All Implemented Interfaces:
Serializable

public class ZulipClientException extends Exception
Generic exception for any Zulip client error scenarios.
See Also:
  • Constructor Details

    • ZulipClientException

      public ZulipClientException(String message)
      Constructs a ZulipClientException.
      Parameters:
      message - The error message received in the Zulip API response
    • ZulipClientException

      public ZulipClientException(String message, String code)
      Constructs a ZulipClientException.
      Parameters:
      message - The error message received in the Zulip API response
      code - The error code received in the Zulip API response
    • ZulipClientException

      public ZulipClientException(Exception e)
      Constructs a ZulipClientException.
      Parameters:
      e - The cause of the exception
  • Method Details

    • getCode

      public String getCode()
      Gets the Zulip error code associated with the exception.
      Returns:
      The Zulip error code