FileDocCategorySizeDatePackage
ServiceException.javaAPI DocApache Lucene 2.1.02296Wed Feb 14 10:46:06 GMT 2007org.apache.lucene.gdata.server

ServiceException

public class ServiceException extends Exception
The ServiceException is used to encapsulate all {@link java.lang.Exception} throw by underlying layers of the {@link org.apache.lucene.gdata.server.Service} layer.
author
Simon Willnauer

Fields Summary
private int
errorCode
private static final long
serialVersionUID
Constructors Summary
public ServiceException(int errorCode)
Constructs a new ServiceException

param
errorCode - gdata request error code


                    
       
        super();
        this.errorCode = errorCode;

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

param
arg0 - the exception message
param
errorCode - gdata request error code

        super(arg0);
        this.errorCode = errorCode;
    
public ServiceException(String arg0, Throwable arg1, int errorCode)
Constructs a new ServiceException

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

        super(arg0, arg1);
        this.errorCode = errorCode;
        
    
public ServiceException(Throwable arg0, int errorCode)
Constructs a new ServiceException

param
arg0 - the exception cause
param
errorCode - gdata request error code

        super(arg0);
        this.errorCode = errorCode;
    
Methods Summary
public intgetErrorCode()

return
Returns the errorCode.

        return this.errorCode;