⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 deviceresourceexception.java

📁 jfa2ce 源码帮助开发人员更好的理解运用
💻 JAVA
字号:
/******************************************************************************* * Copyright (c) 2004, 2005 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: *     IBM Corporation - initial API and implementation *******************************************************************************/package org.eclipse.jface.resource;/** * @since 3.1 */public class DeviceResourceException extends Exception {    	private Throwable cause;	/**	 * All serializable objects should have a stable serialVersionUID	 */	private static final long serialVersionUID = 11454598756198L;    	/**	 * Creates a DeviceResourceException indicating an error attempting to	 * create a resource and an embedded low-level exception describing the cause 	 * 	 * @param missingResource     * @param cause cause of the exception (or null if none)	 */    public DeviceResourceException(DeviceResourceDescriptor missingResource, Throwable cause) {        super("Unable to create resource " + missingResource.toString()); //$NON-NLS-1$        // don't pass the cause to super, to allow compilation against JCL Foundation (bug 80059)        this.cause = cause;    }        /**     * Creates a DeviceResourceException indicating an error attempting to     * create a resource      *      * @param missingResource     */    public DeviceResourceException(DeviceResourceDescriptor missingResource) {        this(missingResource, null);    }        /**     * Returns the cause of this throwable or <code>null</code> if the     * cause is nonexistent or unknown.      *      * @return the cause or <code>null</code>     * @since 3.1     */    public Throwable getCause() {        return cause;    }    }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -