NO_PERMISSION.java revision 608:7e06bf1dcb09
174462Salfred/* 274462Salfred * Copyright (c) 1995, 2006, Oracle and/or its affiliates. All rights reserved. 374462Salfred * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 492990Sobrien * 592990Sobrien * This code is free software; you can redistribute it and/or modify it 692990Sobrien * under the terms of the GNU General Public License version 2 only, as 775094Siedowse * published by the Free Software Foundation. Oracle designates this 874462Salfred * particular file as subject to the "Classpath" exception as provided 974462Salfred * by Oracle in the LICENSE file that accompanied this code. 1074462Salfred * 1174462Salfred * This code is distributed in the hope that it will be useful, but WITHOUT 12111010Snectar * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1374462Salfred * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14156090Sdeischen * version 2 for more details (a copy is included in the LICENSE file that 1574462Salfred * accompanied this code). 16156090Sdeischen * 17156090Sdeischen * You should have received a copy of the GNU General Public License version 18156090Sdeischen * 2 along with this work; if not, write to the Free Software Foundation, 19156090Sdeischen * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20156090Sdeischen * 21156090Sdeischen * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22156090Sdeischen * or visit www.oracle.com if you need additional information or have any 23156090Sdeischen * questions. 24156090Sdeischen */ 25156090Sdeischen 26156090Sdeischenpackage org.omg.CORBA; 27156090Sdeischen 28156090Sdeischen/** 29156090Sdeischen * Exception thrown when an invocation failed because the caller 30156090Sdeischen * has insufficient privileges.<P> 31156090Sdeischen * It contains a minor code, which gives more detailed information about 32156090Sdeischen * what caused the exception, and a completion status. It may also contain 3374462Salfred * a string describing the exception. 3474462Salfred * 3574462Salfred * @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on 3674462Salfred * Java IDL exceptions</A> 3774462Salfred * @since JDK1.2 3874462Salfred */ 3974462Salfred 4074462Salfredpublic final class NO_PERMISSION extends SystemException { 4174462Salfred /** 4274462Salfred * Constructs a <code>NO_PERMISSION</code> exception with a default minor code 4374462Salfred * of 0 and a completion state of CompletionStatus.COMPLETED_NO, 4474462Salfred * and a null description. 4574462Salfred */ 4674462Salfred public NO_PERMISSION() { 4774462Salfred this(""); 4874462Salfred } 4974462Salfred 5074462Salfred /** 5174462Salfred * Constructs a <code>NO_PERMISSION</code> exception with the specified description, 5274462Salfred * a minor code of 0, and a completion state of COMPLETED_NO. 5374462Salfred * @param s the String containing a description message 5474462Salfred */ 5574462Salfred public NO_PERMISSION(String s) { 5674462Salfred this(s, 0, CompletionStatus.COMPLETED_NO); 5774462Salfred } 5874462Salfred 5974462Salfred /** 6074462Salfred * Constructs a <code>NO_PERMISSION</code> exception with the specified 6174462Salfred * minor code and completion status. 6274462Salfred * @param minor the minor code 6374462Salfred * @param completed the completion status 6474462Salfred */ 6574462Salfred public NO_PERMISSION(int minor, CompletionStatus completed) { 6674462Salfred this("", minor, completed); 6774462Salfred } 6874462Salfred 6974462Salfred /** 7074462Salfred * Constructs a <code>NO_PERMISSION</code> exception with the specified description 7174462Salfred * message, minor code, and completion status. 7274462Salfred * @param s the String containing a description message 7374462Salfred * @param minor the minor code 7474462Salfred * @param completed the completion status 7574462Salfred */ 7674462Salfred public NO_PERMISSION(String s, int minor, CompletionStatus completed) { 7774462Salfred super(s, minor, completed); 7874462Salfred } 7974462Salfred} 8074462Salfred