![JAR search and dependency download from the Maven repository](/logo.png)
com.vmware.vcloud.api.rest.client.LinkException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vcd-api-client-java Show documentation
Show all versions of vcd-api-client-java Show documentation
REST API Client for vCloud Director
/* **********************************************************************
* api-extension-template-vcloud-director
* Copyright 2018 VMware, Inc.
* SPDX-License-Identifier: BSD-2-Clause
* *********************************************************************/
package com.vmware.vcloud.api.rest.client;
import com.vmware.vcloud.api.rest.links.LinkRelation;
/**
* Base class for exceptions related to operations on <link> elements in responses.
*/
public abstract class LinkException extends RuntimeException {
private static final long serialVersionUID = 1L;
private final String href;
private final LinkRelation rel;
private final String mediaType;
protected LinkException(String href, LinkRelation rel, String mediaType) {
this.href = href;
this.rel = rel;
this.mediaType = mediaType;
}
public LinkRelation getRel() {
return rel;
}
public String getMediaType() {
return mediaType;
}
@Override
public String toString() {
return String.format("%s; href: %s, rel: %s, mediaType: %s", super.toString(), href, rel, mediaType);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy