KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ltk > internal > core > refactoring > AssertionFailedException


1 /*******************************************************************************
2  * Copyright (c) 2000, 2004 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.ltk.internal.core.refactoring;
12
13 /**
14  * <code>AssertionFailedException</code> is a runtime exception thrown
15  * by some of the methods in <code>Assert</code>.
16  * <p>
17  * This class is not declared public to prevent some misuses; programs that catch
18  * or otherwise depend on assertion failures are susceptible to unexpected
19  * breakage when assertions in the code are added or removed.
20  * </p>
21  */

22 /* package */
23 class AssertionFailedException extends RuntimeException JavaDoc {
24     
25     /** This class is not intended to be serialized. */
26     private static final long serialVersionUID= 1L;
27     
28     /**
29      * Constructs a new exception.
30      */

31     public AssertionFailedException() {
32         super();
33     }
34     /**
35      * Constructs a new exception with the given message.
36      *
37      * @param detail the detailed message
38      */

39     public AssertionFailedException(String JavaDoc detail) {
40         super(detail);
41     }
42 }
43
Popular Tags