/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright by The HDF Group. * * Copyright by the Board of Trustees of the University of Illinois. * * All rights reserved. * * * * This file is part of HDF5. The full HDF5 copyright notice, including * * terms governing use, modification, and redistribution, is contained in * * the COPYING file, which can be found at the root of the source code * * distribution tree, or in https://www.hdfgroup.org/licenses. * * If you do not have access to either file, you may request a copy from * * help@hdfgroup.org. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ package hdf.hdf5lib.exceptions; /** * @page ERRORS Errors and Exceptions * The class HDF5Exception returns errors from the Java HDF5 Interface. * * Two sub-classes of HDF5Exception are defined: *
HDF5Exception
with no specified detail
* message.
*/
public HDF5Exception() { super(); }
/**
* @ingroup JERR
*
* Constructs an HDF5Exception
with the specified detail
* message.
*
* @param message
* the detail message.
*/
public HDF5Exception(String message)
{
super();
detailMessage = message;
}
/**
* @ingroup JERR
*
* Returns the detail message of this exception
*
* @return the detail message or null
if this object does not
* have a detail message.
*/
@Override
public String getMessage()
{
return detailMessage;
}
}