|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
flex.messaging.LocalizedException
flex.messaging.MessageException
flex.data.DataSyncException
A DayaSyncException describes a data conflict that arises as a result of a client attempt to commit a "sync" DataService operation. It is propagated to the client, and handled as the trigger for a conflict event.
| Field Summary |
| Fields inherited from class flex.messaging.MessageException |
code, errorMessage, extendedData |
| Constructor Summary | |
DataSyncException(ChangeObject co)
You can use this constructor when no single property is known to have caused a conflict, and when no known safe state of the Object is known to exist. |
|
DataSyncException(ChangeObject co,
Object serverVersion)
You can use this constructor when no single property is known to have caused a conflict, but the known safe state of the Object is available. |
|
DataSyncException(ChangeObject co,
Object serverVersion,
List propertyNames)
You can use this constructor when multiple properties are known to have caused a conflict. |
|
DataSyncException(ChangeObject co,
Object serverVersion,
String propertyName)
You can use this constructor when a single property is known to have caused a conflict. |
|
DataSyncException(Object serverVersion,
List propertyNames)
|
|
| Method Summary | |
flex.messaging.messages.ErrorMessage |
createErrorMessage()
This utility method generates a Message to be sent across the network to describe this Exception. |
flex.data.messages.DataMessage |
getConflictCause()
The DataMessage that generated the conflict. |
List |
getPropertyNames()
A list of property names that are in conflict. |
Object |
getServerObject()
Used to expose the state of the server object to the client at the time of conflict. |
void |
setConflictCause(flex.data.messages.DataMessage cause)
Sets the data message that caused this fault. |
String |
toString()
Returns a string represenation of the exception. |
| Methods inherited from class flex.messaging.MessageException |
getCode, getErrorMessage, getExtendedData, getResourceLoader, getRootCauseErrorMessage, setCode, setErrorMessage, setExtendedData |
| Methods inherited from class flex.messaging.LocalizedException |
getDetails, getMessage, getNumber, getRootCause, setDetails, setDetails, setDetails, setDetails, setDetails, setDetails, setMessage, setMessage, setMessage, setMessage, setMessage, setMessage, setMessage, setMessage, setNumber, setRootCause |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public DataSyncException(ChangeObject co)
co - The ChangeObject that contains the conflicting change
public DataSyncException(ChangeObject co,
Object serverVersion)
co - ChangeObject that contains the conflicting changeserverVersion - Version of the Object known to be in safe, correct state
public DataSyncException(ChangeObject co,
Object serverVersion,
String propertyName)
co - ChangeObject that contains the conflicting changeserverVersion - Version of the Object known to be in safe, correct statepropertyName - Name of the property that is in conflict
public DataSyncException(ChangeObject co,
Object serverVersion,
List propertyNames)
co - ChangeObject that contains the conflicting changeserverVersion - Version of the Object known to be in safe, correct statepropertyNames - List of properties that are in conflict
public DataSyncException(Object serverVersion,
List propertyNames)
| Method Detail |
public void setConflictCause(flex.data.messages.DataMessage cause)
public flex.data.messages.DataMessage getConflictCause()
public Object getServerObject()
public List getPropertyNames()
public flex.messaging.messages.ErrorMessage createErrorMessage()
createErrorMessage in class MessageExceptionpublic String toString()
LocalizedException
toString in class LocalizedException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||