usr/src/java/vpanels/panel/org/opensolaris/os/vp/panel/common/smf/ScfUtil.java
changeset 545 7a29a25b92e2
parent 544 c16652047d4f
child 546 b284ba298d57
--- a/usr/src/java/vpanels/panel/org/opensolaris/os/vp/panel/common/smf/ScfUtil.java	Wed Jul 21 10:13:44 2010 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,50 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-
-/*
- * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
- * Use is subject to license terms.
- */
-
-package org.opensolaris.os.vp.panel.common.smf;
-
-import org.opensolaris.os.scf.common.ScfException;
-import org.opensolaris.os.smf.SmfErrorCode;
-import org.opensolaris.os.vp.panel.common.action.*;
-import org.opensolaris.os.vp.util.misc.Finder;
-
-@SuppressWarnings({"serial"})
-public class ScfUtil extends Exception {
-    //
-    // Static methods
-    //
-
-    public static void throwActionException(ScfException e)
-	throws ActionFailedException, ActionUnauthorizedException {
-
-	if (e.getError() == SmfErrorCode.PERMISSION_DENIED) {
-	    throw new ActionUnauthorizedException(e);
-	}
-
-	throw new ActionFailedException(
-	    Finder.getString("error.repository.write"), e);
-    }
-}