Package 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
Exception thrown by
Service implementations.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.lib.server.ServerException
ServerException.ERROR -
Constructor Summary
ConstructorsConstructorDescriptionServiceException(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
getErrorMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ServiceException
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.
-