org.apache.hadoop.lib.server
Class ServiceException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.hadoop.lib.lang.XException
              extended by org.apache.hadoop.lib.server.ServerException
                  extended by org.apache.hadoop.lib.server.ServiceException
All Implemented Interfaces:
Serializable

@InterfaceAudience.Private
public class ServiceException
extends ServerException

Exception thrown by Service implementations.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.lib.server.ServerException
ServerException.ERROR
 
Constructor Summary
ServiceException(XException.ERROR error, Object... params)
          Creates an service exception using the specified error code.
 
Method Summary
 
Methods inherited from class org.apache.hadoop.lib.lang.XException
getError
 
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

ServiceException

public ServiceException(XException.ERROR error,
                        Object... params)
Creates an service exception using the specified error code. The exception message is resolved using the error code template and the passed parameters.

Parameters:
error - error code for the XException.
params - parameters to use when creating the error message with the error code template.


Copyright © 2014 Apache Software Foundation. All Rights Reserved.