org.jSyncManager.API.Protocol

Class DLPFunctionCallException


public class DLPFunctionCallException
extends Exception

The DLPFunctionCallException class. This exception is thrown by methods in the JHotSync class whenever a DLP error is reported by the Palm.

Field Summary

static int
NO_DLP_ERROR
This error value is returned when no DLP Error code is available.

Constructor Summary

DLPFunctionCallException(String s, int errorCode)
Constructs a new DLPFunctionCallException object with the given DLP error code and text message.
DLPFunctionCallException(int errorCode)
Constructs a new DLPFunctionCallException object with the given DLP error code.

Method Summary

int
getErrorCode()
Returns the error code associated with this DLPFunctionCallException.

Field Details

NO_DLP_ERROR

public static final int NO_DLP_ERROR
This error value is returned when no DLP Error code is available. This can occur when the JHotSync class runs into an internal error in one of its methods. See the error text for details.

Constructor Details

DLPFunctionCallException

public DLPFunctionCallException(String s,
                                int errorCode)
Constructs a new DLPFunctionCallException object with the given DLP error code and text message.
Parameters:
s - a String containing a description of the exception caught. See the DLP_Packet class for a list of error codes.
errorCode - the DLP error code this exception represents.

DLPFunctionCallException

public DLPFunctionCallException(int errorCode)
Constructs a new DLPFunctionCallException object with the given DLP error code. See the DLP_Packet class for a list of error codes.
Parameters:
errorCode - the DLP error code this exception represents.

Method Details

getErrorCode

public int getErrorCode()
Returns the error code associated with this DLPFunctionCallException.
Returns:
the error code associated with this DLPFunctionCallException.