Program: gdcm
Module: $RCSfile: gdcmException.h,v $
Language: C++
- Date: $Date: 2004/10/12 04:35:46 $
- Version: $Revision: 1.17 $
+ Date: $Date: 2005/02/11 16:36:52 $
+ Version: $Revision: 1.22 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
#define GDCM_EXCEPTION_H
#include "gdcmCommon.h"
+
#include <string>
#include <iostream>
#include <exception>
+
namespace gdcm
{
//-----------------------------------------------------------------------------
-/*
- * Any exception thrown in the gdcm library
+/**
+ * \brief Any exception thrown in the gdcm library
*/
class GDCM_EXPORT Exception : public std::exception
{
public:
/*
- * Builds an exception with minimal information: name of the thrower
- * method and error message
- *
+ * \brief Builds an exception with minimal information: name of the thrower
+ * method and error message
* @param from name of the thrower
* @param error error description string
*/
/// returns exception name string
operator const char *() const throw();
- friend std::ostream& operator<<(std::ostream &os, const Exception &e);
+ friend std::ostream &operator<<(std::ostream &os, const Exception &e);
protected:
/// error message part 1
//-----------------------------------------------------------------------------
-/*
- * File error exception thrown in the gdcm library
+/**
+ * \brief File error exception thrown in the gdcm library
*/
class GDCM_EXPORT FileError : public Exception
{
/// @param from name of the thrower
/// @param error error description string
explicit FormatUnexpected(const std::string &from,
- const std::string &error = "Unexpected file format")
+ const std::string &error = "Unexpected file format")
throw() : Exception( from, error ) { }
};
/// @param from name of the thrower
/// @param error error description string
explicit FormatError(const std::string &from,
- const std::string &error = "Invalid file format")
+ const std::string &error = "Invalid file format")
throw() : FormatUnexpected( from, error ) { }
};