Package 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
Exception thrown by the
Server class.- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedServerException(XException.ERROR error, Object... params) Constructor for sub-classes.ServerException(ServerException.ERROR error, Object... params) Creates an server 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
-
ServerException
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
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.
-