Xerces-C++  3.1.4
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: OutOfMemoryException.hpp 673960 2008-07-04 08:50:12Z borisk $
20  */
21 
22 #if !defined(XERCESC_INCLUDE_GUARD_OUT_OF_MEMORY_EXCEPTION_HPP)
23 #define XERCESC_INCLUDE_GUARD_OUT_OF_MEMORY_EXCEPTION_HPP
24 
26 #include <xercesc/util/XMemory.hpp>
27 #include <xercesc/util/XMLExceptMsgs.hpp>
29 
31 
32 static const XMLCh gDefOutOfMemoryErrMsg[] =
33 {
37 };
38 
40 {
41 public:
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...
63 {
64  return *this;
65 }
66 
67 // ---------------------------------------------------------------------------
68 // OutOfMemoryException: Getter methods
69 // ---------------------------------------------------------------------------
70 inline XMLExcepts::Codes OutOfMemoryException::getCode() const
71 {
72  return XMLExcepts::Out_Of_Memory;
73 }
74 
76 {
77  return gDefOutOfMemoryErrMsg;
78 }
79 
80 inline const XMLCh* OutOfMemoryException::getType() const
81 {
82  return gDefOutOfMemoryErrMsg;
83 }
84 
85 inline const char* OutOfMemoryException::getSrcFile() const
86 {
87  return "";
88 }
89 
91  return 0;
92 }
93 
95 
96 #endif
Definition: OutOfMemoryException.hpp:39
const XMLCh chLatin_f
Definition: XMLUniDefs.hpp:124
This class makes it possible to override the C++ memory management by adding new/delete operators to ...
Definition: XMemory.hpp:40
const XMLCh chLatin_o
Definition: XMLUniDefs.hpp:133
const XMLCh chLatin_e
Definition: XMLUniDefs.hpp:123
const XMLCh chLatin_O
Definition: XMLUniDefs.hpp:106
const XMLCh chLatin_M
Definition: XMLUniDefs.hpp:104
XMLUInt64 XMLFileLoc
Definition: Xerces_autoconf_config.borland.hpp:116
const char * getSrcFile() const
Definition: OutOfMemoryException.hpp:85
OutOfMemoryException()
Definition: OutOfMemoryException.hpp:59
const XMLCh * getMessage() const
Definition: OutOfMemoryException.hpp:75
OutOfMemoryException & operator=(const OutOfMemoryException &toAssign)
Definition: OutOfMemoryException.hpp:62
#define XERCES_CPP_NAMESPACE_BEGIN
Definition: XercesDefs.hpp:112
const XMLCh chLatin_u
Definition: XMLUniDefs.hpp:139
XMLExcepts::Codes getCode() const
Definition: OutOfMemoryException.hpp:70
wchar_t XMLCh
Definition: Xerces_autoconf_config.borland.hpp:92
const XMLCh chLatin_y
Definition: XMLUniDefs.hpp:143
~OutOfMemoryException()
Definition: OutOfMemoryException.hpp:60
#define XMLUTIL_EXPORT
Definition: XercesDefs.hpp:162
#define XERCES_CPP_NAMESPACE_END
Definition: XercesDefs.hpp:113
XMLFileLoc getSrcLine() const
Definition: OutOfMemoryException.hpp:90
const XMLCh * getType() const
Definition: OutOfMemoryException.hpp:80
const XMLCh chLatin_m
Definition: XMLUniDefs.hpp:131
XERCES_CPP_NAMESPACE_BEGIN const XMLCh chNull
Definition: XMLUniDefs.hpp:37
const XMLCh chLatin_r
Definition: XMLUniDefs.hpp:136
const XMLCh chLatin_t
Definition: XMLUniDefs.hpp:138