org.weakref.jmx.JmxException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jmxutils Show documentation
Show all versions of jmxutils Show documentation
Exporting JMX mbeans made easy
package org.weakref.jmx;
public class JmxException
extends RuntimeException
{
private static final long serialVersionUID = 1L;
public enum Reason
{
INVALID_ANNOTATION,
MALFORMED_OBJECT_NAME,
INSTANCE_ALREADY_EXISTS,
INSTANCE_NOT_FOUND,
MBEAN_REGISTRATION
}
private final Reason reason;
JmxException(final Reason reason, final String message, final Object ... args)
{
super(String.format(message, args));
this.reason = reason;
}
JmxException(final Reason reason, final Throwable cause, final String message, final Object ... args)
{
super(String.format(message, args), cause);
this.reason = reason;
}
public Reason getReason()
{
return reason;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy