public class ErrorException extends RuntimeException
| 构造器和说明 |
|---|
ErrorException(ErrorCodeEnum codeEnum,
String message) |
ErrorException(String code,
String message) |
ErrorException(String code,
String message,
Throwable cause) |
| 限定符和类型 | 方法和说明 |
|---|---|
static ErrorException |
from(ErrorCodeEnum errorCodeEnum)
ErrorException.
|
static ErrorException |
from(ErrorCodeEnum errorCodeEnum,
String message)
ErrorException.
|
static ErrorException |
from(ErrorCodeEnum errorCodeEnum,
String message,
Throwable cause)
ErrorException.
|
static ErrorException |
from(ErrorCodeEnum errorCodeEnum,
Throwable cause)
ErrorException.
|
static ErrorException |
from(String code)
ErrorException.
|
static ErrorException |
from(String code,
Throwable cause)
ErrorException.
|
String |
getCode() |
static String |
getFullStackTrace(Throwable throwable)
getFullStackTrace.
|
Integer |
getStatusCode() |
static ErrorException |
invalid(am.ik.yavi.core.ConstraintViolations violations)
ErrorException.
|
static ErrorException |
invalid(List<am.ik.yavi.core.ConstraintViolation> violations)
ErrorException.
|
public ErrorException(ErrorCodeEnum codeEnum, String message)
public String getCode()
public Integer getStatusCode()
public static ErrorException from(ErrorCodeEnum errorCodeEnum)
errorCodeEnum - errcodepublic static ErrorException from(String code, Throwable cause)
code - errcodecause - 原因public static ErrorException from(ErrorCodeEnum errorCodeEnum, String message)
errorCodeEnum - errcodemessage - 消息public static ErrorException from(ErrorCodeEnum errorCodeEnum, Throwable cause)
errorCodeEnum - errcodecause - 原因public static ErrorException from(ErrorCodeEnum errorCodeEnum, String message, Throwable cause)
errorCodeEnum - errcodemessage - 消息cause - 原因public static ErrorException from(String code)
code - errcodepublic static ErrorException invalid(List<am.ik.yavi.core.ConstraintViolation> violations)
violations - violationspublic static ErrorException invalid(am.ik.yavi.core.ConstraintViolations violations)
violations - violationsCopyright © 2022. All rights reserved.