org.apache.hadoop.metrics2
Class MetricsException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.apache.hadoop.metrics2.MetricsException
All Implemented Interfaces:
Serializable

@InterfaceAudience.Public
@InterfaceStability.Evolving
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 © 2013 Apache Software Foundation. All Rights Reserved.