## org.apache.hadoop.metrics2
Class MetricsException

    java.lang.Object
      java.lang.Throwable
          java.lang.Exception
              java.lang.RuntimeException
                  org.apache.hadoop.metrics2.MetricsException

All Implemented Interfaces:
  Serializable

Direct Known Subclasses:
  MetricsConfigException

    public class MetricsException

extends RuntimeException

A general metrics exception wrapper

See Also:
  Serialized Form

Constructor Summary
`MetricsException(String message)` Construct the exception with a message
`MetricsException(String message, Throwable cause)` Construct the exception with a message and a cause
`MetricsException(Throwable cause)` Construct the exception with a cause

Method Summary

Methods inherited from class java.lang.Throwable
`fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### MetricsException

    public MetricsException(String message)

  Construct the exception with a message

  Parameters:
    `message` - for the exception

### MetricsException

    public MetricsException(String message,
                            Throwable cause)

  Construct the exception with a message and a cause

  Parameters:
    `message` - for the exception
    `cause` - of the exception

### MetricsException

    public MetricsException(Throwable cause)

  Construct the exception with a cause

  Parameters:
    `cause` - of the exception

Copyright © 2009 The Apache Software Foundation