Code example for AccessControlException

0
            	mNoSuchElement = true;
                // SELECT failed 
                // Access Rule Applet is not available => deny any access 
            	reason = " No Access because ARA-M is not available";
 
                throw new AccessControlException(reason);
                 
            } else if( e instanceof MissingResourceException ){ 
            	// re-throw exception 
            	// fixes issue 23 
            	// this indicates that no channel is left for accessing the SE element 
            	throw (MissingResourceException)e;
        	}else {  
                // MANAGE CHANNEL failed or other error 
                // no free channel available or another error => No access => Deny Any Access 
            	reason = msg;
 
                throw new AccessControlException(reason);
            } 
        }   // End of Exception handling