Class ApplicationEnvironmentException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
de.aristaflow.adept2.model.runtimeenvironment.ApplicationEnvironmentException
- All Implemented Interfaces:
Serializable
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.
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:
-
Constructor Summary
ConstructorsConstructorDescriptionApplicationEnvironmentException(String errorMessage, long errorCode) Creates a newApplicationEnvironmentExceptioncontaining the designated information which is a human readable message and the ADEPT2-error code.ApplicationEnvironmentException(String errorMessage, long errorCode, Throwable cause) Creates a newApplicationEnvironmentExceptioncontaining the designated information which is a human readable message and the ADEPT2-error code. -
Method Summary
Modifier and TypeMethodDescriptionGets the complete stack trace of this exception as it would be printed to a print stream.longReturns the well-defined ADEPT2-error code.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ApplicationEnvironmentException
Creates a newApplicationEnvironmentExceptioncontaining 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
Creates a newApplicationEnvironmentExceptioncontaining 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 Details
-
getErrorCode
public long getErrorCode()Returns the well-defined ADEPT2-error code.- Returns:
- The well-defined ADEPT2-error code.
-
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.
-