类 ErrorResponse

  • 所有已实现的接口:
    Payload

    public class ErrorResponse
    extends Response
    UnKnowResponse.
    版本:
    $Id: UnKnowResponse.java, v 0.1 2020年07月16日 9:47 PM liuzunfei Exp $
    作者:
    liuzunfei
    • 构造器详细资料

      • ErrorResponse

        public ErrorResponse()
    • 方法详细资料

      • build

        public static Response build​(int errorCode,
                                     java.lang.String msg)
        build an error response.
        参数:
        errorCode - errorCode
        msg - msg
        返回:
        response
      • build

        public static Response build​(java.lang.Throwable exception)
        build an error response.
        参数:
        exception - exception
        返回:
        response