1/*******************************************************************************
2 * Copyright (c) 2011 Google, Inc.
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 *    Google, Inc. - initial API and implementation
10 *******************************************************************************/
11package org.eclipse.wb.internal.core.utils.execution;
12
13/**
14 * Analog of {@link Runnable} where method <code>run</code> can throw {@link Exception}.
15 *
16 * @author scheglov_ke
17 * @coverage core.util
18 */
19public interface RunnableObjectEx<T> {
20  /**
21   * Executes operation that can cause {@link Exception}.
22   *
23   * @return some {@link Object} result for caller.
24   */
25  T runObject() throws Exception;
26}
27