001    // Copyright 2010 Waterken Inc. under the terms of the MIT X license found at
002    // http://www.opensource.org/licenses/mit-license.html
003    package org.ref_send.scope;
004    
005    import org.joe_e.Powerless;
006    import org.ref_send.deserializer;
007    import org.ref_send.name;
008    
009    /**
010     * Signals use of an unavailable name.
011     */
012    public class Unavailable extends RuntimeException implements Powerless {
013        static private final long serialVersionUID = 1L;
014    
015        /**
016         * name that is unavailable
017         */
018        public final String name;
019    
020        /**
021         * Constructs an instance.
022         * @param name  {@link #name}
023         */
024        public @deserializer
025        Unavailable(@name("name") final String name) {
026          this.name = name;
027        }
028    }