Package org.serviceconnector.api
Class SCServiceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.serviceconnector.api.SCServiceException
- All Implemented Interfaces:
Serializable
The Class SCServiceException. Used to notify errors on SC service level.
- Author:
- JTraber
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSCServiceException(String message) Instantiates a new SC service exception.SCServiceException(String message, Exception exception) Instantiates a new SC service exception. -
Method Summary
Modifier and TypeMethodDescriptionintGets the application error code.Gets the application error text.intGets the SC error code.Gets the SC error text.voidsetAppErrorCode(Integer appErrorCode) Sets the application error code.voidsetAppErrorText(String appErrorText) Sets the application error text.voidsetSCErrorCode(Integer scErrorCode) Sets the SC error code.voidsetSCErrorText(String scErrorText) Sets the sC error text.toString()Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
SCServiceException
Instantiates a new SC service exception.- Parameters:
message- the messageexception- the cause
-
SCServiceException
Instantiates a new SC service exception.- Parameters:
message- the message
-
-
Method Details
-
getAppErrorCode
public int getAppErrorCode()Gets the application error code.- Returns:
- the application error code
-
setAppErrorCode
Sets the application error code.- Parameters:
appErrorCode- the new application error code
-
getAppErrorText
Gets the application error text.- Returns:
- the application error text
-
setAppErrorText
Sets the application error text.- Parameters:
appErrorText- the new application error text
-
setSCErrorCode
Sets the SC error code.- Parameters:
scErrorCode- the new SC error code
-
setSCErrorText
Sets the sC error text.- Parameters:
scErrorText- the new sC error text
-
getSCErrorCode
public int getSCErrorCode()Gets the SC error code.- Returns:
- the SC error code
-
getSCErrorText
Gets the SC error text.- Returns:
- the SC error text
-
toString
-