blob: e6b030bf17891ea87d005a9a15610d6c1ea3f9ac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
// **********************************************************************
//
// Copyright (c) 2003
// ZeroC, Inc.
// Billerica, MA, USA
//
// All Rights Reserved.
//
// Ice is free software; you can redistribute it and/or modify it under
// the terms of the GNU General Public License version 2 as published by
// the Free Software Foundation.
//
// **********************************************************************
#include <Transform/Exception.h>
using namespace std;
//
// TransformException
//
Transform::TransformException::TransformException(const char* file, int line, const string& reason) :
IceUtil::Exception(file, line), _reason(reason)
{
}
string Transform::TransformException::_name = "Transform:TransformException";
const string&
Transform::TransformException::ice_name() const
{
return _name;
}
void
Transform::TransformException::ice_print(ostream& out) const
{
Exception::ice_print(out);
out << ":\nerror occurred during transformation";
if(!_reason.empty())
{
out << ":\n" << _reason;
}
}
IceUtil::Exception*
Transform::TransformException::ice_clone() const
{
return new TransformException(ice_file(), ice_line(), _reason);
}
void
Transform::TransformException::ice_throw() const
{
throw *this;
}
string
Transform::TransformException::reason() const
{
return _reason;
}
|