001package gudusoft.gsqlparser.ir.semantic;
002
003/**
004 * Severity level for a {@link Diagnostic} emitted by the SemanticIR
005 * builder.
006 *
007 * <p>Slice 67 introduces {@link #ERROR} only; every existing reject in
008 * {@code SemanticIRBuilder} routes through it. {@link #WARN} is
009 * reserved for future slices that need to surface non-blocking
010 * advisories (e.g. NATURAL JOIN with empty intersection,
011 * sensitive-column lints) without throwing.
012 *
013 * <p><b>API status: supported discriminator.</b> New values may be added;
014 * consumer switches should retain a default branch.
015 */
016public enum Severity {
017    /** The builder cannot continue. The diagnostic is fatal. */
018    ERROR,
019    /**
020     * The builder can continue, but the diagnostic flags a notable
021     * shape. Unused in slice 67; reserved for slice 68+.
022     */
023    WARN
024}