001    /*
002     * Copyright (C) 2014 XStream Committers.
003     * All rights reserved.
004     *
005     * Created on 08. January 2014 by Joerg Schaible
006     */
007    package com.thoughtworks.xstream.security;
008    
009    import com.thoughtworks.xstream.XStreamException;
010    
011    /**
012     * Exception thrown for a forbidden class.
013     * 
014     * @author Jörg Schaible
015     * @since 1.4.7
016     */
017    public class ForbiddenClassException extends XStreamException {
018    
019        /**
020         * Construct a ForbiddenClassException.
021         * @param type the forbidden class
022         * @since 1.4.7
023         */
024        public ForbiddenClassException(Class type) {
025            super(type == null ? "null" : type.getName());
026        }
027    }