| 程序包 | 说明 |
|---|---|
| com.github.anonymousmister.abnormal | |
| com.github.anonymousmister.result |
| 构造器和说明 |
|---|
ServiceException(ResultCode resultCode)
Constructs a new runtime exception with
null as its
detail message. |
ServiceException(ResultCode resultCode,
String message)
Constructs a new runtime exception with the specified detail message.
|
ServiceException(ResultCode resultCode,
String message,
Throwable cause)
Constructs a new runtime exception with the specified detail message and
cause.
|
ServiceException(ResultCode resultCode,
String message,
Throwable cause,
boolean enableSuppression,
boolean writableStackTrace)
Constructs a new runtime exception with the specified detail
message, cause, suppression enabled or disabled, and writable
stack trace enabled or disabled.
|
ServiceException(ResultCode resultCode,
Throwable cause)
Constructs a new runtime exception with the specified cause and a
detail message of (cause==null ?
|
ServiceRuntimeException(ResultCode resultCode)
Constructs a new runtime exception with
null as its
detail message. |
ServiceRuntimeException(ResultCode resultCode,
String message)
Constructs a new runtime exception with the specified detail message.
|
ServiceRuntimeException(ResultCode resultCode,
String message,
Throwable cause)
Constructs a new runtime exception with the specified detail message and
cause.
|
ServiceRuntimeException(ResultCode resultCode,
String message,
Throwable cause,
boolean enableSuppression,
boolean writableStackTrace)
Constructs a new runtime exception with the specified detail
message, cause, suppression enabled or disabled, and writable
stack trace enabled or disabled.
|
ServiceRuntimeException(ResultCode resultCode,
Throwable cause)
Constructs a new runtime exception with the specified cause and a
detail message of (cause==null ?
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
ResultCodeEnum |
| 限定符和类型 | 方法和说明 |
|---|---|
static <R> Result<R> |
Result.ofFail(ResultCode resultCode) |
static <R> Result<R> |
Result.ofFail(ResultCode resultCode,
R data) |
static <R> Result<R> |
Result.ofSuccess(ResultCode resultCode,
R data) |
static <R> Result<R> |
Result.ofSuccessMsg(ResultCode resultCode) |
Copyright © 2019. All rights reserved.