* Constructs an instance with the given RpcErrors.
*/
public RestconfDocumentedException(final String message, final Throwable cause,
- final Collection<RpcError> rpcErrors) {
+ final Collection<? extends RpcError> rpcErrors) {
this(message, cause, convertToRestconfErrors(rpcErrors));
}
status = null;
}
- private static List<RestconfError> convertToRestconfErrors(final Collection<RpcError> rpcErrors) {
+ private static List<RestconfError> convertToRestconfErrors(final Collection<? extends RpcError> rpcErrors) {
final List<RestconfError> errorList = Lists.newArrayList();
if (rpcErrors != null) {
for (RpcError rpcError : rpcErrors) {