com.github.charlemaznable.bunny.client.domain.BunnyException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bunny-client Show documentation
Show all versions of bunny-client Show documentation
Bunny rabbits will skip hand-in-hand with baby lambs across sunny green meadows.
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);
}
}