XQuilla/docs/simple-api/XQException_8hpp-source.html
2020-02-17 22:05:20 +01:00

99 lines
11 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>XQilla Simple API: XQException.hpp Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.4.6 -->
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="classes.html"><span>Classes</span></a></li>
<li id="current"><a href="files.html"><span>Files</span></a></li>
</ul></div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul></div>
<h1>XQException.hpp</h1><a href="XQException_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment"> * Copyright (c) 2001-2006</span>
<a name="l00003"></a>00003 <span class="comment"> * DecisionSoft Limited. All rights reserved.</span>
<a name="l00004"></a>00004 <span class="comment"> * Copyright (c) 2004-2006</span>
<a name="l00005"></a>00005 <span class="comment"> * Progress Software Corporation. All rights reserved.</span>
<a name="l00006"></a>00006 <span class="comment"> * Copyright (c) 2004-2006</span>
<a name="l00007"></a>00007 <span class="comment"> * Oracle. All rights reserved.</span>
<a name="l00008"></a>00008 <span class="comment"> *</span>
<a name="l00009"></a>00009 <span class="comment"> * See the file LICENSE for redistribution information.</span>
<a name="l00010"></a>00010 <span class="comment"> *</span>
<a name="l00011"></a>00011 <span class="comment"> * $Id: XQException.hpp,v 1.10 2006/11/01 16:37:12 jpcs Exp $</span>
<a name="l00012"></a>00012 <span class="comment"> */</span>
<a name="l00013"></a>00013
<a name="l00015"></a>00015 <span class="comment">// XQException.h: interface for the XQException class.</span>
<a name="l00017"></a>00017 <span class="comment"></span>
<a name="l00018"></a>00018 <span class="preprocessor">#if !defined(AFXQ_XQEXCEPTION_H__446AD191_E9D0_4658_BD8C_032D29DA123E__INCLUDED_)</span>
<a name="l00019"></a><a class="code" href="XQException_8hpp.html#50dc0ff7fa3cf9f890d02f6ce0336414">00019</a> <span class="preprocessor"></span><span class="preprocessor">#define AFXQ_XQEXCEPTION_H__446AD191_E9D0_4658_BD8C_032D29DA123E__INCLUDED_</span>
<a name="l00020"></a>00020 <span class="preprocessor"></span>
<a name="l00021"></a>00021 <span class="preprocessor">#include &lt;xqilla/framework/XQillaExport.hpp&gt;</span>
<a name="l00022"></a>00022 <span class="preprocessor">#include &lt;xqilla/utils/XStr.hpp&gt;</span>
<a name="l00023"></a>00023
<a name="l00024"></a><a class="code" href="XQException_8hpp.html#507a2ba7ec1efdf595885497d7f68c56">00024</a> <span class="preprocessor">#define XQThrow(type, function, reason) throw type(function, reason, this, __FILE__, __LINE__)</span>
<a name="l00025"></a><a class="code" href="XQException_8hpp.html#327d5c87a463e2d8c3a930186c36fee3">00025</a> <span class="preprocessor"></span><span class="preprocessor">#define XQThrow2(type, function, reason) throw type(function, reason, 0, __FILE__, __LINE__)</span>
<a name="l00026"></a><a class="code" href="XQException_8hpp.html#832e1a1e3c37d9a3067737602af496a0">00026</a> <span class="preprocessor"></span><span class="preprocessor">#define XQThrow3(type, function, reason, location) throw type(function, reason, location, __FILE__, __LINE__)</span>
<a name="l00027"></a><a class="code" href="XQException_8hpp.html#ebd782793874e0428b04b72bc8cff2e0">00027</a> <span class="preprocessor"></span><span class="preprocessor">#define XQSimpleThrow(reason, xqfile, xqline, xqcolumn) throw XQException(reason, xqfile, xqline, (unsigned int)xqcolumn, __FILE__, __LINE__)</span>
<a name="l00028"></a>00028 <span class="preprocessor"></span>
<a name="l00029"></a>00029 <span class="keyword">class </span>LocationInfo;
<a name="l00030"></a>00030
<a name="l00031"></a><a class="code" href="classXQException.html">00031</a> <span class="keyword">class </span>XQILLA_API <a class="code" href="classXQException.html">XQException</a>
<a name="l00032"></a>00032 {
<a name="l00033"></a>00033 <span class="keyword">public</span>:
<a name="l00034"></a>00034 <a class="code" href="classXQException.html">XQException</a>(<span class="keyword">const</span> XMLCh *reason, <span class="keyword">const</span> XMLCh* file, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> line, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> column, <span class="keyword">const</span> <span class="keywordtype">char</span> *cppFile, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> cppLine);
<a name="l00035"></a>00035 <a class="code" href="classXQException.html">XQException</a>(<span class="keyword">const</span> <a class="code" href="classXQException.html">XQException</a> &amp;);
<a name="l00036"></a>00036 <span class="keyword">virtual</span> ~<a class="code" href="classXQException.html">XQException</a>();
<a name="l00037"></a>00037
<a name="l00038"></a><a class="code" href="classXQException.html#97b3a891dbe6de394bba1ba8f7dd1a74">00038</a> <span class="keyword">const</span> XMLCh *getType()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_type; }
<a name="l00039"></a><a class="code" href="classXQException.html#de1b990b979052f61f5a24ee3a923003">00039</a> <span class="keyword">const</span> XMLCh *getError()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_error; }
<a name="l00040"></a>00040
<a name="l00041"></a><a class="code" href="classXQException.html#f0a00b7b0682584ce2fa39618c878658">00041</a> <span class="keyword">const</span> XMLCh *getXQueryFile()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_xqFile; }
<a name="l00042"></a><a class="code" href="classXQException.html#752d40f94b150e6a9b1e0d2a1b785c64">00042</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> getXQueryLine()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_xqLine; }
<a name="l00043"></a><a class="code" href="classXQException.html#3b08206a47f7f7784222d2f1065d5fe6">00043</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> getXQueryColumn()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_xqColumn; }
<a name="l00044"></a>00044
<a name="l00045"></a>00045 <span class="keywordtype">void</span> setXQueryPosition(<span class="keyword">const</span> XMLCh *file, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> line, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> column);
<a name="l00046"></a>00046 <span class="keywordtype">void</span> setXQueryPosition(<span class="keyword">const</span> LocationInfo *info);
<a name="l00047"></a>00047
<a name="l00048"></a><a class="code" href="classXQException.html#bfd512896e7648c5e699736d34df16bb">00048</a> <span class="keyword">const</span> XMLCh *getCppFunction()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_cppFunction; }
<a name="l00049"></a><a class="code" href="classXQException.html#a7e77546ff02de470310fbe2ec15affe">00049</a> <span class="keyword">const</span> <span class="keywordtype">char</span> *getCppFile()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_cppFile; }
<a name="l00050"></a><a class="code" href="classXQException.html#62118633b07d9e474f887c6196220dae">00050</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> getCppLine()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_cppLine; }
<a name="l00051"></a>00051
<a name="l00053"></a><a class="code" href="classXQException.html#443dfe166909ef4b2ee496f4a781a74e">00053</a> <span class="keywordtype">bool</span> isErrorReported()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_errorReported; }
<a name="l00054"></a><a class="code" href="classXQException.html#0fec11e5056578a6c9e0de582b35b87b">00054</a> <span class="keywordtype">void</span> setErrorReported(<span class="keywordtype">bool</span> value = <span class="keyword">true</span>) { m_errorReported = value; }
<a name="l00055"></a>00055
<a name="l00056"></a>00056 <span class="keywordtype">void</span> printDebug(<span class="keyword">const</span> XMLCh* <span class="keyword">const</span> context) <span class="keyword">const</span>;
<a name="l00057"></a>00057
<a name="l00058"></a>00058 <span class="keyword">protected</span>:
<a name="l00059"></a>00059 <a class="code" href="classXQException.html">XQException</a>(<span class="keyword">const</span> XMLCh* <span class="keyword">const</span> type, <span class="keyword">const</span> XMLCh* <span class="keyword">const</span> functionName, <span class="keyword">const</span> XMLCh* <span class="keyword">const</span> reason, <span class="keyword">const</span> LocationInfo *info, <span class="keyword">const</span> <span class="keywordtype">char</span> *cppFile, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> cppLine);
<a name="l00060"></a>00060
<a name="l00061"></a>00061 <span class="keyword">private</span>:
<a name="l00062"></a>00062 <a class="code" href="classXQException.html">XQException</a> &amp;operator=(<span class="keyword">const</span> <a class="code" href="classXQException.html">XQException</a> &amp;);
<a name="l00063"></a>00063
<a name="l00064"></a>00064 XMLCh* m_type;
<a name="l00065"></a>00065 XMLCh* m_error;
<a name="l00066"></a>00066
<a name="l00067"></a>00067 XMLCh* m_cppFunction;
<a name="l00068"></a>00068 <span class="keyword">const</span> <span class="keywordtype">char</span> *m_cppFile;
<a name="l00069"></a>00069 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> m_cppLine;
<a name="l00070"></a>00070
<a name="l00071"></a>00071 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> m_xqLine, m_xqColumn;
<a name="l00072"></a>00072 XMLCh* m_xqFile;
<a name="l00073"></a>00073
<a name="l00074"></a>00074 <span class="keywordtype">bool</span> m_errorReported;
<a name="l00075"></a>00075 };
<a name="l00076"></a>00076
<a name="l00077"></a>00077 <span class="preprocessor">#endif // !defined(AFXQ_XQEXCEPTION_H__446AD191_E9D0_4658_BD8C_032D29DA123E__INCLUDED_)</span>
<a name="l00078"></a>00078 <span class="preprocessor"></span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Tue Dec 12 00:18:56 2006 for XQilla Simple API by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address>
</body>
</html>