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

Subversion Repositories w11

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

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 19 wfjm
// $Id: Rexception.cpp 488 2013-02-16 18:49:47Z mueller $
2
//
3
// Copyright 2013- by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
4
//
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
// 2013-01-12   474   1.0    Initial version
17
// ---------------------------------------------------------------------------
18
 
19
/*!
20
  \file
21
  \version $Id: Rexception.cpp 488 2013-02-16 18:49:47Z mueller $
22
  \brief   Implemenation of Rexception.
23
*/
24
 
25
#include "Rexception.hpp"
26
 
27
using namespace std;
28
 
29
/*!
30
  \class Retro::Rexception
31
  \brief FIXME_docs
32
*/
33
 
34
// all method definitions in namespace Retro
35
namespace Retro {
36
 
37
//------------------------------------------+-----------------------------------
38
//! Default constructor
39
 
40
Rexception::Rexception()
41
  : fErrmsg()
42
{}
43
 
44
//------------------------------------------+-----------------------------------
45
//! FIXME_docs
46
 
47
Rexception::Rexception(const RerrMsg& errmsg)
48
  : fErrmsg(errmsg)
49
{}
50
 
51
//------------------------------------------+-----------------------------------
52
//! FIXME_docs
53
 
54
Rexception::Rexception(const std::string& meth, const std::string& text)
55
  : fErrmsg(meth,text)
56
{}
57
 
58
//------------------------------------------+-----------------------------------
59
//! FIXME_docs
60
 
61
Rexception::Rexception(const std::string& meth, const std::string& text,
62
                       int errnum)
63
  : fErrmsg(meth,text,errnum)
64
{}
65
 
66
//------------------------------------------+-----------------------------------
67
//! Destructor
68
 
69
Rexception::~Rexception() throw()
70
{}
71
 
72
//------------------------------------------+-----------------------------------
73
//! FIXME_docs
74
 
75
const char* Rexception::what() const throw()
76
{
77
  return fErrmsg.Message().c_str();
78
}
79
 
80
} // end namespace Retro

powered by: WebSVN 2.1.0

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