public static class MpacException.CannotUpdateNonServerSideEntity extends MpacException
update method was called for an object that did not come from
the Marketplace server.
This could happen if, for example, you construct an
Addon instance a0, pass it to
Addons.createAddon(com.atlassian.marketplace.client.model.Addon) to create the add-on,
and then try to use a0 again with Addons.updateAddon(com.atlassian.marketplace.client.model.Addon, com.atlassian.marketplace.client.model.Addon)
to update some property of the add-on; that will not work because the a0 instance
is still in a not-yet-created state and does not have a resource URI. The correct thing
to do in that case would be to use the Addon instance that is returned from
createAddon, which represents the persistent state of the resource after it has
been created. (You could also query the add-on's current state again at any time with
Addons.getByKey(java.lang.String, com.atlassian.marketplace.client.api.AddonQuery), and use the resulting
Addon instance for your update request.)
MpacException.CannotUpdateNonServerSideEntity, MpacException.ConnectionFailure, MpacException.InvalidResponseError, MpacException.ServerError| Constructor and Description |
|---|
MpacException.CannotUpdateNonServerSideEntity() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringCopyright © 2016 Atlassian. All rights reserved.