/*
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.xwiki.security.authorization;
/**
* Raised when the authorization manager fails to register a new right for any reason.
*
* @version $Id: 49b274b9ee0d4e85fe6ac8023751e7872e694fd7 $
* @since 4.0M2
*/
public class UnableToRegisterRightException extends AuthorizationException
{
/** Serialization identifier. */
private static final long serialVersionUID = 1L;
/**
* @param right The right description of the right that fail to register.
* @param t A throwable of the detailed exception.
*/
public UnableToRegisterRightException(RightDescription right, Throwable t)
{
super(String.format("Unable to register right [%s].", right.getName()), t);
}
}