public class ServiceException extends RuntimeException
| Modifier and Type | Field and Description |
|---|---|
private int |
code |
private static long |
serialVersionUID |
| Constructor and Description |
|---|
ServiceException(int code,
String message) |
ServiceException(int code,
String message,
Throwable exception) |
ServiceException(Result bean) |
ServiceException(String msg,
Throwable e) |
ServiceException(String message,
Throwable cause,
boolean enableSuppression,
boolean writableStackTrace) |
| Modifier and Type | Method and Description |
|---|---|
static ServiceException |
BadRequsetException(String message,
Throwable cause) |
int |
getCode() |
ServiceException |
setCode(int code) |
static ServiceException |
UnknownException(String message,
Throwable cause) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringprivate static final long serialVersionUID
private int code
public ServiceException(Result bean)
public ServiceException(int code,
String message)
public static ServiceException UnknownException(String message, Throwable cause)
public static ServiceException BadRequsetException(String message, Throwable cause)
public int getCode()
public ServiceException setCode(int code)
Copyright © 2020. All rights reserved.