com.cloudera.lib.server
Class ServerException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.cloudera.lib.lang.XException
              extended by com.cloudera.lib.server.ServerException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ServiceException

public class ServerException
extends XException

Exception thrown by the Server class.

See Also:
Serialized Form

Nested Class Summary
static class ServerException.ERROR
          Error codes use by the Server class.
 
Constructor Summary
  ServerException(ServerException.ERROR error, Object... params)
          Creates an server exception using the specified error code.
protected ServerException(XException.ERROR error, Object... params)
          Constructor for sub-classes.
 
Method Summary
 
Methods inherited from class com.cloudera.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

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 © 2012 Cloudera. All Rights Reserved.