org.apache.hadoop.lib.server
Class ServiceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.hadoop.lib.lang.XException
org.apache.hadoop.lib.server.ServerException
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
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
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.