    001/*-
    002 *******************************************************************************
    003 * Copyright (c) 2011, 2016 Diamond Light Source Ltd.
    004 * All rights reserved. This program and the accompanying materials
    005 * are made available under the terms of the Eclipse Public License v1.0
    006 * which accompanies this distribution, and is available at
    007 * http://www.eclipse.org/legal/epl-v10.html
    008 *
    009 * Contributors:
    010 *    Peter Chang - initial API and implementation and/or initial documentation
    011 *******************************************************************************/
    012
    013package org.eclipse.january.metadata;
    014
    015import org.eclipse.january.dataset.ILazyDataset;
    016
    017/**
    018 * This metadata describes any error associated with a dataset
    019 */
    020public interface ErrorMetadata extends MetadataType {
    021
    022        public void initialize();
    023
    024        /**
    025         * @param error to set
    026         * @since 2.2
    027         */
    028        public void initialize(ILazyDataset error);
    029
    030        /**
    031         * Get error dataset
    032         * @return error dataset
    033         */
    034        public ILazyDataset getError();
    035
    036        /**
    037         * Set the error
    038         * @param error to set
    039         */
    040        public void setError(ILazyDataset error);
    041}