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 Details

    • ServiceException

      public ServiceException()
      Constructs a new ServiceException with empty detail message.
    • ServiceException

      public ServiceException(String msg_)
      Constructs a ServiceException with the specified detail message.
      Parameters:
      msg_ - the detail message
    • ServiceException

      public ServiceException(String msg_, Throwable cause_)
      Constructs a new ServiceException with the specified detail message and cause.
      Parameters:
      msg_ - the detail message (which is saved for later retrieval by the Throwable.getMessage() method).
      cause_ - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
    • ServiceException

      public ServiceException(Throwable cause_)
      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 the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
  • Method Details

    • setRequest

      public void setRequest(Method m_, Object[] p_)
      This method stores the Method and the parameters of the calling fuction. This method and parameters are later used to create a custom exception message.
      Overrides:
      setRequest in class com.appiancorp.asl3.servicefw.connect.ServiceException
      Parameters:
      m_ - calling method
      p_ - parameter array of all parameters for calling method
      See Also:
    • getMessage

      public String getMessage()
      Returns the string representation of exception message.
      Overrides:
      getMessage in class com.appiancorp.asl3.servicefw.connect.ServiceException
      Returns:
      the string representation of exception message.
    • getCustomMessage

      protected String getCustomMessage()
      This method creates a string representation of custom exception message by appending the calling method, method parameters and calling class.
      Overrides:
      getCustomMessage in class com.appiancorp.asl3.servicefw.connect.ServiceException
      Returns:
      String representation of the custom exception message