Class FailActivity
java.lang.Object
com.azure.analytics.synapse.artifacts.models.Activity
com.azure.analytics.synapse.artifacts.models.ControlActivity
com.azure.analytics.synapse.artifacts.models.FailActivity
This activity will fail within its own scope and output a custom error message and error code. The error message and
code can provided either as a string literal or as an expression that can be evaluated to a string at runtime. The
activity scope can be the whole pipeline or a control activity (e.g. foreach, switch, until), if the fail activity is
contained in it.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the errorCode property: The error code that categorizes the error type of the Fail activity.Get the message property: The error message that surfaced in the Fail activity.setDependsOn
(List<ActivityDependency> dependsOn) Set the dependsOn property: Activity depends on condition.setDescription
(String description) Set the description property: Activity description.setErrorCode
(Object errorCode) Set the errorCode property: The error code that categorizes the error type of the Fail activity.setMessage
(Object message) Set the message property: The error message that surfaced in the Fail activity.Set the name property: Activity name.setUserProperties
(List<UserProperty> userProperties) Set the userProperties property: Activity user properties.Methods inherited from class com.azure.analytics.synapse.artifacts.models.Activity
getAdditionalProperties, getDependsOn, getDescription, getName, getUserProperties, setAdditionalProperties
-
Constructor Details
-
FailActivity
public FailActivity()Creates an instance of FailActivity class.
-
-
Method Details
-
getMessage
Get the message property: The error message that surfaced in the Fail activity. It can be dynamic content that's evaluated to a non empty/blank string at runtime. Type: string (or Expression with resultType string).- Returns:
- the message value.
-
setMessage
Set the message property: The error message that surfaced in the Fail activity. It can be dynamic content that's evaluated to a non empty/blank string at runtime. Type: string (or Expression with resultType string).- Parameters:
message
- the message value to set.- Returns:
- the FailActivity object itself.
-
getErrorCode
Get the errorCode property: The error code that categorizes the error type of the Fail activity. It can be dynamic content that's evaluated to a non empty/blank string at runtime. Type: string (or Expression with resultType string).- Returns:
- the errorCode value.
-
setErrorCode
Set the errorCode property: The error code that categorizes the error type of the Fail activity. It can be dynamic content that's evaluated to a non empty/blank string at runtime. Type: string (or Expression with resultType string).- Parameters:
errorCode
- the errorCode value to set.- Returns:
- the FailActivity object itself.
-
setName
Set the name property: Activity name.- Overrides:
setName
in classControlActivity
- Parameters:
name
- the name value to set.- Returns:
- the Activity object itself.
-
setDescription
Set the description property: Activity description.- Overrides:
setDescription
in classControlActivity
- Parameters:
description
- the description value to set.- Returns:
- the Activity object itself.
-
setDependsOn
Set the dependsOn property: Activity depends on condition.- Overrides:
setDependsOn
in classControlActivity
- Parameters:
dependsOn
- the dependsOn value to set.- Returns:
- the Activity object itself.
-
setUserProperties
Set the userProperties property: Activity user properties.- Overrides:
setUserProperties
in classControlActivity
- Parameters:
userProperties
- the userProperties value to set.- Returns:
- the Activity object itself.
-