public class ChangeExecutionException extends FlamingockException
This exception provides rich context about the failed change execution including:
This exception should be used instead of generic FlamingockException
when change execution fails, as it provides much better debugging context.
| Constructor and Description |
|---|
ChangeExecutionException(java.lang.String message,
java.lang.String changeId,
java.lang.String stageName,
java.lang.String executionMode,
java.time.Duration executionDuration,
java.lang.String targetSystemId,
java.lang.Throwable cause)
Creates a new ChangeExecutionException with full execution context.
|
ChangeExecutionException(java.lang.String message,
java.lang.String changeId,
java.lang.Throwable cause)
Creates a new ChangeExecutionException with minimal context (for backward compatibility).
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getChangeId() |
java.time.Duration |
getExecutionDuration() |
java.lang.String |
getExecutionMode() |
java.lang.String |
getStageName() |
java.lang.String |
getTargetSystemId() |
toFlamingockExceptionpublic ChangeExecutionException(java.lang.String message,
java.lang.String changeId,
java.lang.String stageName,
java.lang.String executionMode,
java.time.Duration executionDuration,
java.lang.String targetSystemId,
java.lang.Throwable cause)
message - descriptive error messagechangeId - the ID of the failed changestageName - the name of the stage containing the changeexecutionMode - the execution mode (e.g., "transactional", "non-transactional")executionDuration - how long the change took before failingtargetSystemId - the target system where the change was being appliedcause - the underlying exception that caused the failurepublic ChangeExecutionException(java.lang.String message,
java.lang.String changeId,
java.lang.Throwable cause)
message - descriptive error messagechangeId - the ID of the failed changecause - the underlying exception that caused the failurepublic java.lang.String getChangeId()
public java.lang.String getStageName()
public java.lang.String getExecutionMode()
public java.time.Duration getExecutionDuration()
public java.lang.String getTargetSystemId()