org.apache.hadoop.lib.server
Class ServerException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.hadoop.lib.lang.XException
org.apache.hadoop.lib.server.ServerException
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- ServiceException
@InterfaceAudience.Private
public class ServerException
- extends XException
Exception thrown by the Server
class.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
ServerException
protected ServerException(XException.ERROR error,
Object... params)
- Constructor for sub-classes.
- Parameters:
error
- error code for the XException.params
- parameters to use when creating the error message
with the error code template.
ServerException
public ServerException(ServerException.ERROR error,
Object... params)
- Creates an server 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.