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 */ 013public enum Severity { 014 /** The builder cannot continue. The diagnostic is fatal. */ 015 ERROR, 016 /** 017 * The builder can continue, but the diagnostic flags a notable 018 * shape. Unused in slice 67; reserved for slice 68+. 019 */ 020 WARN 021}