치명오류
2026년 8월 14일 09:30분
사사기 19장에서 레위인이 기브아에서 끔찍한 사건을 당합니다. 나는 복구 불가능한 치명적 예외가 전체 시스템 경보로 이어지는 패턴을 구현했습니다.
package com.jesusbornd.judges;
public class Judges_19_Chapter_Lv3 {
static class FatalIncident extends RuntimeException {
FatalIncident(String msg) { super(msg); }
}
static void process(String location) {
System.out.println("경로: 레위_기브아 경유 → " + location);
System.out.println("숙소 요청 중...");
throw new FatalIncident("기브아에서 치명적 폭력 발생 — 복구 불가");
}
public static void main(String[] args) {
try {
process("에브라임_본가");
} catch (FatalIncident e) {
System.out.println("❌ FATAL: " + e.getMessage());
System.out.println(" → 이스라엘 전체에 경보 발송");
}
}
}
import sys
class FatalIncident(RuntimeError):
pass
def process(location: str):
print(f"경로: 레위_기브아 경유 → {location}")
print("숙소 요청 중...")
raise FatalIncident("기브아에서 치명적 폭력 발생 — 복구 불가")
if __name__ == "__main__":
try:
process("에브라임_본가")
except FatalIncident as e:
print(f"❌ FATAL: {e}")
print(" → 이스라엘 전체에 경보 발송")
sys.exit(1)
Search
Categories
← 목록으로
Comments
치명적 오류는 즉시 전체 시스템에 알려야 더 큰 피해를 막을 수 있습니다.