KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > core > internal > dependencies > 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 Common Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/cpl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

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

23 /* package */
24 class AssertionFailedException extends RuntimeException JavaDoc {
25     /** Constructs a new exception.
26      */

27     public AssertionFailedException() {
28         super();
29     }
30
31     /** Constructs a new exception with the given message.
32      */

33     public AssertionFailedException(String JavaDoc detail) {
34         super(detail);
35     }
36 }
Popular Tags