Class JKServiceClientException

All Implemented Interfaces:
Serializable

public class JKServiceClientException extends JKException
The Class JKServiceClientException.
See Also:
  • Constructor Details

    • JKServiceClientException

      public JKServiceClientException()
      Instantiates a new JK service client exception.
    • JKServiceClientException

      public JKServiceClientException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)
      Instantiates a new JK service client exception.
      Parameters:
      message - the message
      cause - the cause
      enableSuppression - the enable suppression
      writableStackTrace - the writable stack trace
    • JKServiceClientException

      public JKServiceClientException(String message, Throwable cause)
      Instantiates a new JK service client exception.
      Parameters:
      message - the message
      cause - the cause
    • JKServiceClientException

      public JKServiceClientException(String message)
      Instantiates a new JK service client exception.
      Parameters:
      message - the message
    • JKServiceClientException

      public JKServiceClientException(Throwable cause)
      Instantiates a new JK service client exception.
      Parameters:
      cause - the cause
    • JKServiceClientException

      public JKServiceClientException(JKHttpStatus status)
      Instantiates a new JK service client exception.
      Parameters:
      status - the status
    • JKServiceClientException

      public JKServiceClientException(String serviceName, String url, JKHttpStatus status, String responseMessage, Throwable cause)
      Instantiates a new JK service client exception.
      Parameters:
      serviceName - the service name
      url - the url
      status - the status
      responseMessage - the response message
      cause - the cause
    • JKServiceClientException

      public JKServiceClientException(String serviceName, String url, JKHttpStatus status, String responseMessage)
      Instantiates a new JK service client exception.
      Parameters:
      serviceName - the service name
      url - the url
      status - the status
      responseMessage - the response message
  • Method Details

    • getMessage

      public String getMessage()
      Gets the message.
      Overrides:
      getMessage in class Throwable
      Returns:
      the message
    • getServiceName

      public String getServiceName()
      Gets the service name.
      Returns:
      the service name
    • setServiceName

      public void setServiceName(String serviceName)
      Sets the service name.
      Parameters:
      serviceName - the new service name
    • getErrorCode

      public String getErrorCode()
      Gets the error code.
      Returns:
      the error code
    • setErrorCode

      public void setErrorCode(String errorCode)
      Sets the error code.
      Parameters:
      errorCode - the new error code
    • getErrorMessage

      public String getErrorMessage()
      Gets the error message.
      Returns:
      the error message
    • setErrorMessage

      public void setErrorMessage(String errorMessage)
      Sets the error message.
      Parameters:
      errorMessage - the new error message
    • getStatus

      public JKHttpStatus getStatus()
      Gets the status.
      Returns:
      the status
    • setStatus

      public void setStatus(JKHttpStatus status)
      Sets the status.
      Parameters:
      status - the new status
    • getUrl

      public String getUrl()
      Gets the url.
      Returns:
      the url
    • setUrl

      public void setUrl(String url)
      Sets the url.
      Parameters:
      url - the new url
    • getResponseMessage

      public String getResponseMessage()
      Gets the response message.
      Returns:
      the response message
    • setResponseMessage

      public void setResponseMessage(String responseMessage)
      Sets the response message.
      Parameters:
      responseMessage - the new response message
    • isNotFound

      public boolean isNotFound()
      Checks if is not found.
      Returns:
      true, if is not found