| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| WidgetNotFoundException |
|
| 1.0;1 |
| 1 | /******************************************************************************* | |
| 2 | * Copyright (c) 2008 Ketan Padegaonkar 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 | * Ketan Padegaonkar - initial API and implementation | |
| 10 | *******************************************************************************/ | |
| 11 | package org.eclipse.swtbot.swt.finder.exceptions; | |
| 12 | ||
| 13 | /** | |
| 14 | * An exception that is thrown when a widget can not be found on the given display/shell. | |
| 15 | * | |
| 16 | * @author Ketan Padegaonkar <KetanPadegaonkar [at] gmail [dot] com> | |
| 17 | * @version $Id$ | |
| 18 | */ | |
| 19 | public class WidgetNotFoundException extends RuntimeException { | |
| 20 | ||
| 21 | /** the serialVersionUID */ | |
| 22 | private static final long serialVersionUID = -4097219100771019730L; | |
| 23 | ||
| 24 | /** | |
| 25 | * Constructs an exception with the given message. | |
| 26 | * | |
| 27 | * @param message the message. | |
| 28 | */ | |
| 29 | public WidgetNotFoundException(String message) { | |
| 30 | 2 | super(message); |
| 31 | 2 | } |
| 32 | ||
| 33 | /** | |
| 34 | * Constructs this exception with the given message and cause. | |
| 35 | * | |
| 36 | * @param message the message. | |
| 37 | * @param cause the underlying cause. | |
| 38 | */ | |
| 39 | public WidgetNotFoundException(String message, Throwable cause) { | |
| 40 | 20 | super(message, cause); |
| 41 | 20 | } |
| 42 | ||
| 43 | } |