/** * @M4A Constructs an AS400SecurityException. * * <p>An AS400SecurityException indicates that a security error has occurred. * * @param returnCode The return code which identifies the message to be returned. Possible values * are defined as constants on this class. * @param e cause of the exception */ protected AS400SecurityException(int returnCode, Throwable e) { super(ResourceBundleLoader.getText(getMRIKey(returnCode))); rc_ = returnCode; // Remember the cause of the exception try { initCause(e); } catch (Throwable t) { } }
static { try { EventSetDescriptor propertyChange = new EventSetDescriptor( BEAN_CLASS, "propertyChange", PropertyChangeListener.class, "propertyChange"); propertyChange.setDisplayName(ResourceBundleLoader.getText("EVT_NAME_PROPERTY_CHANGE")); propertyChange.setShortDescription(ResourceBundleLoader.getText("EVT_DESC_PROPERTY_CHANGE")); eventSetDescriptors_ = new EventSetDescriptor[] {propertyChange}; PropertyDescriptor path = new PropertyDescriptor("path", BEAN_CLASS); path.setBound(true); path.setConstrained(false); path.setDisplayName(ResourceBundleLoader.getText("PROP_NAME_PATH")); path.setShortDescription(ResourceBundleLoader.getText("PROP_DESC_PATH")); PropertyDescriptor system = new PropertyDescriptor("system", BEAN_CLASS); system.setBound(true); system.setConstrained(false); system.setDisplayName(ResourceBundleLoader.getText("PROP_NAME_SYSTEM")); system.setShortDescription(ResourceBundleLoader.getText("PROP_DESC_SYSTEM")); propertyDescriptors_ = new PropertyDescriptor[] {path, system}; } catch (IntrospectionException e) { Trace.log(Trace.ERROR, "Unexpected IntrospectionException:", e); throw new InternalErrorException(InternalErrorException.UNEXPECTED_EXCEPTION); } }
// Static initializer. static { try { // Events. EventSetDescriptor event1 = new EventSetDescriptor( beanClass_, "propertyChange", PropertyChangeListener.class, "propertyChange"); event1.setDisplayName(rbl_.getText("EVT_NAME_PROPERTY_CHANGE")); event1.setShortDescription(rbl_.getText("EVT_DESC_PROPERTY_CHANGE")); EventSetDescriptor event2 = new EventSetDescriptor( beanClass_, "actionCompleted", ActionCompletedListener.class, "actionCompleted"); event2.setDisplayName(rbl_.getText("EVT_NAME_ACTION_COMPLETED")); event2.setShortDescription(rbl_.getText("EVT_DESC_ACTION_COMPLETED")); EventSetDescriptor event3 = new EventSetDescriptor( beanClass_, "propertyChange", VetoableChangeListener.class, "vetoableChange"); event3.setDisplayName(rbl_.getText("EVT_NAME_PROPERTY_VETO")); event3.setShortDescription(rbl_.getText("EVT_DESC_PROPERTY_VETO")); events_ = new EventSetDescriptor[] {event1, event2, event3}; // Properties. PropertyDescriptor classPath = new PropertyDescriptor("classPath", beanClass_, "getClassPath", "setClassPath"); classPath.setBound(true); classPath.setConstrained(true); classPath.setDisplayName(rbl_.getText("PROP_NAME_JAC_CLASSPATH")); classPath.setShortDescription(rbl_.getText("PROP_DESC_JAC_CLASSPATH")); PropertyDescriptor classPathSecurityChkLvl = new PropertyDescriptor( "securityCheckLevel", beanClass_, "getSecurityCheckLevel", "setSecurityCheckLevel"); classPathSecurityChkLvl.setBound(true); classPathSecurityChkLvl.setConstrained(true); classPathSecurityChkLvl.setDisplayName(rbl_.getText("PROP_NAME_JAC_SECCHKLVL")); classPathSecurityChkLvl.setShortDescription(rbl_.getText("PROP_DESC_JAC_SECCHKLVL")); PropertyDescriptor garbageCollectInitialSize = new PropertyDescriptor( "garbageCollectionInitialSize", beanClass_, "getGarbageCollectionInitialSize", "setGarbageCollectionInitialSize"); garbageCollectInitialSize.setBound(true); garbageCollectInitialSize.setConstrained(true); garbageCollectInitialSize.setDisplayName(rbl_.getText("PROP_NAME_JAC_GCINIT")); garbageCollectInitialSize.setShortDescription(rbl_.getText("PROP_DESC_JAC_GCINIT")); PropertyDescriptor garbageCollectMaximumSize = new PropertyDescriptor( "garbageCollectionMaximumSize", beanClass_, "getGarbageCollectionMaximumSize", "setGarbageCollectionMaximumSize"); garbageCollectMaximumSize.setBound(true); garbageCollectMaximumSize.setConstrained(true); garbageCollectMaximumSize.setDisplayName(rbl_.getText("PROP_NAME_JAC_GCMAX")); garbageCollectMaximumSize.setShortDescription(rbl_.getText("PROP_DESC_JAC_GCMAX")); PropertyDescriptor garbageCollectionFrequency = new PropertyDescriptor( "garbageCollectionFrequency", beanClass_, "getGarbageCollectionFrequency", "setGarbageCollectionFrequency"); garbageCollectionFrequency.setBound(true); garbageCollectionFrequency.setConstrained(true); garbageCollectionFrequency.setDisplayName(rbl_.getText("PROP_NAME_JAC_GCFREQ")); garbageCollectionFrequency.setShortDescription(rbl_.getText("PROP_DESC_JAC_GCFREQ")); PropertyDescriptor garbageCollectionPriority = new PropertyDescriptor( "garbageCollectionPriority", beanClass_, "getGarbageCollectionPriority", "setGarbageCollectionPriority"); garbageCollectionPriority.setBound(true); garbageCollectionPriority.setConstrained(true); garbageCollectionPriority.setDisplayName(rbl_.getText("PROP_NAME_JAC_GCPRIORITY")); garbageCollectionPriority.setShortDescription(rbl_.getText("PROP_DESC_JAC_GCPRIORITY")); PropertyDescriptor interpret = new PropertyDescriptor("interpret", beanClass_, "getInterpret", "setInterpret"); interpret.setBound(true); interpret.setConstrained(true); interpret.setDisplayName(rbl_.getText("PROP_NAME_JAC_INTERPRET")); interpret.setShortDescription(rbl_.getText("PROP_DESC_JAC_INTERPRET")); PropertyDescriptor javaApplication = new PropertyDescriptor( "javaApplication", beanClass_, "getJavaApplication", "setJavaApplication"); javaApplication.setBound(true); javaApplication.setConstrained(true); javaApplication.setDisplayName(rbl_.getText("PROP_NAME_JAC_JAVAAPP")); javaApplication.setShortDescription(rbl_.getText("PROP_DESC_JAC_JAVAAPP")); PropertyDescriptor optimization = new PropertyDescriptor("optimization", beanClass_, "getOptimization", "setOptimization"); optimization.setBound(true); optimization.setConstrained(true); optimization.setDisplayName(rbl_.getText("PROP_NAME_JAC_OPTIMIZE")); optimization.setShortDescription(rbl_.getText("PROP_DESC_JAC_OPTIMIZE")); PropertyDescriptor option = new PropertyDescriptor("option", beanClass_, "getOptions", "setOptions"); option.setBound(true); option.setConstrained(true); option.setDisplayName(rbl_.getText("PROP_NAME_JAC_OPTION")); option.setShortDescription(rbl_.getText("PROP_DESC_JAC_OPTION")); PropertyDescriptor parameters = new PropertyDescriptor("parameters", beanClass_, "getParameters", "setParameters"); parameters.setBound(true); parameters.setConstrained(true); parameters.setDisplayName(rbl_.getText("PROP_NAME_JAC_PARAMETERS")); parameters.setShortDescription(rbl_.getText("PROP_DESC_JAC_PARAMETERS")); PropertyDescriptor portSearch = new PropertyDescriptor("findPort", beanClass_, "isFindPort", "setFindPort"); portSearch.setBound(true); portSearch.setConstrained(true); portSearch.setDisplayName(rbl_.getText("PROP_NAME_JAC_PORTSEARCH")); portSearch.setShortDescription(rbl_.getText("PROP_DESC_JAC_PORTSEARCH")); properties_ = new PropertyDescriptor[] { classPath, classPathSecurityChkLvl, garbageCollectInitialSize, garbageCollectMaximumSize, garbageCollectionFrequency, garbageCollectionPriority, interpret, javaApplication, parameters, optimization, option, portSearch, }; } catch (IntrospectionException e) { throw new Error(e.toString()); } }
/** * Constructs a ProxyException object. * * @param returnCode The return code associated with this exception. */ ProxyException(int returnCode) { super(ResourceBundleLoader.getText(getMRIKey(returnCode))); returnCode_ = returnCode; }
AS400SecurityException(int returnCode, AS400Message[] messageList, String info) { super(ResourceBundleLoader.getText(getMRIKey(returnCode)) + ":" + info); rc_ = returnCode; messageList_ = messageList; }
// Constructs an AS400SecurityException object. // It indicates that a security exception occurred. // Exception message will look like this: objectName: User is not authorized to object. // @param objectName The name of the object. // @param returnCode The return code which identifies the message to be returned. AS400SecurityException(String objectName, int returnCode) { // Create the message. super(objectName + ": " + ResourceBundleLoader.getText(getMRIKey(returnCode))); rc_ = returnCode; }
/** * Constructs an AS400SecurityException. * * <p>An AS400SecurityException indicates that a security error has occurred. * * @param returnCode The return code which identifies the message to be returned. Possible values * are defined as constants on this class. */ protected AS400SecurityException(int returnCode) { super(ResourceBundleLoader.getText(getMRIKey(returnCode))); rc_ = returnCode; }