Interface MTRemoteChangeHandler


public interface MTRemoteChangeHandler
A callback class for exception handling errors due to remote changes. These errors can arise when an entity is locked by another user or if there are more recent changes on the server.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called to handle a remote change exception in some custom way.

    NOTE: The caller of this method might invoke it on any thread.
    default void
    Gives callers the opportunity to react exceptions other than the predefined "remote changes" one.
  • Method Details

    • remoteChangeException

      void remoteChangeException(MTRemoteChangeException ex)
      Called to handle a remote change exception in some custom way.

      NOTE: The caller of this method might invoke it on any thread. In particular, this method will most likely not be invoked on the same thread as the thread that queued the object up for save. It might not even be called on the thread that raised the exception.
      Parameters:
      ex - The exception that has occured.
    • unknownError

      default void unknownError(Throwable ex)
      Gives callers the opportunity to react exceptions other than the predefined "remote changes" one. For example, if something crashes when editing a model that exception will be handled and shown to the user through the normal exception handling mechanism, but the error will be lost to the calling modeling editor since the update was queued in the store. Overriding this lets the calling code perform actions on errors, for example reloading the model in the model editor to avoid the editor getting "out of sync" with the storage model.