/[escript]/branches/windows_from_1456_trunk_1522_merged_in/esysUtils/src/EsysException.cpp
ViewVC logotype

Contents of /branches/windows_from_1456_trunk_1522_merged_in/esysUtils/src/EsysException.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1523 - (show annotations)
Tue Apr 22 06:15:31 2008 UTC (14 years, 11 months ago) by phornby
File size: 1302 byte(s)
Rename to reflect the trunk version merged in.
1
2 /* $Id$ */
3
4 /*******************************************************
5 *
6 * Copyright 2003-2007 by ACceSS MNRF
7 * Copyright 2007 by University of Queensland
8 *
9 * http://esscc.uq.edu.au
10 * Primary Business: Queensland, Australia
11 * Licensed under the Open Software License version 3.0
12 * http://www.opensource.org/licenses/osl-3.0.php
13 *
14 *******************************************************/
15
16 #include "EsysException.h"
17
18 using namespace esysUtils;
19
20 const std::string EsysException::exceptionNameValue("GeneralEsysException");
21
22 std::ostream &operator<<(std::ostream &output, EsysException &inException){
23 output << inException.toString();
24 return output;
25 }
26
27 EsysException::EsysException():
28 Parent(),
29 m_reason()
30 {
31 updateMessage();
32 }
33
34 EsysException::EsysException(const std::string &exceptionReason):
35 Parent(),
36 m_reason(exceptionReason)
37 {
38 updateMessage();
39 }
40
41 // Copy Constructor.
42 EsysException::EsysException(const EsysException &other):
43 Parent(other),
44 m_reason(other.m_reason)
45 {
46 updateMessage();
47 }
48
49 EsysException::EsysException( const char *cStr ):
50 Parent(),
51 m_reason(cStr)
52 {
53 updateMessage();
54 }
55
56 EsysException::~EsysException() THROW_ANY
57 {}
58
59 const std::string & EsysException::exceptionName() const
60 {
61 return exceptionNameValue;
62 }
63

Properties

Name Value
svn:eol-style native
svn:executable *
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.26