Class ProcessFailure
java.lang.Object
com.smartgwt.client.core.JsObject
com.smartgwt.client.core.DataClass
com.smartgwt.client.util.workflow.ProcessFailure
- All Implemented Interfaces:
HasHandlers
Shape of the infrastructure-failure record delivered to
Process.failed() and (for CoTProcess) via the async operation's failure result. Recoverable, schema-conformant errors do NOT use this type; they live inside the Process's successful output (see ProcessIO).-
Field Summary
Fields inherited from class com.smartgwt.client.core.DataClass
factoryCreated, factoryProperties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCause()Optional underlying exception or nested failure.getCode()Short symbolic identifier.Map[]Optional list of field-level validation errors, populated forinputValidation/outputValidation.Human-readable description.static ProcessFailuregetOrCreateRef(JavaScriptObject jsObj) Optional underlying exception or nested failure.Short symbolic identifier.Optional list of field-level validation errors, populated forinputValidation/outputValidation.setMessage(String message) Human-readable description.Methods inherited from class com.smartgwt.client.core.DataClass
applyFactoryProperties, doAddHandler, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsDoubleArray, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getAttributes, getHandlerCount, isFactoryCreated, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeAsJavaObject, setFactoryCreated
-
Constructor Details
-
ProcessFailure
public ProcessFailure() -
ProcessFailure
-
-
Method Details
-
getOrCreateRef
-
setCause
Optional underlying exception or nested failure.- Parameters:
cause- New cause value. Default value is null- Returns:
ProcessFailureinstance, for chaining setter calls
-
getCause
Optional underlying exception or nested failure.- Returns:
- Current cause value. Default value is null
-
setCode
Short symbolic identifier. Built-in values:"inputValidation","outputValidation","aiUnavailable","internalError","cancelled","reentry","timeout". Applications may add their own.- Parameters:
code- New code value. Default value is null- Returns:
ProcessFailureinstance, for chaining setter calls
-
getCode
Short symbolic identifier. Built-in values:"inputValidation","outputValidation","aiUnavailable","internalError","cancelled","reentry","timeout". Applications may add their own.- Returns:
- Current code value. Default value is null
-
setErrors
Optional list of field-level validation errors, populated forinputValidation/outputValidation.- Parameters:
errors- New errors value. Default value is null- Returns:
ProcessFailureinstance, for chaining setter calls
-
getErrors
Optional list of field-level validation errors, populated forinputValidation/outputValidation.- Returns:
- Current errors value. Default value is null
-
setMessage
Human-readable description.- Parameters:
message- New message value. Default value is null- Returns:
ProcessFailureinstance, for chaining setter calls
-
getMessage
Human-readable description.- Returns:
- Current message value. Default value is null
-