package com.johnnywey.flipside.marker;

import com.johnnywey.flipside.failable.Fail;

/**
 * Signal that an operation did not work. Contains the {@link com.johnnywey.flipside.option.failable.Failed} instance
 * for interrogation.
 */
public class DidNotWork implements DidItWork {
    private final Fail failure;
    private final String reason;

    public DidNotWork(Fail failure, String reason) {
        this.failure = failure;
        this.reason = reason;
    }

    @Override
    public Fail getReason() {
        return failure;
    }

    @Override
    public String getDetail() {
        return reason;
    }

    @Override
    public Boolean isSuccess() {
        return false;
    }
}


package com.johnnywey.flipside.marker;

import com.johnnywey.flipside.failable.Fail;

/**
 * Signal that an operation did not work. Contains the {@link com.johnnywey.flipside.failable.Failed} instance
 * for interrogation.
 */
public class DidNotWork implements DidItWork {
    private final Fail failure;
    private final String reason;

    public DidNotWork(Fail failure, String reason) {
        this.failure = failure;
        this.reason = reason;
    }

    @Override
    public Fail getReason() {
        return failure;
    }

    @Override
    public String getDetail() {
        return reason;
    }

    @Override
    public Boolean isSuccess() {
        return false;
    }
}


Fix typo