org.apache.lucene.gdata.server
Class ServiceException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.lucene.gdata.server.ServiceException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
FeedNotFoundException

public class ServiceException
extends Exception

The ServiceException is used to encapsulate all Exception throw by underlying layers of the Service layer.

Author:
Simon Willnauer
See Also:
Serialized Form

Constructor Summary
ServiceException(int errorCode)
          Constructs a new ServiceException
ServiceException(String arg0, int errorCode)
          Constructs a new ServiceException
ServiceException(String arg0, Throwable arg1, int errorCode)
          Constructs a new ServiceException
ServiceException(Throwable arg0, int errorCode)
          Constructs a new ServiceException
 
Method Summary
 int getErrorCode()
           
 
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(int errorCode)
Constructs a new ServiceException

Parameters:
errorCode - - gdata request error code

ServiceException

public ServiceException(String arg0,
                        int errorCode)
Constructs a new ServiceException

Parameters:
arg0 - - the exception message
errorCode - - gdata request error code

ServiceException

public ServiceException(String arg0,
                        Throwable arg1,
                        int errorCode)
Constructs a new ServiceException

Parameters:
arg0 - - the exception message
arg1 - - the exception cause
errorCode - - gdata request error code

ServiceException

public ServiceException(Throwable arg0,
                        int errorCode)
Constructs a new ServiceException

Parameters:
arg0 - - the exception cause
errorCode - - gdata request error code
Method Detail

getErrorCode

public int getErrorCode()
Returns:
Returns the errorCode.


Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.