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
ConstructorsConstructorDescriptionConstructs a newServiceExceptionwith empty detail message.ServiceException(String msg_) Constructs aServiceExceptionwith the specified detail message.ServiceException(String msg_, Throwable cause_) Constructs a newServiceExceptionwith 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 StringThis 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.voidsetRequest(Method m_, Object[] p_) This method stores theMethodand 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 newServiceExceptionwith empty detail message. -
ServiceException
Constructs aServiceExceptionwith the specified detail message.- Parameters:
msg_- the detail message
-
ServiceException
Constructs a newServiceExceptionwith 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). (Anullvalue 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). (Anullvalue is permitted, and indicates that the cause is nonexistent or unknown.)
-
-
Method Details
-
setRequest
This method stores theMethodand the parameters of the calling fuction. This method and parameters are later used to create a custom exception message.- Overrides:
setRequestin 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:
getMessagein 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:
getCustomMessagein classcom.appiancorp.asl3.servicefw.connect.ServiceException- Returns:
- String representation of the custom exception message
-