| 程序包 | 说明 |
|---|---|
| com.csicit.ace.common.exception | |
| com.csicit.ace.common.utils | |
| com.csicit.ace.common.utils.server |
| 限定符和类型 | 方法和说明 |
|---|---|
R |
RExceptionHandler.handleDataIntegrityViolationException(org.springframework.dao.DataIntegrityViolationException e) |
R |
RExceptionHandler.handleDuplicateKeyException(org.springframework.dao.DuplicateKeyException e) |
R |
RExceptionHandler.handleException(Exception e) |
R |
RExceptionHandler.handleNullPointerException(NullPointerException e) |
R |
RExceptionHandler.handleRException(RException e)
处理自定义异常
|
R |
RExceptionHandler.handlerNoFoundException(Exception e) |
| 限定符和类型 | 方法和说明 |
|---|---|
static R |
RestUtils.notify(String api,
Object object)
通知API
|
| 限定符和类型 | 方法和说明 |
|---|---|
static Boolean |
RUtils.isSucceed(R r)
返回结果是否成功
|
| 限定符和类型 | 方法和说明 |
|---|---|
static R |
R.error() |
static R |
R.error(int code,
String msg) |
static R |
R.error(String msg) |
static R |
R.errorWithCode(int code,
String error) |
static R |
R.errorWithException(int code,
String msg,
String exception) |
static R |
R.errorWithException(String exception) |
static R |
R.errorWithException(String msg,
String exception) |
static R |
R.ok() |
static R |
R.ok(Map<String,Object> map) |
static R |
R.ok(String msg) |
R |
R.put(String key,
Object value) |
Copyright © 2019-Now–2020. All rights reserved.