JMException (Java SE 21 & JDK 21)
Description: declaration: module: java.management, package: javax.management, class: JMException
Keywords: javax.management.JMException class

Module java.management
Package javax.management

# Class JMException

java.lang.Object
java.lang.Throwable
java.lang.Exception
javax.management.JMException

All Implemented Interfaces:
  `Serializable`

Direct Known Subclasses:
  `MBeanException`, `OpenDataException`, `OperationsException`, `ReflectionException`, `RelationException`

public class JMException extends Exception
Exceptions thrown by JMX implementations. It does not include the runtime exceptions.

Since:
  1.5
See Also:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `JMException()`
  Default constructor.
  `JMException(String msg)`
  Constructor that allows a specific error message to be specified.

- ## Method Summary

  ### Methods declared in class java.lang.Throwable

  `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

  ### Methods declared in class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### JMException

    public JMException()
    Default constructor.

  - ### JMException

    public JMException(String msg)
    Constructor that allows a specific error message to be specified.
    Parameters:
      `msg` - the detail message.