public class RedactionResult extends Object
Represents a result of the redaction operation.
Learn more
Modifier and Type | Method and Description |
---|---|
static RedactionResult |
failed(String description)
Initializes a new instance of RedactionResult class with Failed status.
|
String |
getErrorMessage()
Gets the error message for diagnostics.
|
RedactionStatus |
getStatus()
Gets the execution status.
|
static RedactionResult |
partial(String description)
Initializes a new instance of RedactionResult class with PartiallyApplied status.
|
static RedactionResult |
skipped(String description)
Initializes a new instance of RedactionResult class with Skipped status.
|
static RedactionResult |
successful()
Initializes a new instance of RedactionResult class with Applied (successful) status.
|
public final RedactionStatus getStatus()
Gets the execution status.
public final String getErrorMessage()
Gets the error message for diagnostics.
public static RedactionResult skipped(String description)
Initializes a new instance of RedactionResult class with Skipped status.
description
- Reason why the operation was skippedpublic static RedactionResult partial(String description)
Initializes a new instance of RedactionResult class with PartiallyApplied status.
description
- Reason why the operation was not fully appliedpublic static RedactionResult failed(String description)
Initializes a new instance of RedactionResult class with Failed status.
description
- Failure or exception detailspublic static RedactionResult successful()
Initializes a new instance of RedactionResult class with Applied (successful) status.