Class RedactionAbortedException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.egothor.methodatlas.command.RedactionAbortedException
All Implemented Interfaces:
Serializable

public final class RedactionAbortedException extends RuntimeException
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 Details

    • RedactionAbortedException

      public RedactionAbortedException(String message)
      Creates the exception.
      Parameters:
      message - operator-facing reason, naming the file and language
    • RedactionAbortedException

      public RedactionAbortedException(String message, Throwable cause)
      Creates the exception with a cause.
      Parameters:
      message - operator-facing reason, naming the file and language
      cause - the underlying redaction failure; may be null