PageRenderTime 36ms queryFilters 40ms Sphinxql 3071ms GetByIds 161ms meta 0ms repositoryFilters 45ms languageFilters 33ms sourceFilters 132ms

3,992,007 results for 'ERROR repo:elan/plex' (36 ms)

Source

Language

Repository

Error recovery.html https://bitbucket.org/kib2/wikiparser | HTML | 280 lines
129
130<p>The Error class provides a series of accessors, that is, methods that are specifically used to access data in the inner object. Normally, scripts are not very interested in peeking the data inside an Error instance; usually, the embedding application is the entity that is meant to intercept errors and deal with them. For this reason, the embedding API puts at library disposal a C++ class called Falcon::Error; in case the script wants to intercept it, and only in that case, the C++ object is wrapped in Falcon object, and methods are used to query the internal Falcon::Error C++ instance. This is because intercepting and analyzing Error instances from scripts is considered an extraordinary operation; the overhead introduced by using methods instead of plain properties to retrieve Error values is marginal with respect to the advantage the embedding application receives by being able to use directly C++ objects in its code when a forbidding error condition is encountered by the script. </p>
131
149
150<p>Do not confuse the <tt>Error</tt> class with the above <tt>error</tt> variable: Falcon is fully case-sensitive, so the variable we named <tt>error</tt> in the above code is just a normal variable receiving an <tt>Error</tt> class instance.</p>
151
166
167<p>It is interesting to be able to raise errors; the execution flow is immediately interrupted and a possible error manager is invoked, so raising errors inside the scripts may often obviate the need for "if" sequences, each of them checking for the right things to be done at each step. The keyword <tt>raise</tt> makes an item to be thrown and treats it as an exception.</p>
168
168
169<p>The script may choose two different approaches to raise errors: one is that of creating an instance of the Error class using the Error() constructor, which accepts the following parameters:</p>
170
229
230<p>This solution is a visually a bit less compact, requiring three indent levels where the previous only needed one. Also, the VM has an opcode that manages a typed catch a bit faster than a select statement (it's one VM opcode less, actually, but the opcode that is skipped with the typed catch approach is quite fast to be executed). However, it presents two advantages: first of all, it is possible to execute some common code before or/and after any specific error management. Secondly, the select code may be  delegated to a function (or to a lambda) that may be changed on the fly during program execution, actually changing the error management policy for that section. Through this kind of semantics, a common error management policy may be given to different handlers. As this doesn't prevent writing specific typed catches, each error management code may be highly customized through a combination of static typed catch statements and dynamic catch-everything statements passing the raised value to a common manager.</p>
231
error.h https://bitbucket.org/tristanz/openirt | C++ Header | 604 lines
12 * --------------------------------------------------------------------
13 *  scythestat/error.h
14 */
15 
16/*! \file error.h 
17 *
21 * scythe::scythe_exception and its children.  These exception classes
22 * describe all of the error conditions generated by Scythe library
23 * routines.
24 *
25 * Furthermore, error.h contains a series of macro definitions that
26 * regulate the inclusion of the library's error checking code in
36 * because the added branch results in high performance penalties and
37 * out-of-bounds errors shouldn't occur in well-written code, while
38 * conformance checks in matrix multiplication are level 1 because the
Error.fsi https://bitbucket.org/banshee/fparsec-samples | Unknown | 142 lines
71
72/// `backtrackError state error` is a variant of `AddErrorMessage(BacktrackPoint(state.Pos, error), NoErrorMessages)`,
73/// that only wraps the error in a `BacktrackPoint` if it isn't already a `BacktrackPoint`.
75
76/// `compoundError label state error` is a variant of `AddErrorMessage(CompoundError(label, state.Pos, error), NoErrorMessages)`
77/// that uses the original error position instead of `state.Pos` in case `error` is a `BacktrackPoint`.
80
81/// `concatErrorMessages error1 error2` concatenates the two error message lists `error1` and `error2`.
82val concatErrorMessages: ErrorMessageList -> ErrorMessageList -> ErrorMessageList
83
84/// `mergeErrors error1 error2` is an optimized variant of `concatErrorMessages error1 error2`
85/// that avoids the call to concatErrorMessages if `error1` is empty (= `NoErrorMessages`).
93/// `mergeErrorsIfNeeded3 veryOldState veryOldError oldState oldError newState newError` is equivalent to
94/// `mergeErrorsIfNeeded oldState (mergeErrorsIfNeeded veryOldState veryOldError oldState oldError) newState newError`.
95val inline mergeErrorsIfNeeded3:    State<'u> -> ErrorMessageList
error.php https://bitbucket.org/manchas/pperezm | PHP | 573 lines
44	E_WARNING 	=> array( 'mode' => 'message' ),
45	E_ERROR 	=> array( 'mode' => 'callback', 'options' => array('JError','customErrorPage') )
46);
121	 * @static
122	 * @param	int		$level	The error level - use any of PHP's own error levels for this: E_ERROR, E_WARNING, E_NOTICE, E_USER_ERROR, E_USER_WARNING, E_USER_NOTICE.
123	 * @param	string	$code	The application-internal error code for this error
250		if (!is_callable(array ('JError',$function))) {
251			return JError::raiseError(E_ERROR, 'JError:'.JERROR_ILLEGAL_MODE, 'Error Handling mode is not known', 'Mode: '.$mode.' is not implemented.');
252		}
261				if (!is_array($options)) {
262					return JError::raiseError(E_ERROR, 'JError:'.JERROR_ILLEGAL_OPTIONS, 'Options for callback not valid');
263				}
273
274					return JError::raiseError(E_ERROR, 'JError:'.JERROR_CALLBACK_NOT_CALLABLE, 'Function is not callable', 'Function:'.$tmp[1].' scope '.$tmp[0].'.');
275				}
mercurial.error-pysrc.html https://bitbucket.org/danchr/danchr.bitbucket.org | HTML | 602 lines
79</div><a name="L18"></a><tt class="py-lineno">18</tt>  <tt class="py-line"> </tt>
80<a name="LookupError"></a><div id="LookupError-def"><a name="L19"></a><tt class="py-lineno">19</tt> <a class="py-toggle" href="#" id="LookupError-toggle" onclick="return toggle('LookupError');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="mercurial.error.LookupError-class.html">LookupError</a><tt class="py-op">(</tt><tt class="py-base-class">RevlogError</tt><tt class="py-op">,</tt> <tt class="py-base-class">KeyError</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
81</div><div id="LookupError-collapsed" style="display:none;" pad="++" indent="++++"></div><div id="LookupError-expanded"><a name="LookupError.__init__"></a><div id="LookupError.__init__-def"><a name="L20"></a><tt class="py-lineno">20</tt> <a class="py-toggle" href="#" id="LookupError.__init__-toggle" onclick="return toggle('LookupError.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="mercurial.error.LookupError-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">name</tt><tt class="py-op">,</tt> <tt class="py-param">index</tt><tt class="py-op">,</tt> <tt class="py-param">message</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
88<a name="L24"></a><tt class="py-lineno">24</tt>  <tt class="py-line">            <tt class="py-name">name</tt> <tt class="py-op">=</tt> <tt id="link-2" class="py-name"><a title="mercurial.node.short" class="py-name" href="#" onclick="return doclink('link-2', 'short', 'link-1');">short</a></tt><tt class="py-op">(</tt><tt class="py-name">name</tt><tt class="py-op">)</tt> </tt>
89<a name="L25"></a><tt class="py-lineno">25</tt>  <tt class="py-line">        <tt id="link-3" class="py-name" targets="Class mercurial.error.RevlogError=mercurial.error.RevlogError-class.html"><a title="mercurial.error.RevlogError" class="py-name" href="#" onclick="return doclink('link-3', 'RevlogError', 'link-3');">RevlogError</a></tt><tt class="py-op">.</tt><tt id="link-4" class="py-name" targets="Method mercurial.archival.fileit.__init__()=mercurial.archival.fileit-class.html#__init__,Method mercurial.archival.tarit.GzipFileWithTime.__init__()=mercurial.archival.tarit.GzipFileWithTime-class.html#__init__,Method mercurial.archival.tarit.__init__()=mercurial.archival.tarit-class.html#__init__,Method mercurial.archival.tellable.__init__()=mercurial.archival.tellable-class.html#__init__,Method mercurial.archival.zipit.__init__()=mercurial.archival.zipit-class.html#__init__,Method mercurial.bundlerepo.bundlechangelog.__init__()=mercurial.bundlerepo.bundlechangelog-class.html#__init__,Method mercurial.bundlerepo.bundlefilelog.__init__()=mercurial.bundlerepo.bundlefilelog-class.html#__init__,Method mercurial.bundlerepo.bundlemanifest.__init__()=mercurial.bundlerepo.bundlemanifest-class.html#__init__,Method mercurial.bundlerepo.bundlerepository.__init__()=mercurial.bundlerepo.bundlerepository-class.html#__init__,Method mercurial.bundlerepo.bundlerevlog.__init__()=mercurial.bundlerepo.bundlerevlog-class.html#__init__,Method mercurial.byterange.RangeableFileObject.__init__()=mercurial.byterange.RangeableFileObject-class.html#__init__,Method mercurial.changelog.appender.__init__()=mercurial.changelog.appender-class.html#__init__,Method mercurial.changelog.changelog.__init__()=mercurial.changelog.changelog-class.html#__init__,Method mercurial.cmdutil.changeset_printer.__init__()=mercurial.cmdutil.changeset_printer-class.html#__init__,Method mercurial.cmdutil.changeset_templater.__init__()=mercurial.cmdutil.changeset_templater-class.html#__init__,Method mercurial.config.config.__init__()=mercurial.config.config-class.html#__init__,Method mercurial.config.sortdict.__init__()=mercurial.config.sortdict-class.html#__init__,Method mercurial.context.changectx.__init__()=mercurial.context.changectx-class.html#__init__,Method mercurial.context.filectx.__init__()=mercurial.context.filectx-class.html#__init__,Method mercurial.context.memctx.__init__()=mercurial.context.memctx-class.html#__init__,Method mercurial.context.memfilectx.__init__()=mercurial.context.memfilectx-class.html#__init__,Method mercurial.context.workingctx.__init__()=mercurial.context.workingctx-class.html#__init__,Method mercurial.context.workingfilectx.__init__()=mercurial.context.workingfilectx-class.html#__init__,Method mercurial.dirstate.dirstate.__init__()=mercurial.dirstate.dirstate-class.html#__init__,Method mercurial.dispatch.cmdalias.__init__()=mercurial.dispatch.cmdalias-class.html#__init__,Method mercurial.error.Abort.__init__()=mercurial.error.Abort-class.html#__init__,Method mercurial.error.LockError.__init__()=mercurial.error.LockError-class.html#__init__,Method mercurial.error.LockHeld.__init__()=mercurial.error.LockHeld-class.html#__init__,Method mercurial.error.LookupError.__init__()=mercurial.error.LookupError-class.html#__init__,Method mercurial.filelog.filelog.__init__()=mercurial.filelog.filelog-class.html#__init__,Method mercurial.hgweb.common.ErrorResponse.__init__()=mercurial.hgweb.common.ErrorResponse-class.html#__init__,Method mercurial.hgweb.hgweb_mod.hgweb.__init__()=mercurial.hgweb.hgweb_mod.hgweb-class.html#__init__,Method mercurial.hgweb.hgwebdir_mod.hgwebdir.__init__()=mercurial.hgweb.hgwebdir_mod.hgwebdir-class.html#__init__,Method mercurial.hgweb.protocol.webproto.__init__()=mercurial.hgweb.protocol.webproto-class.html#__init__,Method mercurial.hgweb.request.wsgirequest.__init__()=mercurial.hgweb.request.wsgirequest-class.html#__init__,Method mercurial.hgweb.server.IPv6HTTPServer.__init__()=mercurial.hgweb.server.IPv6HTTPServer-class.html#__init__,Method mercurial.hgweb.server.MercurialHTTPServer.__init__()=mercurial.hgweb.server.MercurialHTTPServer-class.html#__init__,Method mercurial.hgweb.webutil.sessionvars.__init__()=mercurial.hgweb.webutil.sessionvars-class.html#__init__,Method mercurial.httprepo.httprepository.__init__()=mercurial.httprepo.httprepository-class.html#__init__,Method mercurial.httprepo.httpsrepository.__init__()=mercurial.httprepo.httpsrepository-class.html#__init__,Method mercurial.keepalive.ConnectionManager.__init__()=mercurial.keepalive.ConnectionManager-class.html#__init__,Method mercurial.keepalive.HTTPResponse.__init__()=mercurial.keepalive.HTTPResponse-class.html#__init__,Method mercurial.keepalive.KeepAliveHandler.__init__()=mercurial.keepalive.KeepAliveHandler-class.html#__init__,Method mercurial.localrepo.localrepository.__init__()=mercurial.localrepo.localrepository-class.html#__init__,Method mercurial.lock.lock.__init__()=mercurial.lock.lock-class.html#__init__,Method mercurial.lsprof.Stats.__init__()=mercurial.lsprof.Stats-class.html#__init__,Method mercurial.lsprofcalltree.KCacheGrind.__init__()=mercurial.lsprofcalltree.KCacheGrind-class.html#__init__,Method mercurial.manifest.manifest.__init__()=mercurial.manifest.manifest-class.html#__init__,Method mercurial.manifest.manifestdict.__init__()=mercurial.manifest.manifestdict-class.html#__init__,Method mercurial.match.always.__init__()=mercurial.match.always-class.html#__init__,Method mercurial.match.exact.__init__()=mercurial.match.exact-class.html#__init__,Method mercurial.match.match.__init__()=mercurial.match.match-class.html#__init__,Method mercurial.mdiff.diffopts.__init__()=mercurial.mdiff.diffopts-class.html#__init__,Method mercurial.merge.mergestate.__init__()=mercurial.merge.mergestate-class.html#__init__,Method mercurial.parser.parser.__init__()=mercurial.parser.parser-class.html#__init__,Method mercurial.patch.binhunk.__init__()=mercurial.patch.binhunk-class.html#__init__,Method mercurial.patch.hunk.__init__()=mercurial.patch.hunk-class.html#__init__,Method mercurial.patch.linereader.__init__()=mercurial.patch.linereader-class.html#__init__,Method mercurial.patch.patchfile.__init__()=mercurial.patch.patchfile-class.html#__init__,Method mercurial.patch.patchmeta.__init__()=mercurial.patch.patchmeta-class.html#__init__,Method mercurial.revlog.lazyindex.__init__()=mercurial.revlog.lazyindex-class.html#__init__,Method mercurial.revlog.lazymap.__init__()=mercurial.revlog.lazymap-class.html#__init__,Method mercurial.revlog.lazyparser.__init__()=mercurial.revlog.lazyparser-class.html#__init__,Method mercurial.revlog.revlog.__init__()=mercurial.revlog.revlog-class.html#__init__,Method mercurial.revlog.revlogio.__init__()=mercurial.revlog.revlogio-class.html#__init__,Method mercurial.revlog.revlogoldio.__init__()=mercurial.revlog.revlogoldio-class.html#__init__,Method mercurial.simplemerge.Merge3Text.__init__()=mercurial.simplemerge.Merge3Text-class.html#__init__,Method mercurial.sshrepo.remotelock.__init__()=mercurial.sshrepo.remotelock-class.html#__init__,Method mercurial.sshrepo.sshrepository.__init__()=mercurial.sshrepo.sshrepository-class.html#__init__,Method mercurial.sshserver.sshserver.__init__()=mercurial.sshserver.sshserver-class.html#__init__,Method mercurial.statichttprepo.httprangereader.__init__()=mercurial.statichttprepo.httprangereader-class.html#__init__,Method mercurial.statichttprepo.statichttprepository.__init__()=mercurial.statichttprepo.statichttprepository-class.html#__init__,Method mercurial.store.basicstore.__init__()=mercurial.store.basicstore-class.html#__init__,Method mercurial.store.encodedstore.__init__()=mercurial.store.encodedstore-class.html#__init__,Method mercurial.store.fncache.__init__()=mercurial.store.fncache-class.html#__init__,Method mercurial.store.fncachestore.__init__()=mercurial.store.fncachestore-class.html#__init__,Method mercurial.streamclone.StreamException.__init__()=mercurial.streamclone.StreamException-class.html#__init__,Method mercurial.subrepo.hgsubrepo.__init__()=mercurial.subrepo.hgsubrepo-class.html#__init__,Method mercurial.subrepo.svnsubrepo.__init__()=mercurial.subrepo.svnsubrepo-class.html#__init__,Method mercurial.templater.engine.__init__()=mercurial.templater.engine-class.html#__init__,Method mercurial.templater.templater.__init__()=mercurial.templater.templater-class.html#__init__,Method mercurial.transaction.transaction.__init__()=mercurial.transaction.transaction-class.html#__init__,Method mercurial.ui.ui.__init__()=mercurial.ui.ui-class.html#__init__,Method mercurial.url.httpbasicauthhandler.__init__()=mercurial.url.httpbasicauthhandler-class.html#__init__,Method mercurial.url.httpdigestauthhandler.__init__()=mercurial.url.httpdigestauthhandler-class.html#__init__,Method mercurial.url.httpsendfile.__init__()=mercurial.url.httpsendfile-class.html#__init__,Method mercurial.url.httpshandler.__init__()=mercurial.url.httpshandler-class.html#__init__,Method mercurial.url.passwordmgr.__init__()=mercurial.url.passwordmgr-class.html#__init__,Method mercurial.url.proxyhandler.__init__()=mercurial.url.proxyhandler-class.html#__init__,Method mercurial.util.MBTextWrapper.__init__()=mercurial.util.MBTextWrapper-class.html#__init__,Method mercurial.util.atomictempfile.__init__()=mercurial.util.atomictempfile-class.html#__init__,Method mercurial.util.chunkbuffer.__init__()=mercurial.util.chunkbuffer-class.html#__init__,Method mercurial.util.opener.__init__()=mercurial.util.opener-class.html#__init__,Method mercurial.util.path_auditor.__init__()=mercurial.util.path_auditor-class.html#__init__,Method mercurial.util.propertycache.__init__()=mercurial.util.propertycache-class.html#__init__,Method mercurial.windows.winstdout.__init__()=mercurial.windows.winstdout-class.html#__init__,Method mercurial.wireproto.pushres.__init__()=mercurial.wireproto.pushres-class.html#__init__,Method mercurial.wireproto.streamres.__init__()=mercurial.wireproto.streamres-class.html#__init__"><a title="mercurial.archival.fileit.__init__
90mercurial.archival.tarit.GzipFileWithTime.__init__
188<a name="LookupError.__str__"></a><div id="LookupError.__str__-def"><a name="L27"></a><tt class="py-lineno">27</tt> <a class="py-toggle" href="#" id="LookupError.__str__-toggle" onclick="return toggle('LookupError.__str__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="mercurial.error.LookupError-class.html#__str__">__str__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
189</div><div id="LookupError.__str__-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="LookupError.__str__-expanded"><a name="L28"></a><tt class="py-lineno">28</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-5" class="py-name"><a title="mercurial.error.RevlogError" class="py-name" href="#" onclick="return doclink('link-5', 'RevlogError', 'link-3');">RevlogError</a></tt><tt class="py-op">.</tt><tt id="link-6" class="py-name" targets="Method mercurial.context.changectx.__str__()=mercurial.context.changectx-class.html#__str__,Method mercurial.context.filectx.__str__()=mercurial.context.filectx-class.html#__str__,Method mercurial.context.memctx.__str__()=mercurial.context.memctx-class.html#__str__,Method mercurial.context.memfilectx.__str__()=mercurial.context.memfilectx-class.html#__str__,Method mercurial.context.workingctx.__str__()=mercurial.context.workingctx-class.html#__str__,Method mercurial.context.workingfilectx.__str__()=mercurial.context.workingfilectx-class.html#__str__,Method mercurial.error.LookupError.__str__()=mercurial.error.LookupError-class.html#__str__,Method mercurial.streamclone.StreamException.__str__()=mercurial.streamclone.StreamException-class.html#__str__"><a title="mercurial.context.changectx.__str__
190mercurial.context.filectx.__str__
318</div><a name="L50"></a><tt class="py-lineno">50</tt>  <tt class="py-line"> </tt>
319<a name="CapabilityError"></a><div id="CapabilityError-def"><a name="L51"></a><tt class="py-lineno">51</tt> <a class="py-toggle" href="#" id="CapabilityError-toggle" onclick="return toggle('CapabilityError');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="mercurial.error.CapabilityError-class.html">CapabilityError</a><tt class="py-op">(</tt><tt class="py-base-class">RepoError</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
320</div><div id="CapabilityError-collapsed" style="display:none;" pad="++" indent="++++"></div><div id="CapabilityError-expanded"><a name="L52"></a><tt class="py-lineno">52</tt>  <tt class="py-line">    <tt class="py-keyword">pass</tt> </tt>
322<a name="LockError"></a><div id="LockError-def"><a name="L54"></a><tt class="py-lineno">54</tt> <a class="py-toggle" href="#" id="LockError-toggle" onclick="return toggle('LockError');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="mercurial.error.LockError-class.html">LockError</a><tt class="py-op">(</tt><tt class="py-base-class">IOError</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
323</div><div id="LockError-collapsed" style="display:none;" pad="++" indent="++++"></div><div id="LockError-expanded"><a name="LockError.__init__"></a><div id="LockError.__init__-def"><a name="L55"></a><tt class="py-lineno">55</tt> <a class="py-toggle" href="#" id="LockError.__init__-toggle" onclick="return toggle('LockError.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="mercurial.error.LockError-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">errno</tt><tt class="py-op">,</tt> <tt class="py-param">strerror</tt><tt class="py-op">,</tt> <tt class="py-param">filename</tt><tt class="py-op">,</tt> <tt class="py-param">desc</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
324</div><div id="LockError.__init__-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="LockError.__init__-expanded"><a name="L56"></a><tt class="py-lineno">56</tt>  <tt class="py-line">        <tt class="py-name">IOError</tt><tt class="py-op">.</tt><tt id="link-9" class="py-name"><a title="mercurial.archival.fileit.__init__
error.js https://bitbucket.org/msheshtawy/bespin-login-page | JavaScript | 158 lines
13  Many API's within SproutCore will return an instance of this object whenever
14  they have an error occur.  An error includes an error code, description,
15  and optional human readable label that indicates the item that failed. 
19  
20  You can pass error objects to various UI elements to display the error in
21  the interface. You can easily determine if the value returned by some API is 
38  /**
39    error code.  Used to designate the error type.
40    
142  if (obj && obj.isError) {
143    return obj.get ? obj.get('errorValue') : null ; // Error has no value
144  } else return obj ;
152/**
153  Standard error code for errors that do not support multiple values.
154  
user-error.html.tmpl https://bitbucket.org/a1kmm/physiome-tracker | Unknown | 1,864 lines
24  # header_done: boolean. True if the Bugzilla header has already been printed.
25  # error: string. The tag of the error, or the error message to be displayed
26  # (deprecated). May contain HTML if it's an error message.
29[%# This is a list of all the possible user errors. Please keep them in
30  # alphabetical order by error tag, and leave a blank line between errors.
31  #
1768
1769[%# We only want HTML error messages for ERROR_MODE_WEBPAGE %]
1770[% USE Bugzilla %]
1770[% USE Bugzilla %]
1771[% IF Bugzilla.error_mode != constants.ERROR_MODE_WEBPAGE %]
1772  [% IF Bugzilla.usage_mode == constants.USAGE_MODE_BROWSER %]
1790  <tr>
1791    <td id="error_msg" class="throw_error">
1792      [% error_message FILTER none %]
code-error.html.tmpl https://bitbucket.org/a1kmm/physiome-tracker | Unknown | 545 lines
22  # header_done: boolean. True if the header has already been printed.
23  # error: string. The tag of the error.
24  # variables: hash. Useful data about the problem. The keys are the variable
28[%# This is a list of all the possible code errors. Please keep them in
29  # alphabetical order by error tag, and leave a blank line between errors.
30  #
488
489[%# We only want HTML error messages for ERROR_MODE_WEBPAGE %]
490[% USE Bugzilla %]
490[% USE Bugzilla %]
491[% IF Bugzilla.error_mode != constants.ERROR_MODE_WEBPAGE %]
492  [% IF Bugzilla.usage_mode == constants.USAGE_MODE_BROWSER %]
525  <tr>
526    <td id="error_msg" class="throw_error">
527      [% error_message FILTER none %]
error.h https://bitbucket.org/mkramer/cyassl | C++ Header | 93 lines
1/* error.h
2 *
23#ifndef CTAO_CRYPT_ERROR_H
24#define CTAO_CRYPT_ERROR_H
25
33
34/* error codes */
35enum {
35enum {
36    MAX_ERROR_SZ       =  80,   /* max size of error string */
37    MAX_CODE_E         = -100,  /* errors -101 - -199 */
37    MAX_CODE_E         = -100,  /* errors -101 - -199 */
38    OPEN_RAN_E         = -101,  /* opening random device error */
39    READ_RAN_E         = -102,  /* reading random device error */
83
84void CTaoCryptErrorString(int error, char* buffer);
85
IPython.kernel.core.error.html https://bitbucket.org/noahgift/pylons-rest-tutorial | HTML | 210 lines
69<div class="section" id="controllercreationerror">
70<h3><a title="IPython.kernel.core.error.ControllerCreationError" class="reference internal" href="#IPython.kernel.core.error.ControllerCreationError"><tt class="xref docutils literal"><span class="pre">ControllerCreationError</span></tt></a><a class="headerlink" href="#controllercreationerror" title="Permalink to this headline">�</a></h3>
71<dl class="class">
86<dt id="IPython.kernel.core.error.ControllerError">
87<!--[IPython.kernel.core.error.ControllerError]-->class <tt class="descclassname">IPython.kernel.core.error.</tt><tt class="descname">ControllerError</tt><a class="headerlink" href="#IPython.kernel.core.error.ControllerError" title="Permalink to this definition">�</a></dt>
88<dd><p>Bases: <a title="IPython.kernel.core.error.IPythonError" class="reference internal" href="#IPython.kernel.core.error.IPythonError"><tt class="xref docutils literal"><span class="pre">IPython.kernel.core.error.IPythonError</span></tt></a></p>
97<div class="section" id="enginecreationerror">
98<h3><a title="IPython.kernel.core.error.EngineCreationError" class="reference internal" href="#IPython.kernel.core.error.EngineCreationError"><tt class="xref docutils literal"><span class="pre">EngineCreationError</span></tt></a><a class="headerlink" href="#enginecreationerror" title="Permalink to this headline">�</a></h3>
99<dl class="class">
111<div class="section" id="engineerror">
112<h3><a title="IPython.kernel.core.error.EngineError" class="reference internal" href="#IPython.kernel.core.error.EngineError"><tt class="xref docutils literal"><span class="pre">EngineError</span></tt></a><a class="headerlink" href="#engineerror" title="Permalink to this headline">�</a></h3>
113<dl class="class">
115<!--[IPython.kernel.core.error.EngineError]-->class <tt class="descclassname">IPython.kernel.core.error.</tt><tt class="descname">EngineError</tt><a class="headerlink" href="#IPython.kernel.core.error.EngineError" title="Permalink to this definition">�</a></dt>
116<dd><p>Bases: <a title="IPython.kernel.core.error.IPythonError" class="reference internal" href="#IPython.kernel.core.error.IPythonError"><tt class="xref docutils literal"><span class="pre">IPython.kernel.core.error.IPythonError</span></tt></a></p>
117<dl class="method">
rolling-log.Error.txt https://bitbucket.org/nesteruk/typografix | Unknown | 614 lines
109/14/2010 13:30:54 Error Error during loading configuration. Message : Error validating XML configuration file.. 
2 System.InvalidOperationException: Error validating XML configuration file. ---> System.Xml.Schema.XmlSchemaValidationException: The 'apptype' attribute is invalid - The value 'Window' is invalid according to its datatype 'String' - The Enumeration constraint failed. ---> System.Xml.Schema.XmlSchemaException: The Enumeration constraint failed.
22   at NBox.Program.readBuildConfiguration(String configFilePath)
2309/14/2010 13:30:54 Error Error while building project. Exception : System.InvalidOperationException: Error validating XML configuration file. ---> System.Xml.Schema.XmlSchemaValidationException: The 'apptype' attribute is invalid - The value 'Window' is invalid according to its datatype 'String' - The Enumeration constraint failed. ---> System.Xml.Schema.XmlSchemaException: The Enumeration constraint failed.
24   --- End of inner exception stack trace ---
45 
4609/14/2010 13:32:14 Error Error during loading configuration. Message : Error validating XML configuration file.. 
47 System.InvalidOperationException: Error validating XML configuration file. ---> System.Xml.Schema.XmlSchemaValidationException: The 'apptype' attribute is invalid - The value 'Windows' is invalid according to its datatype 'String' - The Enumeration constraint failed. ---> System.Xml.Schema.XmlSchemaException: The Enumeration constraint failed.
67   at NBox.Program.readBuildConfiguration(String configFilePath)
6809/14/2010 13:32:14 Error Error while building project. Exception : System.InvalidOperationException: Error validating XML configuration file. ---> System.Xml.Schema.XmlSchemaValidationException: The 'apptype' attribute is invalid - The value 'Windows' is invalid according to its datatype 'String' - The Enumeration constraint failed. ---> System.Xml.Schema.XmlSchemaException: The Enumeration constraint failed.
69   --- End of inner exception stack trace ---
555 
55609/14/2010 14:24:21 Error Error during loading configuration. Message : Error validating XML configuration file.. 
557 System.InvalidOperationException: Error validating XML configuration file. ---> System.Xml.Schema.XmlSchemaValidationException: The element 'compiler-options' in namespace 'http://www.elwood.su/projects/nbox/schemas/config-file/v1.0' cannot contain text. List of possible elements expected: 'options' in namespace 'http://www.elwood.su/projects/nbox/schemas/config-file/v1.0'.
572   at NBox.Program.readBuildConfiguration(String configFilePath) in C:\Users\Administrator\Projects\Globals\NBox\NBox\Program.cs:line 37
57309/14/2010 14:24:21 Error Error while building project. Exception : System.InvalidOperationException: Error validating XML configuration file. ---> System.Xml.Schema.XmlSchemaValidationException: The element 'compiler-options' in namespace 'http://www.elwood.su/projects/nbox/schemas/config-file/v1.0' cannot contain text. List of possible elements expected: 'options' in namespace 'http://www.elwood.su/projects/nbox/schemas/config-file/v1.0'.
574   --- End of inner exception stack trace ---
Error.3pm https://bitbucket.org/tharris/wormbase-gbrowse1 | Unknown | 518 lines
132.SH "NAME"
133Error \- Error/exception handling in an OO\-ish way
134.SH "WARNING"
229When evaluated \f(CW\*(C`BLOCK\*(C'\fR will be passed one argument, which will be the
230error being processed. The error will also be available in \f(CW$@\fR.
231.Sp
371A method that will return a value that can be associated with the
372error. For example if an error was created due to the failure of a
373system call, then this may return the numeric value of \f(CW$!\fR at the
416\&    {
417\&        local $Error::ObjectifyCallback = \e&throw_MyError_Bar;
418\&
489.PP
490Error::Exception aims to combine Error and Exception::Class
491\&\*(L"with correct stringification\*(R".
function.set-error-handler.html https://bitbucket.org/fally/configs | HTML | 370 lines
42   and your error handler will be called regardless - however you are still
43   able to read the current value of <a href="errorfunc.configuration.html#ini.error-reporting" class="link">error_reporting</a> and
44   act appropriately. Of particular note is that this value will be 0 if the
207       <i><tt class="parameter">error_handler</tt></i>
208 function just like the <a href="errorfunc.configuration.html#ini.error-reporting" class="link">error_reporting</a> ini setting 
209       controls which errors are shown. Without this mask set the
252       <td colspan="1" rowspan="1" align="left">
253        The error handler must return <b><tt>FALSE</tt></b> to populate <a href="reserved.variables.phperrormsg.html" class="link">$php_errormsg</a>.
254       </td>
296   <div class="example">
297    <p><b>Example #1 Error handling with <b>set_error_handler()</b> and <a href="function.trigger-error.html" class="function">trigger_error()</a></b></p>
298    <div class="example-contents"><p>
303<div class="phpcode"><code><span style="color: #000000">
304<span style="color: #0000BB">&lt;?php<br /></span><span style="color: #FF8000">//&nbsp;error&nbsp;handler&nbsp;function<br /></span><span style="color: #007700">function&nbsp;</span><span style="color: #0000BB">myErrorHandler</span><span style="color: #007700">(</span><span style="color: #0000BB">$errno</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$errstr</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$errfile</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$errline</span><span style="color: #007700">)<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;switch&nbsp;(</span><span style="color: #0000BB">$errno</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;case&nbsp;</span><span style="color: #0000BB">E_USER_ERROR</span><span style="color: #007700">:<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;</span><span style="color: #DD0000">"&lt;b&gt;My&nbsp;ERROR&lt;/b&gt;&nbsp;[$errno]&nbsp;$errstr&lt;br&nbsp;/&gt;\n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;</span><span style="color: #DD0000">"&nbsp;&nbsp;Fatal&nbsp;error&nbsp;on&nbsp;line&nbsp;$errline&nbsp;in&nbsp;file&nbsp;$errfile"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;</span><span style="color: #DD0000">",&nbsp;PHP&nbsp;"&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">PHP_VERSION&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #DD0000">"&nbsp;("&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">PHP_OS&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #DD0000">")&lt;br&nbsp;/&gt;\n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;</span><span style="color: #DD0000">"Aborting...&lt;br&nbsp;/&gt;\n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;exit(</span><span style="color: #0000BB">1</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;case&nbsp;</span><span style="color: #0000BB">E_USER_WARNING</span><span style="color: #007700">:<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;</span><span style="color: #DD0000">"&lt;b&gt;My&nbsp;WARNING&lt;/b&gt;&nbsp;[$errno]&nbsp;$errstr&lt;br&nbsp;/&gt;\n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;case&nbsp;</span><span style="color: #0000BB">E_USER_NOTICE</span><span style="color: #007700">:<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;</span><span style="color: #DD0000">"&lt;b&gt;My&nbsp;NOTICE&lt;/b&gt;&nbsp;[$errno]&nbsp;$errstr&lt;br&nbsp;/&gt;\n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;default:<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;</span><span style="color: #DD0000">"Unknown&nbsp;error&nbsp;type:&nbsp;[$errno]&nbsp;$errstr&lt;br&nbsp;/&gt;\n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break;<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">/*&nbsp;Don't&nbsp;execute&nbsp;PHP&nbsp;internal&nbsp;error&nbsp;handler&nbsp;*/<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">return&nbsp;</span><span style="color: #0000BB">true</span><span style="color: #007700">;<br />}<br /><br /></span><span style="color: #FF8000">//&nbsp;function&nbsp;to&nbsp;test&nbsp;the&nbsp;error&nbsp;handling<br /></span><span style="color: #007700">function&nbsp;</span><span style="color: #0000BB">scale_by_log</span><span style="color: #007700">(</span><span style="color: #0000BB">$vect</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$scale</span><span style="color: #007700">)<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(!</span><span style="color: #0000BB">is_numeric</span><span style="color: #007700">(</span><span style="color: #0000BB">$scale</span><span style="color: #007700">)&nbsp;||&nbsp;</span><span style="color: #0000BB">$scale&nbsp;</span><span style="color: #007700">&lt;=&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">trigger_error</span><span style="color: #007700">(</span><span style="color: #DD0000">"log(x)&nbsp;for&nbsp;x&nbsp;&lt;=&nbsp;0&nbsp;is&nbsp;undefined,&nbsp;you&nbsp;used:&nbsp;scale&nbsp;=&nbsp;$scale"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">E_USER_ERROR</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(!</span><span style="color: #0000BB">is_array</span><span style="color: #007700">(</span><span style="color: #0000BB">$vect</span><span style="color: #007700">))&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">trigger_error</span><span style="color: #007700">(</span><span style="color: #DD0000">"Incorrect&nbsp;input&nbsp;vector,&nbsp;array&nbsp;of&nbsp;values&nbsp;expected"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">E_USER_WARNING</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;</span><span style="color: #0000BB">null</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$temp&nbsp;</span><span style="color: #007700">=&nbsp;array();<br />&nbsp;&nbsp;&nbsp;&nbsp;foreach(</span><span style="color: #0000BB">$vect&nbsp;</span><span style="color: #007700">as&nbsp;</span><span style="color: #0000BB">$pos&nbsp;</span><span style="color: #007700">=&gt;&nbsp;</span><span style="color: #0000BB">$value</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(!</span><span style="color: #0000BB">is_numeric</span><span style="color: #007700">(</span><span style="color: #0000BB">$value</span><span style="color: #007700">))&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">trigger_error</span><span style="color: #007700">(</span><span style="color: #DD0000">"Value&nbsp;at&nbsp;position&nbsp;$pos&nbsp;is&nbsp;not&nbsp;a&nbsp;number,&nbsp;using&nbsp;0&nbsp;(zero)"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">E_USER_NOTICE</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$value&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$temp</span><span style="color: #007700">[</span><span style="color: #0000BB">$pos</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #0000BB">log</span><span style="color: #007700">(</span><span style="color: #0000BB">$scale</span><span style="color: #007700">)&nbsp;*&nbsp;</span><span style="color: #0000BB">$value</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;</span><span style="color: #0000BB">$temp</span><span style="color: #007700">;<br />}<br /><br /></span><span style="color: #FF8000">//&nbsp;set&nbsp;to&nbsp;the&nbsp;user&nbsp;defined&nbsp;error&nbsp;handler<br /></span><span style="color: #0000BB">$old_error_handler&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">set_error_handler</span><span style="color: #007700">(</span><span style="color: #DD0000">"myErrorHandler"</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">//&nbsp;trigger&nbsp;some&nbsp;errors,&nbsp;first&nbsp;define&nbsp;a&nbsp;mixed&nbsp;array&nbsp;with&nbsp;a&nbsp;non-numeric&nbsp;item<br /></span><span style="color: #007700">echo&nbsp;</span><span style="color: #DD0000">"vector&nbsp;a\n"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$a&nbsp;</span><span style="color: #007700">=&nbsp;array(</span><span style="color: #0000BB">2</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">3</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"foo"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">5.5</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">43.3</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">21.11</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">print_r</span><span style="color: #007700">(</span><span style="color: #0000BB">$a</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">//&nbsp;now&nbsp;generate&nbsp;second&nbsp;array<br /></span><span style="color: #007700">echo&nbsp;</span><span style="color: #DD0000">"----\nvector&nbsp;b&nbsp;-&nbsp;a&nbsp;notice&nbsp;(b&nbsp;=&nbsp;log(PI)&nbsp;*&nbsp;a)\n"</span><span style="color: #007700">;<br /></span><span style="color: #FF8000">/*&nbsp;Value&nbsp;at&nbsp;position&nbsp;$pos&nbsp;is&nbsp;not&nbsp;a&nbsp;number,&nbsp;using&nbsp;0&nbsp;(zero)&nbsp;*/<br /></span><span style="color: #0000BB">$b&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">scale_by_log</span><span style="color: #007700">(</span><span style="color: #0000BB">$a</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">M_PI</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">print_r</span><span style="color: #007700">(</span><span style="color: #0000BB">$b</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">//&nbsp;this&nbsp;is&nbsp;trouble,&nbsp;we&nbsp;pass&nbsp;a&nbsp;string&nbsp;instead&nbsp;of&nbsp;an&nbsp;array<br /></span><span style="color: #007700">echo&nbsp;</span><span style="color: #DD0000">"----\nvector&nbsp;c&nbsp;-&nbsp;a&nbsp;warning\n"</span><span style="color: #007700">;<br /></span><span style="color: #FF8000">/*&nbsp;Incorrect&nbsp;input&nbsp;vector,&nbsp;array&nbsp;of&nbsp;values&nbsp;expected&nbsp;*/<br /></span><span style="color: #0000BB">$c&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">scale_by_log</span><span style="color: #007700">(</span><span style="color: #DD0000">"not&nbsp;array"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">2.3</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">$c</span><span style="color: #007700">);&nbsp;</span><span style="color: #FF8000">//&nbsp;NULL<br /><br />//&nbsp;this&nbsp;is&nbsp;a&nbsp;critical&nbsp;error,&nbsp;log&nbsp;of&nbsp;zero&nbsp;or&nbsp;negative&nbsp;number&nbsp;is&nbsp;undefined<br /></span><span style="color: #007700">echo&nbsp;</span><span style="color: #DD0000">"----\nvector&nbsp;d&nbsp;-&nbsp;fatal&nbsp;error\n"</span><span style="color: #007700">;<br /></span><span style="color: #FF8000">/*&nbsp;log(x)&nbsp;for&nbsp;x&nbsp;&lt;=&nbsp;0&nbsp;is&nbsp;undefined,&nbsp;you&nbsp;used:&nbsp;scale&nbsp;=&nbsp;$scale"&nbsp;*/<br /></span><span style="color: #0000BB">$d&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">scale_by_log</span><span style="color: #007700">(</span><span style="color: #0000BB">$a</span><span style="color: #007700">,&nbsp;-</span><span style="color: #0000BB">2.5</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">$d</span><span style="color: #007700">);&nbsp;</span><span style="color: #FF8000">//&nbsp;Never&nbsp;reached<br /></span><span style="color: #0000BB">?&gt;</span>
305</span>
gpg-error.h.in https://bitbucket.org/lkalif/emerald-snowglobe | Unknown | 212 lines
49
50   An error code together with an error source build up an error
51   value.  As the error value is been passed from one component to
87
88    /* The following error codes are used to map system errors.  */
89#define GPG_ERR_SYSTEM_ERROR	(1 << 15)
162   code in the error value ERR.  This function is not thread-safe.  */
163const char *gpg_strerror (gpg_error_t err);
164
171   beginning of the error string as fits into the buffer.  */
172int gpg_strerror_r (gpg_error_t err, char *buf, size_t buflen);
173
180
181/* Retrieve the error code for the system error ERR.  This returns
182   GPG_ERR_UNKNOWN_ERRNO if the system error is not mapped (report
libgpg-error.pot https://bitbucket.org/lkalif/emerald-snowglobe | Unknown | 912 lines
91#: src/err-codes.h:29
92msgid "General error"
93msgstr ""
127#: src/err-codes.h:38
128msgid "Checksum error"
129msgstr ""
203#: src/err-codes.h:57
204msgid "Syntax error"
205msgstr ""
227#: src/err-codes.h:63
228msgid "Trust DB error"
229msgstr ""
239#: src/err-codes.h:66
240msgid "Unexpected error"
241msgstr ""
Error.h https://bitbucket.org/swishnousky/scai-zerg-team | C++ Header | 132 lines
7
8  /** Functions in BWAPI may set an error code. To retrieve the error code, call Game::getLastError. */
9  class Error
13      Error(int id);
14      Error(const Error& other);
15      Error& operator=(const Error& other);
22
23      /** Returns the name of the error. For example Errors::Insufficient_Minerals?.toString() will return a
24       * std::string object containing "Insufficient Minerals". */
31    /** Given the name of an error, this function will return the error code. For example:
32     * Errors::getError("Unbuildable Location") will return Errors::Unbuildable_Location?. */
33    Error getError(std::string name);
35    /** The set of all the error codes. */
36    std::set<Error>& allErrors();
37
error.js https://bitbucket.org/ytkyaw/ydn-db.git | JavaScript | 483 lines
103  if (Error.captureStackTrace) {
104    Error.captureStackTrace(this, ydn.db.VersionError);
105  } else {
415  if (Error.captureStackTrace) {
416    Error.captureStackTrace(this, ydn.db.TimeoutError);
417  } else {
425};
426goog.inherits(ydn.db.TimeoutError, Error);
427
439  if (Error.captureStackTrace) {
440    Error.captureStackTrace(this, ydn.db.TxError);
441  } else {
450};
451goog.inherits(ydn.db.TxError, Error);
452
0040-error.lua git://github.com/lua-aplicado/lua-aplicado.git | Lua | 583 lines
261            function()
262              fail("TEST_ERROR", "test error")
263            end
387test:case "rethrow-fail" (function(env)
388  local failure_obj = create_error_object("TEST_ERROR", "test error")
389  ensure_returns(
424  ensure("error object is table", is_table(value))
425  ensure_equals("error object has proper error ID set", value[2], "TEST_ERROR")
426
470  ensure_returns(
471      "is_error_object() does not recognize nil as error object",
472      1, { false },
536                function()
537                  fail("TEST_ERROR", "test error")
538                end
error.js https://bitbucket.org/ytkyaw/ydn-base.git | JavaScript | 205 lines
112  if (Error.captureStackTrace) {
113    Error.captureStackTrace(this, ydn.error.InternalError);
114  } else {
122};
123goog.inherits(ydn.error.InternalError, Error);
124
149
150ydn.error.ConstraintError.prototype.name = 'ydn.error.ConstraintError';
151
190  if (Error.captureStackTrace) {
191    Error.captureStackTrace(this, ydn.error.InvalidOperationError);
192  } else {
200};
201goog.inherits(ydn.error.InvalidOperationError, Error);
202
error.js https://bitbucket.org/ytkyaw/ydn-base.git | JavaScript | 166 lines
60};
61goog.inherits(ydn.debug.error.TypeError, goog.debug.Error);
62
116  if (Error.captureStackTrace) {
117    Error.captureStackTrace(this, ydn.debug.error.InternalError);
118  } else {
133 */
134ydn.debug.error.InternalError.prototype.name = 'ydn.error.InternalError';
135
157};
158goog.inherits(ydn.debug.error.ConstraintError, Error);
159
164 */
165ydn.debug.error.ConstraintError.prototype.name = 'ydn.error.ConstraintError';
166
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21