@Override @Nullable protected String getSystemAttribute(String attributeName) { try { return System.getenv(attributeName); } catch (AccessControlException ex) { if (logger.isInfoEnabled()) { logger.info("Caught AccessControlException when accessing system environment variable '" + attributeName + "'; its value will be returned [null]. Reason: " + ex.getMessage()); } return null; } } };
@Override @Nullable protected String getSystemAttribute(String attributeName) { try { return System.getProperty(attributeName); } catch (AccessControlException ex) { if (logger.isInfoEnabled()) { logger.info("Caught AccessControlException when accessing system property '" + attributeName + "'; its value will be returned [null]. Reason: " + ex.getMessage()); } return null; } } };
@Override @Nullable protected String getSystemAttribute(String attributeName) { try { return System.getenv(attributeName); } catch (AccessControlException ex) { if (logger.isInfoEnabled()) { logger.info("Caught AccessControlException when accessing system environment variable '" + attributeName + "'; its value will be returned [null]. Reason: " + ex.getMessage()); } return null; } } };
@Override @Nullable protected String getSystemAttribute(String attributeName) { try { return System.getProperty(attributeName); } catch (AccessControlException ex) { if (logger.isInfoEnabled()) { logger.info("Caught AccessControlException when accessing system property '" + attributeName + "'; its value will be returned [null]. Reason: " + ex.getMessage()); } return null; } } };
private void ajaxFetchFlowDetails(final Project project, final HashMap<String, Object> ret, final HttpServletRequest req) throws ServletException { final String flowName = getParam(req, "flow"); try { final Flow flow = project.getFlow(flowName); if (flow == null) { ret.put("error", "Flow " + flowName + " not found."); return; } ret.put("jobTypes", getFlowJobTypes(flow)); if (flow.getCondition() != null) { ret.put("condition", flow.getCondition()); } } catch (final AccessControlException e) { ret.put("error", e.getMessage()); } }
check.append("BeanRoot - bypass for EJB.txt; "); } catch (AccessControlException e) { check.append("BeanRoot - failed for EJB.txt; " + e.getMessage());
page.add("errorMsg", e.getMessage()); } catch (final ProjectManagerException e) { page.add("errorMsg", e.getMessage());
page.add("errorMsg", e.getMessage()); } catch (final ProjectManagerException e) { page.add("errorMsg", e.getMessage());
page.add("errorMsg", e.getMessage());
@Override protected String getSystemAttribute(String propertyName) { try { return System.getProperty(propertyName); } catch (AccessControlException ex) { if (logger.isInfoEnabled()) { logger.info(format("Caught AccessControlException when " + "accessing system property [%s]; its value will be " + "returned [null]. Reason: %s", propertyName, ex.getMessage())); } return null; } } };
page.add("errorMsg", e.getMessage());
@Override protected String getSystemAttribute(String variableName) { try { return System.getenv(variableName); } catch (AccessControlException ex) { if (logger.isInfoEnabled()) { logger.info(format("Caught AccessControlException when " + "accessing system environment variable [%s]; its " + "value will be returned [null]. Reason: %s", variableName, ex.getMessage())); } return null; } } };
page.add("errorMsg", e.getMessage());
page.add("errorMsg", e.getMessage());
log.warning("Original error was: " + ace.getMessage());
private static void checkPermission(SystemPermission permission) { try { if (System.getSecurityManager() != null) AccessController.checkPermission(permission); } catch (AccessControlException e) { // Need to throw a simplified version as AccessControlException // will have a reference to Derby's SystemPermission which most likely // will not be available on the client. throw new SecurityException(e.getMessage()); } }
private static void checkPermission(SystemPermission permission) { try { if (System.getSecurityManager() != null) AccessController.checkPermission(permission); } catch (AccessControlException e) { // Need to throw a simplified version as AccessControlException // will have a reference to Derby's SystemPermission which most likely // will not be available on the client. throw new SecurityException(e.getMessage()); } }
private static void checkPermission(SystemPermission permission) { try { if (System.getSecurityManager() != null) AccessController.checkPermission(permission); } catch (AccessControlException e) { // Need to throw a simplified version as AccessControlException // will have a reference to Derby's SystemPermission which most likely // will not be available on the client. throw new SecurityException(e.getMessage()); } }
@NotNull @Override public CommandStatus execute(@NotNull CouchbaseMock mock, @NotNull Command command, @NotNull JsonObject payload) { super.execute(mock, command, payload); try { executeReal(payload, command); } catch (AccessControlException e) { error = e.getMessage(); } return getResponse(); }
@NotNull @Override public CommandStatus execute(@NotNull CouchbaseMock mock, @NotNull Command command, @NotNull JsonObject payload) { super.execute(mock, command, payload); try { executeReal(payload, command); } catch (AccessControlException e) { error = e.getMessage(); } return getResponse(); }