Class Try

  • All Implemented Interfaces:
    Catchable

    @NullMarked
    public class Try
    extends AbstractLoggable
    implements Catchable
    A try/catch chain without any expected result
    Since:
    0.2
    • Method Detail

      • elseThrow

        public void elseThrow()
        Throws exception if present.
      • elseCatch

        public Try elseCatch​(java.util.function.Consumer<IgnorableMappingException> exceptionConsumer)
        Consume exception if present.
        Parameters:
        exceptionConsumer - The consumer to be executed with the exception