Coverage Report - org.codehaus.classworlds.ClassWorldException
 
Classes in this File Line Coverage Branch Coverage Complexity
ClassWorldException
0 %
0/7
N/A
1
 
 1  
 package org.codehaus.classworlds;
 2  
 
 3  
 /*
 4  
 
 5  
  Copyright 2002 (C) The Werken Company. All Rights Reserved.
 6  
 
 7  
  Redistribution and use of this software and associated documentation
 8  
  ("Software"), with or without modification, are permitted provided
 9  
  that the following conditions are met:
 10  
 
 11  
  1. Redistributions of source code must retain copyright
 12  
     statements and notices.  Redistributions must also contain a
 13  
     copy of this document.
 14  
 
 15  
  2. Redistributions in binary form must reproduce the
 16  
     above copyright notice, this list of conditions and the
 17  
     following disclaimer in the documentation and/or other
 18  
     materials provided with the distribution.
 19  
 
 20  
  3. The name "classworlds" must not be used to endorse or promote
 21  
     products derived from this Software without prior written
 22  
     permission of The Werken Company.  For written permission,
 23  
     please contact bob@werken.com.
 24  
 
 25  
  4. Products derived from this Software may not be called "classworlds"
 26  
     nor may "classworlds" appear in their names without prior written
 27  
     permission of The Werken Company. "classworlds" is a registered
 28  
     trademark of The Werken Company.
 29  
 
 30  
  5. Due credit should be given to The Werken Company.
 31  
     (http://classworlds.werken.com/).
 32  
 
 33  
  THIS SOFTWARE IS PROVIDED BY THE WERKEN COMPANY AND CONTRIBUTORS
 34  
  ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT
 35  
  NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
 36  
  FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL
 37  
  THE WERKEN COMPANY OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
 38  
  INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
 39  
  (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
 40  
  SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 41  
  HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
 42  
  STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 43  
  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
 44  
  OF THE POSSIBILITY OF SUCH DAMAGE.
 45  
 
 46  
  */
 47  
 
 48  
 /**
 49  
  * Base exception for <code>ClassWorld</code> errors.
 50  
  *
 51  
  * @author <a href="mailto:bob@eng.werken.com">bob mcwhirter</a>
 52  
  */
 53  
 @Deprecated
 54  
 public class ClassWorldException extends Exception
 55  
 {
 56  
     // ------------------------------------------------------------
 57  
     //     Instance members
 58  
     // ------------------------------------------------------------
 59  
 
 60  
     /**
 61  
      * The world.
 62  
      */
 63  
     private ClassWorld world;
 64  
 
 65  
     // ------------------------------------------------------------
 66  
     //     Constructors
 67  
     // ------------------------------------------------------------
 68  
 
 69  
     /**
 70  
      * Construct.
 71  
      *
 72  
      * @param world The world.
 73  
      */
 74  
     public ClassWorldException( final ClassWorld world )
 75  0
     {
 76  0
         this.world = world;
 77  0
     }
 78  
 
 79  
     /**
 80  
      * Construct.
 81  
      *
 82  
      * @param world The world.
 83  
      * @param msg   The detail message.
 84  
      */
 85  
     public ClassWorldException( final ClassWorld world, final String msg )
 86  
     {
 87  0
         super( msg );
 88  0
         this.world = world;
 89  0
     }
 90  
 
 91  
     // ------------------------------------------------------------
 92  
     //     Instance methods
 93  
     // ------------------------------------------------------------
 94  
 
 95  
     /**
 96  
      * Retrieve the world.
 97  
      *
 98  
      * @return The world.
 99  
      */
 100  
     public ClassWorld getWorld()
 101  
     {
 102  0
         return this.world;
 103  
     }
 104  
 }