Class ServiceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.appiancorp.asl3.servicefw.connect.ServiceException
com.appiancorp.services.exceptions.ServiceException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
UnsupportedServiceException
public class ServiceException
extends com.appiancorp.asl3.servicefw.connect.ServiceException
This is an unchecked exception which occurs whenever there are unforeseen
problems in execution of a request served through Appian Standard Library
(ASL).
- See Also:
-
Constructor Summary
ConstructorDescriptionConstructs a newServiceException
with empty detail message.ServiceException
(String msg_) Constructs aServiceException
with the specified detail message.ServiceException
(String msg_, Throwable cause_) Constructs a newServiceException
with the specified detail message and cause.ServiceException
(Throwable cause_) Constructs a new ServiceException with the specified cause and a detail message of (cause==null ? -
Method Summary
Modifier and TypeMethodDescriptionprotected String
This method creates a string representation of custom exception message by appending the calling method, method parameters and calling class.Returns the string representation of exception message.void
setRequest
(Method m_, Object[] p_) This method stores theMethod
and the parameters of the calling fuction.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ServiceException
public ServiceException()Constructs a newServiceException
with empty detail message. -
ServiceException
Constructs aServiceException
with the specified detail message.- Parameters:
msg_
- the detail message
-
ServiceException
Constructs a newServiceException
with the specified detail message and cause.- Parameters:
msg_
- the detail message (which is saved for later retrieval by theThrowable.getMessage()
method).cause_
- the cause (which is saved for later retrieval by theThrowable.getCause()
method). (Anull
value is permitted, and indicates that the cause is nonexistent or unknown.)
-
ServiceException
Constructs a new ServiceException with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause). This constructor is useful for exceptions that are little more than wrappers for other throwables- Parameters:
cause_
- the cause (which is saved for later retrieval by theThrowable.getCause()
method). (Anull
value is permitted, and indicates that the cause is nonexistent or unknown.)
-
-
Method Details
-
setRequest
This method stores theMethod
and the parameters of the calling fuction. This method and parameters are later used to create a custom exception message.- Overrides:
setRequest
in classcom.appiancorp.asl3.servicefw.connect.ServiceException
- Parameters:
m_
- calling methodp_
- parameter array of all parameters for calling method- See Also:
-
getMessage
Returns the string representation of exception message.- Overrides:
getMessage
in classcom.appiancorp.asl3.servicefw.connect.ServiceException
- Returns:
- the string representation of exception message.
-
getCustomMessage
This method creates a string representation of custom exception message by appending the calling method, method parameters and calling class.- Overrides:
getCustomMessage
in classcom.appiancorp.asl3.servicefw.connect.ServiceException
- Returns:
- String representation of the custom exception message
-