Sun Java System Mobile Enterprise Platform 1.0 Developer's Guide for Client Applications

The SyncException Class

Table 4–7 lists the constructors and methods belonging to the SyncException class. This class is a checked exception type that indicates an error during synchronization.

Table 4–7 Class com.sun.mep.client.api.SyncException

Method 

Description 

public SyncException(java.lang.String pMessage)

Constructor that takes a String argument.

public SyncException(java.lang.Throwable pLinkedException)

Constructor that takes a linked exception argument. 

public SyncException(java.lang.String pMessage, java.lang.Throwable pLinkedException)

Constructor that takes both a String and a linked exception as arguments.

public java.lang.Throwable getLinkedException()

Retrieves the linked exception for this exception. 

public void printStackTrace()

Prints a stack trace for this exception to the standard error stream. 

public void setLinkedException(java.lang.Throwable pLinkedException)

Sets the linked exception for this exception.