this.action.get ("ObjectID", typeof (string), out this.object_id);
if (this.object_id == null) {
// Sorry we can't do anything without the ID
- throw new ContentDirectoryError.NO_SUCH_OBJECT
- (_("No such object"));
+ throw new ContentDirectoryError.INVALID_ARGS
+ (_("ContainerID missing"));
}
yield this.remove_object ();
out this.new_tag_value);
if (this.object_id == null) {
// Sorry we can't do anything without the ID
- throw new ContentDirectoryError.NO_SUCH_OBJECT
- (_("No such object"));
+ throw new ContentDirectoryError.INVALID_ARGS
+ (_("Object id missing"));
}
yield this.update_object ();
}
if (didl_object.restricted) {
- throw new ContentDirectoryError.INVALID_ARGS
+ throw new ContentDirectoryError.BAD_METADATA
(_("Cannot create restricted item"));
}
}
}
if (media_object == null || !(media_object is MediaContainer)) {
- throw new ContentDirectoryError.NO_SUCH_OBJECT
- (_("No such object"));
+ throw new ContentDirectoryError.NO_SUCH_CONTAINER
+ (_("No such container"));
} else if (!(OCMFlags.UPLOAD in media_object.ocm_flags) ||
!(media_object is WritableContainer)) {
throw new ContentDirectoryError.RESTRICTED_PARENT