ForbiddenClassException.java
/*
* Copyright (C) 2014, 2018, 2021 XStream Committers.
* All rights reserved.
*
* Created on 08. January 2014 by Joerg Schaible
*/
package com.thoughtworks.xstream.security;
/**
* Exception thrown for a forbidden class.
*
* @author Jörg Schaible
* @since 1.4.7
*/
public class ForbiddenClassException extends AbstractSecurityException {
private static final long serialVersionUID = 10407L;
/**
* Construct a ForbiddenClassException.
* @param type the forbidden class
* @since 1.4.7
*/
public ForbiddenClassException(final Class<?> type) {
super(type == null ? "null" : type.getName());
}
}