Enum Class的使用
com.alibaba.ageiport.common.constants.HttpStatus
使用HttpStatus的程序包
-
com.alibaba.ageiport.common.constants中HttpStatus的使用
修饰符和类型方法说明static HttpStatusHttpStatus.resolve(int statusCode) Resolve the given status code to anHttpStatus, if possible.static HttpStatusHttpStatus.valueOf(int statusCode) Return the enum constant of this type with the specified numeric value.static HttpStatusReturns the enum constant of this class with the specified name.static HttpStatus[]HttpStatus.values()Returns an array containing the constants of this enum class, in the order they are declared.修饰符和类型方法说明static HttpStatus.SeriesHttpStatus.Series.valueOf(HttpStatus status) Returns the enum constant of this class with the specified name. -
com.alibaba.ageiport.common.exception中HttpStatus的使用
限定符构造器说明AbstractStandardException(HttpStatus httpStatus) AbstractStandardException(BizCode code, Throwable e, HttpStatus httpStatus) AbstractStandardException(BizCode bizCode, Throwable e, HttpStatus httpStatus, Object... userMessageParams) AbstractStandardException(String message, HttpStatus httpStatus) AbstractStandardException(String message, BizCode bizCode, Throwable e, HttpStatus httpStatus) AbstractStandardException(String message, Throwable e, HttpStatus httpStatus) AbstractStandardException(Throwable e, HttpStatus httpStatus)