All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.gooddata.sdk.service.md.ObjUpdateException Maven / Gradle / Ivy

There is a newer version: 3.11.1+api3
Show newest version
/*
 * Copyright (C) 2004-2019, GoodData(R) Corporation. All rights reserved.
 * This source code is licensed under the BSD-style license found in the
 * LICENSE.txt file in the root directory of this source tree.
 */
package com.gooddata.sdk.service.md;

import com.gooddata.sdk.common.GoodDataException;
import com.gooddata.sdk.model.md.Updatable;

/**
 * Metadata object couldn't be updated
 */
public class ObjUpdateException extends GoodDataException {

    /**
     * Construct a new instance of ObjUpdateException.
     *
     * @param obj   the metadata object you're trying to update
     * @param cause the cause of error
     * @param    the type of metadata object you're trying to update
     */
    public  ObjUpdateException(T obj, Throwable cause) {
        super("Can't update metadata object: " + obj.getClass().getSimpleName(), cause);
    }

    /**
     * Construct a new instance of ObjUpdateException.
     *
     * @param message the detail message
     * @param obj     the metadata object you're trying to update
     * @param      the type of metadata object you're trying to update
     */
    public  ObjUpdateException(String message, T obj) {
        super("Can't update metadata object: " + obj.getClass().getSimpleName() + "; Cause: " + message);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy