Example usage for javax.xml.bind TypeConstraintException TypeConstraintException

List of usage examples for javax.xml.bind TypeConstraintException TypeConstraintException

Introduction

In this page you can find the example usage for javax.xml.bind TypeConstraintException TypeConstraintException.

Prototype

public TypeConstraintException(Throwable exception) 

Source Link

Document

Construct a TypeConstraintException with a linkedException.

Usage

From source file:org.openbaton.catalogue.mano.descriptor.VirtualNetworkFunctionDescriptor.java

@Override
public void setConnection_point(Set<ConnectionPoint> connection_point) {
    for (ConnectionPoint cp : connection_point)
        if (!(cp instanceof VNFDConnectionPoint))
            throw new TypeConstraintException("Connection Point " + cp.getId()
                    + " field must be an instance of " + ConnectionPoint.class.getCanonicalName());
    this.connection_point = connection_point;
}