Package org.egothor.methodatlas.command
Class RedactionAbortedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.egothor.methodatlas.command.RedactionAbortedException
- All Implemented Interfaces:
Serializable
Thrown when
-redact-comments is active and comment redaction cannot
be guaranteed for a source file, so the run must abort before any source is
sent to an AI provider (fail-closed).
Typical causes are a scanned language with no registered
CommentRedactor, or a redactor that
reports it cannot redact the given text.
- Since:
- 4.1.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRedactionAbortedException(String message) Creates the exception.RedactionAbortedException(String message, Throwable cause) Creates the exception with a cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RedactionAbortedException
Creates the exception.- Parameters:
message- operator-facing reason, naming the file and language
-
RedactionAbortedException
Creates the exception with a cause.- Parameters:
message- operator-facing reason, naming the file and languagecause- the underlying redaction failure; may benull
-