com.cloudera.lib.server
Class ServiceException

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
                  extended by com.cloudera.lib.server.ServiceException
All Implemented Interfaces:
Serializable

public class ServiceException
extends ServerException

Exception thrown by Service implementations.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.cloudera.lib.server.ServerException
ServerException.ERROR
 
Constructor Summary
ServiceException(XException.ERROR error, Object... params)
          Creates an service exception using the specified error code.
 
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

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