/[escript]/trunk/esysUtils/src/EsysException.cpp
ViewVC logotype

Contents of /trunk/esysUtils/src/EsysException.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1455 - (show annotations)
Thu Feb 28 17:19:44 2008 UTC (11 years, 3 months ago) by phornby
File size: 1300 byte(s)
Merge of branches/windows_from_1431_trunk.

Revamp of the exception system.
Fix unused vars and signed/unsigned comparisons.
defined a macro THROW(ARG) in the system_dep.h's to
deal with the expectations of declarations on different architectures.

Details in the logs of branches/windows_from_1431_trunk.

pre-merge snapshot of the trunk in tags/trunk_at_1452


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()
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