类的使用
cn.herodotus.stirrup.core.definition.domain.Result
使用Result的程序包
-
cn.herodotus.stirrup.core.definition.domain中Result的使用
修饰符和类型方法说明Result.code(int code) static <T> Result<T> Result.content(T data) static <T> Result<T> Result.empty()static <T> Result<T> static <T> Result<T> static <T> Result<T> static <T> Result<T> static <T> Result<T> Result.failure()static <T> Result<T> static <T> Result<T> static <T> Result<T> static <T> Result<T> static <T> Result<T> static <T> Result<T> Result.failure(String message, String detail, int code, int status, T data, StackTraceElement[] stackTrace) static <T> Result<T> static <T> Result<T> Result.stackTrace(StackTraceElement[] stackTrace) Result.status(int httpStatus) static <T> Result<T> Result.success()static <T> Result<T> static <T> Result<T> static <T> Result<T> static <T> Result<T> Result.validation(String message, String code, String field) -
cn.herodotus.stirrup.core.definition.exception中Result的使用