OpenCores
URL https://opencores.org/ocsvn/w11/w11/trunk

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.7/] [tools/] [src/] [librtools/] [Rexception.cpp] - Blame information for rev 33

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 28 wfjm
// $Id: Rexception.cpp 625 2014-12-30 16:17:45Z mueller $
2 19 wfjm
//
3 28 wfjm
// Copyright 2013-2014 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
4 19 wfjm
//
5
// This program is free software; you may redistribute and/or modify it under
6
// the terms of the GNU General Public License as published by the Free
7
// Software Foundation, either version 2, or at your option any later version.
8
//
9
// This program is distributed in the hope that it will be useful, but
10
// WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY
11
// or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12
// for complete details.
13
// 
14
// Revision History: 
15
// Date         Rev Version  Comment
16 28 wfjm
// 2014-12-30   625   1.1    add ctor(meth,text,emsg)
17 19 wfjm
// 2013-01-12   474   1.0    Initial version
18
// ---------------------------------------------------------------------------
19
 
20
/*!
21
  \file
22 28 wfjm
  \version $Id: Rexception.cpp 625 2014-12-30 16:17:45Z mueller $
23 19 wfjm
  \brief   Implemenation of Rexception.
24
*/
25
 
26
#include "Rexception.hpp"
27
 
28
using namespace std;
29
 
30
/*!
31
  \class Retro::Rexception
32
  \brief FIXME_docs
33
*/
34
 
35
// all method definitions in namespace Retro
36
namespace Retro {
37
 
38
//------------------------------------------+-----------------------------------
39
//! Default constructor
40
 
41
Rexception::Rexception()
42
  : fErrmsg()
43
{}
44
 
45
//------------------------------------------+-----------------------------------
46
//! FIXME_docs
47
 
48
Rexception::Rexception(const RerrMsg& errmsg)
49
  : fErrmsg(errmsg)
50
{}
51
 
52
//------------------------------------------+-----------------------------------
53
//! FIXME_docs
54
 
55
Rexception::Rexception(const std::string& meth, const std::string& text)
56
  : fErrmsg(meth,text)
57
{}
58
 
59
//------------------------------------------+-----------------------------------
60
//! FIXME_docs
61
 
62
Rexception::Rexception(const std::string& meth, const std::string& text,
63
                       int errnum)
64
  : fErrmsg(meth,text,errnum)
65
{}
66
 
67
//------------------------------------------+-----------------------------------
68 28 wfjm
//! FIXME_docs
69
 
70
Rexception::Rexception(const std::string& meth, const std::string& text,
71
                       const RerrMsg& errmsg)
72
  : fErrmsg(meth,text+errmsg.Message())
73
{}
74
 
75
//------------------------------------------+-----------------------------------
76 19 wfjm
//! Destructor
77
 
78
Rexception::~Rexception() throw()
79
{}
80
 
81
//------------------------------------------+-----------------------------------
82
//! FIXME_docs
83
 
84
const char* Rexception::what() const throw()
85
{
86
  return fErrmsg.Message().c_str();
87
}
88
 
89
} // end namespace Retro

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.