Package in.hocg.boot.utils.struct.result
Class ExceptionResult<T>
- java.lang.Object
-
- in.hocg.boot.utils.struct.result.Result<T>
-
- in.hocg.boot.utils.struct.result.ExceptionResult<T>
-
- All Implemented Interfaces:
Serializable
public class ExceptionResult<T> extends Result<T>
Created by hocgin on 2020/8/15 email: hocgin@gmail.com- Author:
- hocgin
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ExceptionResult()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> ExceptionResult<T>fail(Integer status, Exception e)static <T> ExceptionResult<T>fail(Integer status, String message)static <T> ExceptionResult<T>fail(Integer status, String message, String exception)
-
-
-
Method Detail
-
fail
public static <T> ExceptionResult<T> fail(Integer status, String message)
-
fail
public static <T> ExceptionResult<T> fail(Integer status, Exception e)
-
fail
public static <T> ExceptionResult<T> fail(Integer status, String message, String exception)
-
-