All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.charlemaznable.bunny.client.domain.BunnyException Maven / Gradle / Ivy

Go to download

Bunny rabbits will skip hand-in-hand with baby lambs across sunny green meadows.

There is a newer version: 2023.0.4
Show newest version
package com.github.charlemaznable.bunny.client.domain;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.experimental.Accessors;

import static com.github.charlemaznable.core.codec.Json.jsonOf;

@AllArgsConstructor
@Getter
@Accessors(fluent = true)
public class BunnyException extends RuntimeException {

    private static final long serialVersionUID = -2780989237523433110L;
    private final String respCode; // 错误编码
    private final String respDesc; // 错误描述

    @Override
    public String getMessage() {
        return jsonOf("respCode", respCode, "respDesc", respDesc);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy