Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
//-----------------------------------------------------------------------------
/*
* Any exception thrown in the gdcm library
*/
//-----------------------------------------------------------------------------
/*
* Any exception thrown in the gdcm library
*/
/// exception caught within exception class: print error message and die
static void fatal(const char *from) throw();
/// exception caught within exception class: print error message and die
static void fatal(const char *from) throw();
{
public:
/// \brief Builds a file-related exception with minimal information:
/// name of the thrower method and error message
/// @param from name of the thrower
/// @param error error description string
{
public:
/// \brief Builds a file-related exception with minimal information:
/// name of the thrower method and error message
/// @param from name of the thrower
/// @param error error description string
- explicit gdcmFormatUnexpected(const std::string &from,
- const std::string &error = "Unexpected file format")
- throw() : gdcmException( from, error ) { }
+ explicit FormatUnexpected(const std::string &from,
+ const std::string &error = "Unexpected file format")
+ throw() : Exception( from, error ) { }
};
//-----------------------------------------------------------------------------
/**
* \brief Invalid file format exception
*/
};
//-----------------------------------------------------------------------------
/**
* \brief Invalid file format exception
*/
{
public:
/// \brief Builds a file-related exception with minimal information:
/// name of the thrower method and error message
/// @param from name of the thrower
/// @param error error description string
{
public:
/// \brief Builds a file-related exception with minimal information:
/// name of the thrower method and error message
/// @param from name of the thrower
/// @param error error description string
- explicit gdcmFormatError(const std::string &from,
- const std::string &error = "Invalid file format")
- throw() : gdcmFormatUnexpected( from, error ) { }
+ explicit FormatError(const std::string &from,
+ const std::string &error = "Invalid file format")
+ throw() : FormatUnexpected( from, error ) { }
//-----------------------------------------------------------------------------
#endif // GDCM_EXCEPTION_H
//-----------------------------------------------------------------------------
#endif // GDCM_EXCEPTION_H