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

org.openscada.opc.lib.da.AddFailedException Maven / Gradle / Ivy

The newest version!
/*
 * This file is part of the OpenSCADA project
 * Copyright (C) 2006-2010 TH4 SYSTEMS GmbH (http://th4-systems.com)
 *
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 */

package org.openscada.opc.lib.da;

import java.util.HashMap;
import java.util.Map;

public class AddFailedException extends Exception
{

    /**
     * 
     */
    private static final long serialVersionUID = 5299486640366935298L;

    private Map _errors = new HashMap ();

    private Map _items = new HashMap ();

    public AddFailedException ( final Map errors, final Map items )
    {
        super ();
        this._errors = errors;
        this._items = items;
    }

    /**
     * Get the map of item id to error code
     * @return the result map containing the failed items
     */
    public Map getErrors ()
    {
        return this._errors;
    }

    /**
     * Get the map of item it to item object
     * @return the result map containing the succeeded items
     */
    public Map getItems ()
    {
        return this._items;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy