package com.cloud.exception;

public class NicPreparationException extends InsufficientCapacityException {

    public NicPreparationException(final String message, final Throwable cause) {
        super(message, cause);
    }

    public NicPreparationException(final String message) {
        super(message, null);
    }
}

@@ -23,16 +23,42 @@
 ption;%0A%0A
+import com.cloud.vm.Nic;%0A%0A
 public c
@@ -333,12 +333,21 @@
 ge, 
-null
+Nic.class, 0L
 );%0A 

Set InsufficientCapacityException scope for NicPreparationException to Nic.class