/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at legal-notices/CDDLv1_0.txt.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information:
* Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*
*
* Copyright 2008 Sun Microsystems, Inc.
*/
/**
* This exception is thrown when an attempt is made to add or modify a
* managed object when one or more of its mandatory properties are
* undefined.
*/
/**
* Serialization ID.
*/
// Create the message.
} else {
boolean isFirst = true;
if (!isFirst) {
}
isFirst = false;
}
.toMessage());
}
}
// The causes of this exception.
// Indicates whether the exception occurred during managed object
// creation.
private final boolean isCreate;
// The user friendly name of the component that caused this
// exception.
/**
* Creates a new missing mandatory properties exception with the
* provided causes.
*
* @param ufn
* The user friendly name of the component that caused this
* exception.
* @param causes
* The causes of this exception (must be non-<code>null</code>
* and non-empty).
* @param isCreate
* Indicates whether the exception occurred during managed
* object creation.
*/
super(createMessage(causes));
}
/**
* Gets the first exception that caused this exception.
*
* @return Returns the first exception that caused this exception.
*/
}
/**
* Gets an unmodifiable collection view of the causes of this
* exception.
*
* @return Returns an unmodifiable collection view of the causes of
* this exception.
*/
}
/**
* Gets the user friendly name of the component that caused this
* exception.
*
* @return Returns the user friendly name of the component that
* caused this exception.
*/
return ufn;
}
/**
* Indicates whether or not this exception was thrown during managed
* object creation or during modification.
*
* @return Returns <code>true</code> if this exception was thrown
* during managed object creation.
*/
public boolean isCreate() {
return isCreate;
}
}