• state_electrician@discuss.tchncs.de
    link
    fedilink
    arrow-up
    0
    ·
    2 months ago

    The exception is part of the method signature and thus part of the return value. I don’t see a difference between using if or try-catch to validate a method call.