Xerces-C++ 3.3.0
OutOfMemoryException.hpp
Go to the documentation of this file.
1/*
2 * Licensed to the Apache Software Foundation (ASF) under one or more
3 * contributor license agreements. See the NOTICE file distributed with
4 * this work for additional information regarding copyright ownership.
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
18/*
19 * $Id$
20 */
21
22#if !defined(XERCESC_INCLUDE_GUARD_OUT_OF_MEMORY_EXCEPTION_HPP)
23#define XERCESC_INCLUDE_GUARD_OUT_OF_MEMORY_EXCEPTION_HPP
24
27#include <xercesc/util/XMLExceptMsgs.hpp>
29
31
32static const XMLCh gDefOutOfMemoryErrMsg[] =
33{
37};
38
40{
41public:
42
45 // -----------------------------------------------------------------------
46 // Getter methods
47 // -----------------------------------------------------------------------
48 XMLExcepts::Codes getCode() const;
49 const XMLCh* getMessage() const;
50 const XMLCh* getType() const;
51 const char* getSrcFile() const;
52 XMLFileLoc getSrcLine() const;
53
55 OutOfMemoryException& operator=(const OutOfMemoryException& toAssign);
56};
57
58// constructors/destructors...
66
67// ---------------------------------------------------------------------------
68// OutOfMemoryException: Getter methods
69// ---------------------------------------------------------------------------
70inline XMLExcepts::Codes OutOfMemoryException::getCode() const
71{
72 return XMLExcepts::Out_Of_Memory;
73}
74
76{
77 return gDefOutOfMemoryErrMsg;
78}
79
81{
82 return gDefOutOfMemoryErrMsg;
83}
84
85inline const char* OutOfMemoryException::getSrcFile() const
86{
87 return "";
88}
89
91 return 0;
92}
93
95
96#endif
const XMLCh chLatin_t
Definition XMLUniDefs.hpp:138
const XMLCh chLatin_m
Definition XMLUniDefs.hpp:131
const XMLCh chLatin_e
Definition XMLUniDefs.hpp:123
const XMLCh chLatin_r
Definition XMLUniDefs.hpp:136
const XMLCh chLatin_o
Definition XMLUniDefs.hpp:133
XERCES_CPP_NAMESPACE_BEGIN const XMLCh chNull
Definition XMLUniDefs.hpp:37
const XMLCh chLatin_M
Definition XMLUniDefs.hpp:104
const XMLCh chLatin_f
Definition XMLUniDefs.hpp:124
const XMLCh chLatin_O
Definition XMLUniDefs.hpp:106
const XMLCh chLatin_u
Definition XMLUniDefs.hpp:139
const XMLCh chLatin_y
Definition XMLUniDefs.hpp:143
#define XERCES_CPP_NAMESPACE_BEGIN
Definition XercesDefs.hpp:112
#define XMLUTIL_EXPORT
Definition XercesDefs.hpp:162
#define XERCES_CPP_NAMESPACE_END
Definition XercesDefs.hpp:113
char16_t XMLCh
Definition Xerces_autoconf_config.hpp:120
XMLUInt64 XMLFileLoc
Definition Xerces_autoconf_config.hpp:144
Definition OutOfMemoryException.hpp:40
const XMLCh * getType() const
Definition OutOfMemoryException.hpp:80
XMLFileLoc getSrcLine() const
Definition OutOfMemoryException.hpp:90
const char * getSrcFile() const
Definition OutOfMemoryException.hpp:85
const XMLCh * getMessage() const
Definition OutOfMemoryException.hpp:75
XMLExcepts::Codes getCode() const
Definition OutOfMemoryException.hpp:70
OutOfMemoryException()
Definition OutOfMemoryException.hpp:59
OutOfMemoryException & operator=(const OutOfMemoryException &toAssign)
Definition OutOfMemoryException.hpp:62
~OutOfMemoryException()
Definition OutOfMemoryException.hpp:60
This class makes it possible to override the C++ memory management by adding new/delete operators to ...
Definition XMemory.hpp:41