예외규정

2026년 3월 16일 10:29분

package com.jesusbornd.leviticus;

public class Leviticus_10_Chapter_Lv2 {

    public static class ForbiddenFireException extends RuntimeException {
        public ForbiddenFireException(String msg) { super(msg); }
    }

    public static void offer(boolean authorized) {
        if (!authorized) throw new ForbiddenFireException("다른 불 / Strange fire");
        System.out.println("허용 / Authorized");
    }

    public static void main(String[] args) {
        try {
            offer(false);
        } catch (ForbiddenFireException e) {
            System.out.println("예외 / Exception: " + e.getMessage());
        }
    }
}

package com.jesusbornd.leviticus;

public class Leviticus_10_Chapter_Lv2 {

    public static class ForbiddenFireException extends RuntimeException {
        public ForbiddenFireException(String msg) { super(msg); }
    }

    public static void offer(boolean authorized) {
        if (!authorized) throw new ForbiddenFireException("다른 불 / Strange fire");
        System.out.println("허용 / Authorized");
    }

    public static void main(String[] args) {
        try {
            offer(false);
        } catch (ForbiddenFireException e) {
            System.out.println("예외 / Exception: " + e.getMessage());
        }
    }
}

Comments

Avatar
 2026년 3월 16일 10:30분

“다른 불”이 바로 예외로 처리되는 부분이 인상적입니다. 신앙은 내 방식의 열심보다, 하나님이 원하시는 거룩한 기준이 더 중요하다는 메시지가 떠오릅니다.



Search

← 목록으로