File: ForbiddenClassException.java

package info (click to toggle)
activemq 5.6.0%2Bdfsg-1%2Bdeb7u2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 36,352 kB
  • sloc: java: 280,223; xml: 12,475; jsp: 1,352; sh: 805; ruby: 114; makefile: 11
file content (27 lines) | stat: -rw-r--r-- 617 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
 * Copyright (C) 2014 XStream Committers.
 * All rights reserved.
 *
 * Created on 08. January 2014 by Joerg Schaible
 */
package com.thoughtworks.xstream.security;

import com.thoughtworks.xstream.XStreamException;

/**
 * Exception thrown for a forbidden class.
 * 
 * @author Jörg Schaible
 * @since 1.4.7
 */
public class ForbiddenClassException extends XStreamException {

    /**
     * Construct a ForbiddenClassException.
     * @param type the forbidden class
     * @since 1.4.7
     */
    public ForbiddenClassException(Class type) {
        super(type == null ? "null" : type.getName());
    }
}