package io.cattle.platform.util.exception;

public class InstanceException extends IllegalStateException {
    private static final long serialVersionUID = 4868400759427367403L;

    Object instance;

    public InstanceException() {
        super();
    }

    public InstanceException(String message, Throwable cause, Object instance) {
        super(message + ": " + cause.getMessage());
        this.instance = instance;
    }

    public InstanceException(String message, Object instance) {
        super(message);
        this.instance = instance;
    }

    public Object getInstance() {
        return instance;
    }
}

@@ -37,16 +37,42 @@
 ption;%0A%0A
+import org.slf4j.Logger;%0A%0A
 public c
@@ -124,16 +124,45 @@
 ception 
+implements LoggableException 
 %7B%0A    pr
@@ -673,11 +673,104 @@
 e;%0A    %7D
+%0A%0A    @Override%0A    public void log(Logger log) %7B%0A        log.error(this.getMessage());%0A    %7D
 %0A%7D%0A

Make InstanceException a LoggableException