public static Result fail(final Throwable throwable) {
        return new Result(false, true, throwable.getMessage(), SampleFamily.EMPTY);
    }
fail is a static factory method builds failed result based on {@link Throwable}.

@param throwable to build failed result.
@return failed result.
oap-server/analyzer/meter-analyzer/src/main/java/org/apache/skywalking/oap/meter/analyzer/dsl/Result.java