@@ -0,0 +1,1050 @@
+/******************************************************************%0A * File:        SecurityViolationException.java%0A * Created by:  Dave Reynolds%0A * Created on:  1 May 2016%0A * %0A * (c) Copyright 2016, Epimorphics Limited%0A *%0A *****************************************************************/%0A%0Apackage com.epimorphics.appbase.security;%0A%0Aimport com.epimorphics.appbase.security.UserInfo;%0A%0A/**%0A * Exception use to signal a problem with the%0A * @author %3Ca href=%22mailto:dave@epimorphics.com%22%3EDave Reynolds%3C/a%3E%0A */%0Apublic class SecurityViolationException extends RuntimeException %7B%0A    private static final long serialVersionUID = -3628367907309661615L;%0A%0A    protected String permission;%0A    protected UserInfo user;%0A    %0A    public SecurityViolationException(String permission, UserInfo user) %7B%0A        super(%22Permission denied for %22 + permission);%0A        this.user = user;%0A        this.permission = permission;%0A    %7D%0A%0A    public String getPermission() %7B%0A        return permission;%0A    %7D%0A%0A    public UserInfo getUser() %7B%0A        return user;%0A    %7D%0A%0A    %0A%7D%0A

Add convenience exception for security handling