| Modifier and Type | Class and Description |
|---|---|
static class |
ValidationFailure.Cause
Represents a cause of a failure.
|
| Constructor and Description |
|---|
ValidationFailure(String message)
Creates a validation failure with provided message.
|
ValidationFailure(String message,
String correctiveAction)
Creates a validation failure with provided message and corrective action.
|
ValidationFailure(String message,
String correctiveAction,
String stageName,
Map<String,io.cdap.cdap.api.data.schema.Schema> inputSchemas)
Creates a validation failure with provided message and corrective action.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
List<ValidationFailure.Cause> |
getCauses()
Returns causes that caused this failure.
|
String |
getCorrectiveAction()
Returns corrective action for this failure.
|
String |
getFullMessage()
Returns failure message along with corrective action.
|
String |
getMessage()
Returns failure message.
|
int |
hashCode() |
ValidationFailure |
withCause(ValidationFailure.Cause cause)
Adds provided cause to this validation failure.
|
ValidationFailure |
withConfigElement(String stageConfigProperty,
String element)
Adds cause attributes for failure cause that represents an invalid element in the list associated with given stage
configure property.
|
ValidationFailure |
withConfigProperty(String stageConfigProperty)
Adds cause attributes that represents invalid stage configure property failure cause.
|
ValidationFailure |
withInputSchemaField(String fieldName)
Adds cause attributes that represents invalid input schema field failure cause.
|
ValidationFailure |
withInputSchemaField(String fieldName,
String inputStage)
Adds cause attributes that represents invalid input schema field failure cause.
|
ValidationFailure |
withOutputSchemaField(String fieldName)
Adds cause attributes that represents invalid output schema field failure cause.
|
ValidationFailure |
withOutputSchemaField(String fieldName,
String outputPort)
Adds cause attributes that represents invalid output schema field failure cause.
|
ValidationFailure |
withPluginNotFound(String pluginId,
String pluginName,
String pluginType)
Adds cause attributes that represents plugin not found failure cause.
|
ValidationFailure |
withPluginNotFound(String pluginId,
String pluginName,
String pluginType,
ArtifactId requestedArtifact,
ArtifactId suggestedArtifact)
Adds cause attributes that represents plugin not found failure cause.
|
ValidationFailure |
withStacktrace(StackTraceElement[] stacktraceElements)
Adds cause attributes that represents a stacktrace.
|
public ValidationFailure(String message)
message - validation failure messagepublic ValidationFailure(String message, @Nullable String correctiveAction)
message - validation failure messagecorrectiveAction - corrective actionpublic ValidationFailure(String message, @Nullable String correctiveAction, @Nullable String stageName, Map<String,io.cdap.cdap.api.data.schema.Schema> inputSchemas)
message - validation failure messagecorrectiveAction - corrective actionstageName - stage nameinputSchemas - map of stage name to input schemaspublic ValidationFailure withCause(ValidationFailure.Cause cause)
cause - cause of validation failurepublic ValidationFailure withPluginNotFound(String pluginId, String pluginName, String pluginType)
pluginId - plugin idpluginName - plugin namepluginType - plugin typepublic ValidationFailure withPluginNotFound(String pluginId, String pluginName, String pluginType, @Nullable ArtifactId requestedArtifact, @Nullable ArtifactId suggestedArtifact)
pluginId - plugin idpluginName - plugin namepluginType - plugin typerequestedArtifact - requested artifactsuggestedArtifact - suggested artifactpublic ValidationFailure withConfigProperty(String stageConfigProperty)
stageConfigProperty - stage config propertypublic ValidationFailure withConfigElement(String stageConfigProperty, String element)
stageConfigProperty - stage config propertyelement - element in the list associated by a given stageConfigPropertypublic ValidationFailure withInputSchemaField(String fieldName, @Nullable String inputStage)
fieldName - name of the input schema fieldinputStage - stage namepublic ValidationFailure withInputSchemaField(String fieldName)
fieldName - name of the input schema fieldpublic ValidationFailure withOutputSchemaField(String fieldName, @Nullable String outputPort)
fieldName - name of the output schema fieldoutputPort - stage namepublic ValidationFailure withOutputSchemaField(String fieldName)
fieldName - name of the output schema fieldpublic ValidationFailure withStacktrace(StackTraceElement[] stacktraceElements)
stacktraceElements - stacktrace for the errorpublic String getMessage()
public String getFullMessage()
@Nullable public String getCorrectiveAction()
public List<ValidationFailure.Cause> getCauses()
Copyright © 2021 Cask Data, Inc. Licensed under the Apache License, Version 2.0.