| 123456789101112131415161718192021222324 |
- package cn.seecoder.bok.client;
- /**
- * @author Kunduin
- */
- public class SeecoderBokException extends RuntimeException {
- private final int code;
- public SeecoderBokException(String message, int code) {
- super(message);
- this.code = code;
- }
- public int getCode() {
- return code;
- }
- public static SeecoderBokException JSON_EXCEPTION = new SeecoderBokException("JSON exception", 101);
- public static SeecoderBokException IO_EXCEPTION = new SeecoderBokException("IO exception", 102);
- public static SeecoderBokException UNWRAP_EXCEPTION = new SeecoderBokException("Return false", 102);
- }
|