Package com.vdoc.sdk.commons.exception
Class SDKServiceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.axemble.vdoc.sdk.exceptions.ModuleException
com.vdoc.sdk.commons.exception.SDKServiceException
- All Implemented Interfaces:
Serializable
SDK service exception
Created by wtoscer on 10/02/2015.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSDKServiceException(String message, String... messageParameters) ConstructorSDKServiceException(String message, Throwable cause, String... messageParameters) ConstructorSDKServiceException(Throwable cause) Constructor -
Method Summary
Modifier and TypeMethodDescriptiongetLocalizedMessage(String local) Find the localized messageString[]static StringgetThrowableMessage(String throwableLocalizedMessage) Find the throwable messagebooleanCheck if the message is localizedbooleanvoidsetLocalizedMessage(String localizedMessage) voidsetLogAsError(boolean logAsError) toString()Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
SDKServiceException
Constructor- Parameters:
message- the messagecause- the causemessageParameters- the message parameters
-
SDKServiceException
Constructor- Parameters:
message- the messagemessageParameters- the message parameters
-
SDKServiceException
Constructor- Parameters:
cause- the cause
-
-
Method Details
-
getThrowableMessage
Find the throwable message- Parameters:
throwableLocalizedMessage- the throwable localized message- Returns:
- the throwable message
-
isLocalized
public boolean isLocalized()Check if the message is localized- Returns:
- true if the message is localized
-
getLocalizedMessage
- Overrides:
getLocalizedMessagein classThrowable
-
setLocalizedMessage
-
toString
-
getLocalizedMessage
Find the localized message- Parameters:
local- the local- Returns:
- the localized message
-
getMessageParameters
-
isLogAsError
public boolean isLogAsError() -
setLogAsError
public void setLogAsError(boolean logAsError)
-