public class AppError extends Object
平台标准错误信息使用子类
估计没机会删除,留着吧;移除过时标记Deprecated,看着难受
| 构造器和说明 |
|---|
AppError() |
AppError(int code,
String message) |
AppError(int code,
String message,
String path) |
AppError(String message) |
AppError(String message,
String path) |
| 限定符和类型 | 方法和说明 |
|---|---|
Integer |
getCode() |
String |
getMessage() |
String |
getPath() |
Boolean |
getSuccess() |
LocalDateTime |
getTimestamp() |
static AppError |
of(int code,
String message) |
static AppError |
of(int code,
String message,
String path) |
static AppError |
of(String message) |
static AppError |
of(String message,
String path) |
void |
setCode(Integer code) |
void |
setMessage(String message) |
void |
setPath(String path) |
void |
setSuccess(Boolean success) |
void |
setTimestamp(LocalDateTime timestamp) |
public AppError()
public AppError(String message)
public AppError(int code,
String message)
public LocalDateTime getTimestamp()
public void setTimestamp(LocalDateTime timestamp)
public Integer getCode()
public void setCode(Integer code)
public String getMessage()
public void setMessage(String message)
public String getPath()
public void setPath(String path)
public Boolean getSuccess()
public void setSuccess(Boolean success)
Copyright © 2024. All rights reserved.