OPeNDAP Hyrax Back End Server (BES)
Updated for version 3.8.3
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
BESDapErrorInfo.cc
Go to the documentation of this file.
1
// BESDapErrorInfo.cc
2
3
// This file is part of bes, A C++ back-end server implementation framework
4
// for the OPeNDAP Data Access Protocol.
5
6
// Copyright (c) 2004-2009 University Corporation for Atmospheric Research
7
// Author: Patrick West <pwest@ucar.edu> and Jose Garcia <jgarcia@ucar.edu>
8
//
9
// This library is free software; you can redistribute it and/or
10
// modify it under the terms of the GNU Lesser General Public
11
// License as published by the Free Software Foundation; either
12
// version 2.1 of the License, or (at your option) any later version.
13
//
14
// This library is distributed in the hope that it will be useful,
15
// but WITHOUT ANY WARRANTY; without even the implied warranty of
16
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17
// Lesser General Public License for more details.
18
//
19
// You should have received a copy of the GNU Lesser General Public
20
// License along with this library; if not, write to the Free Software
21
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22
//
23
// You can contact University Corporation for Atmospheric Research at
24
// 3080 Center Green Drive, Boulder, CO 80301
25
26
// (c) COPYRIGHT University Corporation for Atmospheric Research 2004-2005
27
// Please read the full copyright statement in the file COPYRIGHT_UCAR.
28
//
29
// Authors:
30
// pwest Patrick West <pwest@ucar.edu>
31
// jgarcia Jose Garcia <jgarcia@ucar.edu>
32
33
#include "
BESDapErrorInfo.h
"
34
38
BESDapErrorInfo::BESDapErrorInfo( ErrorCode ec,
const
string
&msg )
39
:
BESInfo
( ),
40
_error_code( ec ),
41
_error_msg( msg )
42
{
43
}
44
45
BESDapErrorInfo::~BESDapErrorInfo
()
46
{
47
}
48
56
void
57
BESDapErrorInfo::begin_response
(
const
string
&response_name,
58
BESDataHandlerInterface
&dhi )
59
{
60
BESInfo::begin_response
( response_name, dhi ) ;
61
}
62
69
void
70
BESDapErrorInfo::add_tag
(
const
string
&
/*tag_name*/
,
71
const
string
&
/*tag_data*/
,
72
map<string,string> *
/*attrs*/
)
73
{
74
}
75
81
void
82
BESDapErrorInfo::begin_tag
(
const
string
&tag_name ,
83
map<string,string> *
/*attrs*/
)
84
{
85
BESInfo::begin_tag
( tag_name ) ;
86
}
87
94
void
95
BESDapErrorInfo::end_tag
(
const
string
&tag_name )
96
{
97
BESInfo::end_tag
( tag_name ) ;
98
}
99
106
void
107
BESDapErrorInfo::add_data
(
const
string
&
/*s*/
)
108
{
109
}
110
117
void
118
BESDapErrorInfo::add_space
(
unsigned
long
/*num_spaces*/
)
119
{
120
}
121
128
void
129
BESDapErrorInfo::add_break
(
unsigned
long
/*num_breaks*/
)
130
{
131
}
132
139
void
140
BESDapErrorInfo::add_data_from_file
(
const
string
&
/*key*/
,
141
const
string
&
/*name*/
)
142
{
143
}
144
151
void
152
BESDapErrorInfo::add_exception
(
BESError
&
/*e*/
,
const
string
&
/*admin*/
)
153
{
154
}
155
163
void
164
BESDapErrorInfo::transmit
(
BESTransmitter
*transmitter,
165
BESDataHandlerInterface
&dhi )
166
{
167
transmitter->
send_text
( *
this
, dhi ) ;
168
}
169
174
void
175
BESDapErrorInfo::print
( ostream &strm )
176
{
177
Error new_e( _error_code, _error_msg ) ;
178
new_e.print( strm ) ;
179
}
180
188
void
189
BESDapErrorInfo::dump
( ostream &strm )
const
190
{
191
strm <<
BESIndent::LMarg
<<
"BESDapErrorInfo::dump - ("
192
<< (
void
*)
this
<<
")"
<< endl ;
193
BESIndent::Indent
() ;
194
BESInfo::dump
( strm ) ;
195
BESIndent::UnIndent
() ;
196
}
197
dispatch
BESDapErrorInfo.cc
Generated by
1.8.3.1