0N/A/*
4823N/A * Copyright (c) 2004, 2012, Oracle and/or its affiliates. All rights reserved.
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
0N/A * This code is free software; you can redistribute it and/or modify it
0N/A * under the terms of the GNU General Public License version 2 only, as
2362N/A * published by the Free Software Foundation. Oracle designates this
0N/A * particular file as subject to the "Classpath" exception as provided
2362N/A * by Oracle in the LICENSE file that accompanied this code.
0N/A *
0N/A * This code is distributed in the hope that it will be useful, but WITHOUT
0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A * version 2 for more details (a copy is included in the LICENSE file that
0N/A * accompanied this code).
0N/A *
0N/A * You should have received a copy of the GNU General Public License version
0N/A * 2 along with this work; if not, write to the Free Software Foundation,
0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A *
2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A * or visit www.oracle.com if you need additional information or have any
2362N/A * questions.
0N/A */
0N/A
0N/Apackage sun.management;
0N/A
0N/A/**
0N/A * Configuration Error thrown by a management agent.
0N/A */
0N/Apublic class AgentConfigurationError extends Error {
0N/A public static final String AGENT_EXCEPTION =
0N/A "agent.err.exception";
0N/A public static final String CONFIG_FILE_NOT_FOUND =
0N/A "agent.err.configfile.notfound";
0N/A public static final String CONFIG_FILE_OPEN_FAILED =
0N/A "agent.err.configfile.failed";
0N/A public static final String CONFIG_FILE_CLOSE_FAILED =
0N/A "agent.err.configfile.closed.failed";
0N/A public static final String CONFIG_FILE_ACCESS_DENIED =
0N/A "agent.err.configfile.access.denied";
0N/A public static final String EXPORT_ADDRESS_FAILED =
0N/A "agent.err.exportaddress.failed";
0N/A public static final String AGENT_CLASS_NOT_FOUND =
0N/A "agent.err.agentclass.notfound";
0N/A public static final String AGENT_CLASS_FAILED =
0N/A "agent.err.agentclass.failed";
0N/A public static final String AGENT_CLASS_PREMAIN_NOT_FOUND =
0N/A "agent.err.premain.notfound";
0N/A public static final String AGENT_CLASS_ACCESS_DENIED =
0N/A "agent.err.agentclass.access.denied";
0N/A public static final String AGENT_CLASS_INVALID =
0N/A "agent.err.invalid.agentclass";
0N/A public static final String INVALID_JMXREMOTE_PORT =
0N/A "agent.err.invalid.jmxremote.port";
4823N/A public static final String INVALID_JMXREMOTE_RMI_PORT =
4823N/A "agent.err.invalid.jmxremote.rmi.port";
0N/A public static final String PASSWORD_FILE_NOT_SET =
0N/A "agent.err.password.file.notset";
0N/A public static final String PASSWORD_FILE_NOT_READABLE =
0N/A "agent.err.password.file.not.readable";
0N/A public static final String PASSWORD_FILE_READ_FAILED =
0N/A "agent.err.password.file.read.failed";
0N/A public static final String PASSWORD_FILE_NOT_FOUND =
0N/A "agent.err.password.file.notfound";
0N/A public static final String ACCESS_FILE_NOT_SET =
0N/A "agent.err.access.file.notset";
0N/A public static final String ACCESS_FILE_NOT_READABLE =
0N/A "agent.err.access.file.not.readable";
0N/A public static final String ACCESS_FILE_READ_FAILED =
0N/A "agent.err.access.file.read.failed";
0N/A public static final String ACCESS_FILE_NOT_FOUND =
0N/A "agent.err.access.file.notfound";
0N/A public static final String PASSWORD_FILE_ACCESS_NOT_RESTRICTED =
0N/A "agent.err.password.file.access.notrestricted";
0N/A public static final String FILE_ACCESS_NOT_RESTRICTED =
0N/A "agent.err.file.access.not.restricted";
0N/A public static final String FILE_NOT_FOUND =
0N/A "agent.err.file.not.found";
0N/A public static final String FILE_NOT_READABLE =
0N/A "agent.err.file.not.readable";
0N/A public static final String FILE_NOT_SET =
0N/A "agent.err.file.not.set";
0N/A public static final String FILE_READ_FAILED =
0N/A "agent.err.file.read.failed";
0N/A public static final String CONNECTOR_SERVER_IO_ERROR =
0N/A "agent.err.connector.server.io.error";
0N/A public static final String INVALID_OPTION =
0N/A "agent.err.invalid.option";
0N/A public static final String INVALID_SNMP_PORT =
0N/A "agent.err.invalid.snmp.port";
0N/A public static final String INVALID_SNMP_TRAP_PORT =
0N/A "agent.err.invalid.snmp.trap.port";
0N/A public static final String UNKNOWN_SNMP_INTERFACE =
0N/A "agent.err.unknown.snmp.interface";
0N/A public static final String SNMP_ACL_FILE_NOT_SET =
0N/A "agent.err.acl.file.notset";
0N/A public static final String SNMP_ACL_FILE_NOT_FOUND =
0N/A "agent.err.acl.file.notfound";
0N/A public static final String SNMP_ACL_FILE_NOT_READABLE =
0N/A "agent.err.acl.file.not.readable";
0N/A public static final String SNMP_ACL_FILE_READ_FAILED =
0N/A "agent.err.acl.file.read.failed";
0N/A public static final String SNMP_ACL_FILE_ACCESS_NOT_RESTRICTED =
0N/A "agent.err.acl.file.access.notrestricted";
0N/A public static final String SNMP_ADAPTOR_START_FAILED =
0N/A "agent.err.snmp.adaptor.start.failed";
0N/A public static final String SNMP_MIB_INIT_FAILED =
0N/A "agent.err.snmp.mib.init.failed";
4823N/A public static final String INVALID_STATE =
4823N/A "agent.err.invalid.state";
0N/A
0N/A private final String error;
0N/A private final String[] params;
0N/A
0N/A public AgentConfigurationError(String error) {
0N/A super();
0N/A this.error = error;
0N/A this.params = null;
0N/A }
0N/A
0N/A public AgentConfigurationError(String error, Throwable cause) {
0N/A super(cause);
0N/A this.error = error;
0N/A this.params = null;
0N/A }
0N/A
0N/A public AgentConfigurationError(String error, String... params) {
0N/A super();
0N/A this.error = error;
0N/A this.params = new String[params.length];
0N/A for (int i = 0; i < params.length; i++) {
0N/A this.params[i] = params[i];
0N/A }
0N/A }
0N/A
0N/A public AgentConfigurationError(String error, Throwable cause, String... params) {
0N/A super(cause);
0N/A this.error = error;
0N/A this.params = new String[params.length];
0N/A for (int i = 0; i < params.length; i++) {
0N/A this.params[i] = params[i];
0N/A }
0N/A }
0N/A
0N/A public String getError() {
0N/A return error;
0N/A }
0N/A
0N/A public String[] getParams() {
0N/A return params;
0N/A }
1807N/A
1807N/A private static final long serialVersionUID = 1211605593516195475L;
0N/A}