Class OnDetailed

  • All Implemented Interfaces:
    Supplier<String>, ObjectName

    public final class OnDetailed
    extends Object
    implements ObjectName
    Object name, with more detailed error message. Object name that catches and re-throws an exception if original one fails. If ObjectName throw an exception, this object catches it, and executes supplied procedure.
    Since:
    0.56.5
    • Constructor Detail

      • OnDetailed

        public OnDetailed​(ObjectName orgn,
                          Path source)
        Ctor.
        Parameters:
        orgn - Origin
        source - Program source path
      • OnDetailed

        public OnDetailed​(ObjectName orgn,
                          org.cactoos.Proc<Exception> fail)
        Ctor.
        Parameters:
        orgn - Origin
        fail - If fails
      • OnDetailed

        public OnDetailed​(ObjectName orgn,
                          org.cactoos.proc.UncheckedProc<Exception> fail)
        Ctor.
        Parameters:
        orgn - Origin
        fail - If fails