com.geotab.http.exception.JsonRpcErrorDataException Maven / Gradle / Ivy
/*
*
* 2020 Copyright (C) Geotab Inc. All rights reserved.
*/
package com.geotab.http.exception;
import com.geotab.model.error.JsonRpcErrorData;
import lombok.Getter;
import lombok.Setter;
/**
* Base exception class which can hold json rpc error data returned by the server.
*/
public abstract class JsonRpcErrorDataException extends Exception {
@Getter
@Setter
protected JsonRpcErrorData errorData;
public JsonRpcErrorDataException() {
}
public JsonRpcErrorDataException(String message) {
super(message);
}
public JsonRpcErrorDataException(String message, Throwable cause) {
super(message, cause);
}
public JsonRpcErrorDataException(Throwable cause) {
super(cause);
}
public JsonRpcErrorDataException(String message, Throwable cause, boolean enableSuppression,
boolean writableStackTrace) {
super(message, cause, enableSuppression, writableStackTrace);
}
}