Class ApplicationEnvironmentException

  • All Implemented Interfaces:
    Serializable

    public class ApplicationEnvironmentException
    extends RuntimeException
    Exception indicating the failing of an application / activity due to an erroneous environment, for instance, required parameters are missing or wrong or the GUI-context can not be used. Therefore this exception signals failures that are caused outside of the component, which can be other components or the process management system.
    This exception encapsulates an ADEPT2-error code, a human readable message explaining the failure and optionally the exception that caused the failure.
    Author:
    Kevin Goeser, Ulrich Kreher
    See Also:
    ApplicationErrorCodes, Serialized Form
    • Constructor Detail

      • ApplicationEnvironmentException

        public ApplicationEnvironmentException​(String errorMessage,
                                               long errorCode)
        Creates a new ApplicationEnvironmentException containing the designated information which is a human readable message and the ADEPT2-error code.
        Parameters:
        errorMessage - A human readable error message for this exception.
        errorCode - The well-defined ADEPT2-error code.
      • ApplicationEnvironmentException

        public ApplicationEnvironmentException​(String errorMessage,
                                               long errorCode,
                                               Throwable cause)
        Creates a new ApplicationEnvironmentException containing the designated information which is a human readable message and the ADEPT2-error code.
        Parameters:
        errorMessage - A human readable error message for this exception.
        errorCode - The well-defined ADEPT2-error code.
        cause - The cause for the failing of the application, for instance, another exception.
    • Method Detail

      • getErrorCode

        public long getErrorCode()
        Returns the well-defined ADEPT2-error code.
        Returns:
        The well-defined ADEPT2-error code.
      • getCompleteStackTrace

        public String getCompleteStackTrace()
        Gets the complete stack trace of this exception as it would be printed to a print stream.
        Returns:
        The complete stack trace of this exception as it would be printed to a print stream.