| Package | Description |
|---|---|
| org.tinygroup.exception | |
| org.tinygroup.exception.util |
| Modifier and Type | Method and Description |
|---|---|
ErrorContext |
Result.getErrorContext()
Getter method for property errorContext.
|
static ErrorContext |
BaseCheckedException.getErrorContext(Throwable throwable) |
static ErrorContext |
BaseRuntimeException.getErrorContext(Throwable throwable) |
| Modifier and Type | Method and Description |
|---|---|
void |
Result.setErrorContext(ErrorContext errorContext)
Setter method for property errorContext.
|
| Constructor and Description |
|---|
Result(boolean success,
ErrorContext errorContext,
T resultObj)
构造函数。
|
| Modifier and Type | Method and Description |
|---|---|
static ErrorContext |
ErrorUtil.addError(Error error)
增加一个error到errorContext中
|
static ErrorContext |
ErrorUtil.addError(ErrorContext context,
Error error)
增加一个error到errorContext中
|
static ErrorContext |
ErrorUtil.makeAndAddError(AbstractErrorCode errorCode,
String message)
创建并且增加一个Error到新的errorContext中
|
static ErrorContext |
ErrorUtil.makeAndAddError(ErrorContext context,
ErrorCode errorCode,
String message)
创建并且增加一个Error到errorContext中
|
| Modifier and Type | Method and Description |
|---|---|
static ErrorContext |
ErrorUtil.addError(ErrorContext context,
Error error)
增加一个error到errorContext中
|
static ErrorContext |
ErrorUtil.makeAndAddError(ErrorContext context,
ErrorCode errorCode,
String message)
创建并且增加一个Error到errorContext中
|
Copyright © 2006–2018 TinyGroup. All rights reserved.