Class ACMException

  • All Implemented Interfaces:
    LocalizableException, java.io.Serializable

    public class ACMException
    extends MSTRWebAPIException
    ACMException extends from MSTRWebAPIException; thus the caller may simply catch MSTRWebAPIException for ease of use.

    ACMException primarily exists so that exceptions can be thrown from the "acm" package without having to modify MSTRWebAPIException to have public constructors.
    See Also:
    Serialized Form
    • Constructor Detail

      • ACMException

        public ACMException​(java.lang.String iMessage)
        Example:
        new ACMException("My Message");
      • ACMException

        public ACMException​(java.lang.String iMessage,
                            int iStatus)
        Examples:
        new ACMException("My Message", 400);
    • Method Detail

      • add

        public ACMException add​(java.lang.String iMessage)
        Add prepends the Message to the existing message

        Example:
          lACMException = lACMException.Add("More context");
          
        Parameters:
        iMessage - the new message to prepend to the old message
        Returns:
        a new ACMException object