KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > omg > CORBA > NO_PERMISSION


1 /*
2  * @(#)NO_PERMISSION.java 1.30 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package org.omg.CORBA;
9
10 /**
11  * Exception thrown when an invocation failed because the caller
12  * has insufficient privileges.<P>
13  * It contains a minor code, which gives more detailed information about
14  * what caused the exception, and a completion status. It may also contain
15  * a string describing the exception.
16  *
17  * @see <A HREF="../../../../guide/idl/jidlExceptions.html">documentation on
18  * Java&nbsp;IDL exceptions</A>
19  * @version 1.17, 09/09/97
20  * @since JDK1.2
21  */

22
23 public final class NO_PERMISSION extends SystemException JavaDoc {
24     /**
25      * Constructs a <code>NO_PERMISSION</code> exception with a default minor code
26      * of 0 and a completion state of CompletionStatus.COMPLETED_NO,
27      * and a null description.
28      */

29     public NO_PERMISSION() {
30         this("");
31     }
32
33     /**
34      * Constructs a <code>NO_PERMISSION</code> exception with the specified description,
35      * a minor code of 0, and a completion state of COMPLETED_NO.
36      * @param s the String containing a description message
37      */

38     public NO_PERMISSION(String JavaDoc s) {
39         this(s, 0, CompletionStatus.COMPLETED_NO);
40     }
41
42     /**
43      * Constructs a <code>NO_PERMISSION</code> exception with the specified
44      * minor code and completion status.
45      * @param minor the minor code
46      * @param completed the completion status
47      */

48     public NO_PERMISSION(int minor, CompletionStatus JavaDoc completed) {
49         this("", minor, completed);
50     }
51
52     /**
53      * Constructs a <code>NO_PERMISSION</code> exception with the specified description
54      * message, minor code, and completion status.
55      * @param s the String containing a description message
56      * @param minor the minor code
57      * @param completed the completion status
58      */

59     public NO_PERMISSION(String JavaDoc s, int minor, CompletionStatus JavaDoc completed) {
60         super(s, minor, completed);
61     }
62 }
63
Popular Tags