/**
 *
 */
package org.commcare.resources.model;

/**
 * @author ctsims
 */
public class UnresolvedResourceException extends Exception {
    final Resource r;
    final boolean userFacing;

    public UnresolvedResourceException(Resource r, String message) {
        this(r, message, false);
    }

    public UnresolvedResourceException(Resource r, String message, boolean userFacing) {
        super(message);
        this.r = r;
        this.userFacing = userFacing;
    }

    public Resource getResource() {
        return r;
    }

    public boolean isMessageUseful() {
        return userFacing;
    }
}

@@ -462,32 +462,234 @@
 rFacing;%0A    %7D%0A%0A
+    public UnresolvedResourceException(Resource r, Throwable cause, String message, boolean userFacing) %7B%0A        super(message, cause);%0A        this.r = r;%0A        this.userFacing = userFacing;%0A    %7D%0A%0A
     public Resou

enable setting cause of UnresolvedResourceException