Package com.jk.services.client
Class JKServiceClientException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.jk.core.exceptions.JKException
com.jk.services.client.JKServiceClientException
- All Implemented Interfaces:
Serializable
The Class JKServiceClientException.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new JK service client exception.JKServiceClientException
(JKHttpStatus status) Instantiates a new JK service client exception.JKServiceClientException
(String message) Instantiates a new JK service client exception.JKServiceClientException
(String serviceName, String url, JKHttpStatus status, String responseMessage) Instantiates a new JK service client exception.JKServiceClientException
(String serviceName, String url, JKHttpStatus status, String responseMessage, Throwable cause) Instantiates a new JK service client exception.JKServiceClientException
(String message, Throwable cause) Instantiates a new JK service client exception.JKServiceClientException
(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) Instantiates a new JK service client exception.Instantiates a new JK service client exception. -
Method Summary
Modifier and TypeMethodDescriptionGets the error code.Gets the error message.Gets the message.Gets the response message.Gets the service name.Gets the status.getUrl()
Gets the url.boolean
Checks if is not found.void
setErrorCode
(String errorCode) Sets the error code.void
setErrorMessage
(String errorMessage) Sets the error message.void
setResponseMessage
(String responseMessage) Sets the response message.void
setServiceName
(String serviceName) Sets the service name.void
setStatus
(JKHttpStatus status) Sets the status.void
Sets the url.Methods inherited from class com.jk.core.exceptions.JKException
isLogged, setLogged
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
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 messagecause
- the causeenableSuppression
- the enable suppressionwritableStackTrace
- the writable stack trace
-
JKServiceClientException
Instantiates a new JK service client exception.- Parameters:
message
- the messagecause
- the cause
-
JKServiceClientException
Instantiates a new JK service client exception.- Parameters:
message
- the message
-
JKServiceClientException
Instantiates a new JK service client exception.- Parameters:
cause
- the cause
-
JKServiceClientException
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 nameurl
- the urlstatus
- the statusresponseMessage
- the response messagecause
- the cause
-
JKServiceClientException
public JKServiceClientException(String serviceName, String url, JKHttpStatus status, String responseMessage) Instantiates a new JK service client exception.- Parameters:
serviceName
- the service nameurl
- the urlstatus
- the statusresponseMessage
- the response message
-
-
Method Details
-
getMessage
Gets the message.- Overrides:
getMessage
in classThrowable
- Returns:
- the message
-
getServiceName
Gets the service name.- Returns:
- the service name
-
setServiceName
Sets the service name.- Parameters:
serviceName
- the new service name
-
getErrorCode
Gets the error code.- Returns:
- the error code
-
setErrorCode
Sets the error code.- Parameters:
errorCode
- the new error code
-
getErrorMessage
Gets the error message.- Returns:
- the error message
-
setErrorMessage
Sets the error message.- Parameters:
errorMessage
- the new error message
-
getStatus
Gets the status.- Returns:
- the status
-
setStatus
Sets the status.- Parameters:
status
- the new status
-
getUrl
Gets the url.- Returns:
- the url
-
setUrl
Sets the url.- Parameters:
url
- the new url
-
getResponseMessage
Gets the response message.- Returns:
- the response message
-
setResponseMessage
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
-