01: /***** Copyright (c) 1999 Object Management Group. Unlimited rights to
02: duplicate and use this code are hereby granted provided that this
03: copyright notice is included.
04: *****/package org.omg.CORBA;
05:
06: public final class PolicyError extends org.omg.CORBA.UserException {
07:
08: public short reason;
09:
10: public PolicyError() {
11: super (PolicyErrorHelper.id());
12: }
13:
14: public PolicyError(short reason) {
15: super (PolicyErrorHelper.id());
16: this .reason = reason;
17: }
18:
19: public PolicyError(String reason_str, short reason) { // full constructor
20: super (PolicyErrorHelper.id() + " " + reason_str);
21: this.reason = reason;
22: }
23: }
|