public static Result fail(String message) {
        return new Result(false, false, message, SampleFamily.EMPTY);
    }
fail is a static factory method builds failed result based on error message.

@param message is the error details why the result is failed.
@return failed result.
oap-server/analyzer/meter-analyzer/src/main/java/org/apache/skywalking/oap/meter/analyzer/dsl/Result.java