Sun GlassFish Mobility Platform 1.1 Developer's Guide for Client Applications

The SyncException Class

Table 4–9 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–9 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, if there is one; otherwise, it returns null. 

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.