com.geotab.http.exception.RelationViolatedException Maven / Gradle / Ivy
/*
*
* 2020 Copyright (C) Geotab Inc. All rights reserved.
*/
package com.geotab.http.exception;
/**
* If removing an entity would cause a relationship exception then this exception is thrown.
*/
public class RelationViolatedException extends JsonRpcErrorDataException {
/**
* Initializes a new instance.
*/
public RelationViolatedException() {
this(null);
}
/**
* Initializes a new instance.
*
* @param innerException The inner exception.
*/
public RelationViolatedException(Exception innerException) {
super(
innerException != null && innerException.getMessage() != null ? innerException.getMessage()
: "",
innerException
);
}
}