Package de.aristaflow.ilm.util
Class IlmException
java.lang.Object
java.lang.Throwable
java.lang.Exception
de.aristaflow.ilm.util.IlmException
- All Implemented Interfaces:
de.aristaflow.adept2.model.communication.webservice.StackSuppressingException,Serializable
- Direct Known Subclasses:
AbortServiceException,AbortTransactionException,AgentUnknownException,AuthenticationException,DataConsistencyException,DataSourceException,IncompatibleGuiContextException,InterruptException,InvalidActivityStateException,InvalidDataContainerException,InvalidDataTypeException,InvalidInstanceStateException,InvalidTemplateStateException,InvalidWorklistItemStateException,LockException,OrgModelException,ParameterException,PasswordPolicyException,PlainTextException,PolicyResolutionException,ScriptException,UnknownSessionException,WrappingException,WrongAgentException,WrongRuntimeManagerException,XPathEvaluationException
public class IlmException
extends Exception
implements de.aristaflow.adept2.model.communication.webservice.StackSuppressingException
This class provides the means to allow serialisation frameworks to (de-)serialise exceptions with
all required information properly. Additionally, it allows for deserialising instances of the
corresponding subclasses properly. Stack traces can be suppressed and unrequired fields of
Throwable are hidden to avoid too much data.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe class of the cause of the exception ornull.@NotBlank StringThe message of the exception.The ID of the corresponding message in the server log.@NotBlank StringThis is used by Jackson for deserialising subclasses.@NotNull BooleanWhether to suppress the stack trace when serialising this exception. -
Constructor Summary
ConstructorsModifierConstructorDescriptionThe constructor required for bean deserialisation.protectedIlmException(String message) protectedIlmException(String message, Throwable cause, StackTraceElement[] stackTrace) protectedIlmException(Throwable replaced) -
Method Summary
Modifier and TypeMethodDescriptiongetCause()@NotNull List<IlmStackTraceElement>Gets the stack trace similar togetIlmStackTrace()but as ILM representation.getLogId()Overridden to get the actual message.voidvoidsetStackTrace(StackTraceElement[] stackTrace) voidsetSuppressStack(boolean suppressStack) Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, toString
-
Field Details
-
subClass
This is used by Jackson for deserialising subclasses. -
message
The message of the exception.- See Also:
-
causeClass
The class of the cause of the exception ornull.- See Also:
-
serverLogId
The ID of the corresponding message in the server log. The most significant bits is the timestamp in millis of the corresponding log entry, the least significant bits are a random long.
This will benullfor exceptions that are normal return values. In all exceptional cases this will be a valid and non-nullUUID. -
suppressStack
Whether to suppress the stack trace when serialising this exception.- See Also:
-
-
Constructor Details
-
IlmException
public IlmException()The constructor required for bean deserialisation. -
IlmException
-
IlmException
-
IlmException
-
-
Method Details
-
getLogId
- Specified by:
getLogIdin interfacede.aristaflow.adept2.model.communication.webservice.StackSuppressingException
-
setLogId
- Specified by:
setLogIdin interfacede.aristaflow.adept2.model.communication.webservice.StackSuppressingException
-
setSuppressStack
public void setSuppressStack(boolean suppressStack) - Specified by:
setSuppressStackin interfacede.aristaflow.adept2.model.communication.webservice.StackSuppressingException
-
getMessage
Overridden to get the actual message. Otherwise the method (of the superclass) will be preferred over the public field when serialising thus leading to the wrong message.- Overrides:
getMessagein classThrowable
-
getIlmStackTrace
Gets the stack trace similar togetIlmStackTrace()but as ILM representation. If the stack is suppressed, an empty list will be returned.- Returns:
- The ILM representation of the stack trace or the empty list when suppressed.
-
getStackTrace
- Overrides:
getStackTracein classThrowable
-
setStackTrace
- Overrides:
setStackTracein classThrowable
-
getLocalizedMessage
- Overrides:
getLocalizedMessagein classThrowable
-
getCause
-