FailActivity Class
- java.
lang. Object - com.
azure. resourcemanager. datafactory. models. Activity - com.
azure. resourcemanager. datafactory. models. ControlActivity - com.
azure. resourcemanager. datafactory. models. FailActivity
- com.
- com.
- com.
public final class FailActivity
extends ControlActivity
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
| Constructor | Description |
|---|---|
| FailActivity() |
Creates an instance of Fail |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Object |
errorCode()
Get the error |
|
static
Fail |
fromJson(JsonReader jsonReader)
Reads an instance of Fail |
| Object |
message()
Get the message property: The error message that surfaced in the Fail activity. |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: Type of activity. |
| void |
validate()
Validates the instance. |
|
Fail |
withDependsOn(List<ActivityDependency> dependsOn)
Set the depends |
|
Fail |
withDescription(String description)
Set the description property: Activity description. |
|
Fail |
withErrorCode(Object errorCode)
Set the error |
|
Fail |
withMessage(Object message)
Set the message property: The error message that surfaced in the Fail activity. |
|
Fail |
withName(String name)
Set the name property: Activity name. |
|
Fail |
withOnInactiveMarkAs(ActivityOnInactiveMarkAs onInactiveMarkAs)
Set the on |
|
Fail |
withState(ActivityState state)
Set the state property: Activity state. |
|
Fail |
withUserProperties(List<UserProperty> userProperties)
Set the user |
Methods inherited from Activity
Methods inherited from ControlActivity
Methods inherited from java.lang.Object
Constructor Details
FailActivity
public FailActivity()
Creates an instance of FailActivity class.
Method Details
errorCode
public Object errorCode()
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:
fromJson
public static FailActivity fromJson(JsonReader jsonReader)
Reads an instance of FailActivity from the JsonReader.
Parameters:
Returns:
Throws:
message
public Object message()
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:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
FailActivity.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: Type of activity.
Overrides:
FailActivity.type()Returns:
validate
public void validate()
Validates the instance.
Overrides:
FailActivity.validate()withDependsOn
public FailActivity withDependsOn(List<ActivityDependency> dependsOn)
Set the dependsOn property: Activity depends on condition.
Overrides:
FailActivity.withDependsOn(List<ActivityDependency> dependsOn)Parameters:
withDescription
public FailActivity withDescription(String description)
Set the description property: Activity description.
Overrides:
FailActivity.withDescription(String description)Parameters:
withErrorCode
public FailActivity withErrorCode(Object errorCode)
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:
Returns:
withMessage
public FailActivity withMessage(Object message)
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:
Returns:
withName
public FailActivity withName(String name)
Set the name property: Activity name.
Overrides:
FailActivity.withName(String name)Parameters:
withOnInactiveMarkAs
public FailActivity withOnInactiveMarkAs(ActivityOnInactiveMarkAs onInactiveMarkAs)
Set the onInactiveMarkAs property: Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when the activity is inactive, the status will be Succeeded by default.
Overrides:
FailActivity.withOnInactiveMarkAs(ActivityOnInactiveMarkAs onInactiveMarkAs)Parameters:
withState
public FailActivity withState(ActivityState state)
Set the state property: Activity state. This is an optional property and if not provided, the state will be Active by default.
Overrides:
FailActivity.withState(ActivityState state)Parameters:
withUserProperties
public FailActivity withUserProperties(List<UserProperty> userProperties)
Set the userProperties property: Activity user properties.
Overrides:
FailActivity.withUserProperties(List<UserProperty> userProperties)Parameters: