PageRenderTime 14ms queryFilters 1ms Sphinxql 3007ms GetByIds 52ms meta 0ms repositoryFilters 13ms languageFilters 17ms sourceFilters 2ms

3,992,007 results for 'ERROR repo:romanbsd/rb-gsl' (14 ms)

Source

Language

Repository

glib-Error-Reporting.html https://bitbucket.org/super119/plu2youku.git | HTML | 814 lines
66void                <a class="link" href="glib-Error-Reporting.html#g-error-free" title="g_error_free ()">g_error_free</a>                        (<a class="link" href="glib-Error-Reporting.html#GError" title="GError">GError</a> *error);
67<a class="link" href="glib-Error-Reporting.html#GError" title="GError">GError</a>*             <a class="link" href="glib-Error-Reporting.html#g-error-copy" title="g_error_copy ()">g_error_copy</a>                        (const <a class="link" href="glib-Error-Reporting.html#GError" title="GError">GError</a> *error);
68<a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean">gboolean</a>            <a class="link" href="glib-Error-Reporting.html#g-error-matches" title="g_error_matches ()">g_error_matches</a>                     (const <a class="link" href="glib-Error-Reporting.html#GError" title="GError">GError</a> *error,
183When implementing a function that can report errors, the basic tool is
184<a class="link" href="glib-Error-Reporting.html#g-set-error" title="g_set_error ()"><code class="function">g_set_error()</code></a>. Typically, if a fatal error occurs you want to <a class="link" href="glib-Error-Reporting.html#g-set-error" title="g_set_error ()"><code class="function">g_set_error()</code></a>,
185then return immediately. <a class="link" href="glib-Error-Reporting.html#g-set-error" title="g_set_error ()"><code class="function">g_set_error()</code></a> does nothing if the error location passed
372          The last argument of a function that returns an error should be a
373          location where a <a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> can be placed (i.e. "<a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a>** error").  If
374          <a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> is used with varargs, the <a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a>** should be the last
402          of continuing. If you were able to continue, you should have cleared
403          the previous error with <a class="link" href="glib-Error-Reporting.html#g-clear-error" title="g_clear_error ()"><code class="function">g_clear_error()</code></a>. <a class="link" href="glib-Error-Reporting.html#g-set-error" title="g_set_error ()"><code class="function">g_set_error()</code></a> will complain
404          if you pile up errors.
569<a name="g-error-copy"></a><h3>g_error_copy ()</h3>
570<pre class="programlisting"><a class="link" href="glib-Error-Reporting.html#GError" title="GError">GError</a>*             g_error_copy                        (const <a class="link" href="glib-Error-Reporting.html#GError" title="GError">GError</a> *error);</pre>
571<p>
error-handler.js https://bitbucket.org/jmchen/pysource.git | JavaScript | 293 lines
1
2module.exports = errorHandler
3
24    if (wroteLogFile) {
25      log.error("", [""
26                ,"Additional logging details can be found in:"
30    }
31    log.error("not ok", "code", code)
32  }
71  var printStack = false
72  // console.error("errorHandler", er)
73  if (!npm.config.loaded) {
88  } else if (!(er instanceof Error)) {
89    log.error("weird error", er)
90    return exit(1, true)
lt-error.c https://bitbucket.org/jlec/liblangtag.git | C | 243 lines
88void
89lt_error_unref(lt_error_t *error)
90{
106lt_error_t *
107lt_error_set(lt_error_t      **error,
108	     lt_error_type_t   type,
167void
168lt_error_clear(lt_error_t *error)
169{
188lt_bool_t
189lt_error_is_set(lt_error_t      *error,
190		lt_error_type_t  type)
217void
218lt_error_print(lt_error_t      *error,
219	       lt_error_type_t  type)
error.php https://bitbucket.org/biojazzard/joomla-eboracast.git | PHP | 886 lines
223	/**
224	 * Wrapper method for the raise() method with predefined error level of E_ERROR and backtrace set to true.
225	 *
346		{
347			return self::raiseError(E_ERROR, 'JError:' . JERROR_ILLEGAL_MODE, 'Error Handling mode is not known', 'Mode: ' . $mode . ' is not implemented.');
348		}
361				{
362					return self::raiseError(E_ERROR, 'JError:' . JERROR_ILLEGAL_OPTIONS, 'Options for callback not valid');
363				}
410
411		set_error_handler(array('JError', 'customErrorHandler'));
412	}
802	 *
803	 * @param   integer  $level  The error level - use any of PHP's own error levels
804	 *                   for this: E_ERROR, E_WARNING, E_NOTICE, E_USER_ERROR,
error.php https://bitbucket.org/synergylearning/campusconnect.git | PHP | 573 lines
230$string['errorcreatingrole'] = 'Error creating role';
231$string['errorfetchingrssfeed'] = 'Error fetching RSS feed.';
232$string['erroronline'] = 'Error on line {$a}';
232$string['erroronline'] = 'Error on line {$a}';
233$string['errorparsingxml'] = 'Error parsing XML: {$a->errorstring} at line {$a->errorline}, char {$a->errorchar}';
234$string['errorreadingfile'] = 'Error reading file "{$a}"';
507$string['unknowformat'] = 'Format not known ({$a})';
508$string['unknownbackupexporterror'] = 'Unknown error preparing information for import';
509$string['unknownblockregion'] = 'The block region \'{$a}\' is not recognised on this page.';
541$string['usermustbemnet'] = 'Users in the MNET access control list must be remote MNET users';
542$string['usernotaddederror'] = 'User not added - error';
543$string['usernotaddedregistered'] = 'User not added - already registered';
545$string['usernotdeletedadmin'] = 'User not deleted - can not delete administrator accounts';
546$string['usernotdeletederror'] = 'User not deleted - error';
547$string['usernotdeletedmissing'] = 'User not deleted - could not find the username';
Error.php https://bitbucket.org/sanders_nick/legacy-media.git | PHP | 624 lines
97	function add ($ShoppError) {
98		if (isset($ShoppError->code)) $this->errors[$ShoppError->code] = $ShoppError;
99		else $this->errors[] = $ShoppError;
130		foreach ($this->errors as &$error)
131			if ($error->level == $level) $errors[] = &$error;
132		return $errors;
187	 *
188	 * @param ShoppError $error The ShoppError object to remove
189	 * @return boolean True when removed, false if removal failed
350			$Errors = ShoppErrors();
351			if (!empty($Errors->errors)) $Errors->remove($this);
352		}
549	 *
550	 * @param ShoppError $error The error object
551	 * @return void
error.log https://bitbucket.org/duschmidt/camcontrol.git | Unknown | 112 lines
12[Sat Feb 09 14:41:00 2013] [error] [client 192.168.1.6]     sys.path.insert('/home/pi/python/servo/')
13[Sat Feb 09 14:41:00 2013] [error] [client 192.168.1.6] TypeError: insert() takes exactly 2 arguments (1 given)
14[Sat Feb 09 14:41:00 2013] [error] [client 192.168.1.6] File does not exist: /home/pi/python/servo/public_html/favicon.ico
46[Sat Feb 09 14:50:15 2013] [error] [client 192.168.1.6]                      ^
47[Sat Feb 09 14:50:15 2013] [error] [client 192.168.1.6] SyntaxError: invalid syntax
48[Sat Feb 09 14:50:15 2013] [error] [client 192.168.1.6] File does not exist: /home/pi/python/servo/public_html/favicon.ico
56[Sat Feb 09 14:53:08 2013] [error] [client 192.168.1.6]                    ^
57[Sat Feb 09 14:53:08 2013] [error] [client 192.168.1.6] SyntaxError: invalid syntax
58[Sat Feb 09 14:53:08 2013] [error] [client 192.168.1.6] File does not exist: /home/pi/python/servo/public_html/favicon.ico
66[Sat Feb 09 14:53:15 2013] [error] [client 192.168.1.6]                    ^
67[Sat Feb 09 14:53:15 2013] [error] [client 192.168.1.6] SyntaxError: invalid syntax
68[Sat Feb 09 14:53:15 2013] [error] [client 192.168.1.6] File does not exist: /home/pi/python/servo/public_html/favicon.ico
76[Sat Feb 09 14:53:24 2013] [error] [client 192.168.1.6]                    ^
77[Sat Feb 09 14:53:24 2013] [error] [client 192.168.1.6] SyntaxError: invalid syntax
78[Sat Feb 09 14:53:24 2013] [error] [client 192.168.1.6] File does not exist: /home/pi/python/servo/public_html/favicon.ico
error.php https://bitbucket.org/asosso/joomla25.git | PHP | 910 lines
359		{
360			return JError::raiseError(E_ERROR, 'JError:' . JERROR_ILLEGAL_MODE, 'Error Handling mode is not known', 'Mode: ' . $mode . ' is not implemented.');
361		}
374				{
375					return JError::raiseError(E_ERROR, 'JError:' . JERROR_ILLEGAL_OPTIONS, 'Options for callback not valid');
376				}
424
425		set_error_handler(array('JError', 'customErrorHandler'));
426	}
541
542		$level_human = JError::translateErrorLevel($error->get('level'));
543
615
616		$level_human = JError::translateErrorLevel($error->get('level'));
617		$info = $error->get('info');
error.log https://bitbucket.org/valentinbyhr/continental-tablet.git | Unknown | 130 lines
1[Wed Feb 20 06:58:28 2013] [error] [client 178.154.173.30] File does not exist: /www/w22415/www-root/robots.txt
2[Wed Feb 20 07:01:59 2013] [error] [client 81.235.186.242] File does not exist: /www/w22415/www-root/favicon.ico
2[Wed Feb 20 07:01:59 2013] [error] [client 81.235.186.242] File does not exist: /www/w22415/www-root/favicon.ico
3[Wed Feb 20 07:02:15 2013] [error] [client 81.235.186.242] File does not exist: /www/w22415/www-root/favicon.ico
4[Wed Feb 20 07:09:50 2013] [error] [client 157.56.229.185] File does not exist: /www/w22415/www-root/robots.txt
4[Wed Feb 20 07:09:50 2013] [error] [client 157.56.229.185] File does not exist: /www/w22415/www-root/robots.txt
5[Wed Feb 20 07:45:11 2013] [error] [client 123.125.71.71] Directory index forbidden by rule: /www/w22415/www-root/wp-content/themes/tv-elements/js/
6[Wed Feb 20 08:51:07 2013] [error] [client 123.125.71.92] File does not exist: /www/w22415/www-root/robots.txt
6[Wed Feb 20 08:51:07 2013] [error] [client 123.125.71.92] File does not exist: /www/w22415/www-root/robots.txt
7[Wed Feb 20 09:15:24 2013] [error] [client 194.237.190.2] File does not exist: /www/w22415/www-root/favicon.ico
8[Wed Feb 20 09:15:27 2013] [error] [client 194.237.190.2] File does not exist: /www/w22415/www-root/favicon.ico
8[Wed Feb 20 09:15:27 2013] [error] [client 194.237.190.2] File does not exist: /www/w22415/www-root/favicon.ico
9[Wed Feb 20 09:15:30 2013] [error] [client 194.237.190.2] File does not exist: /www/w22415/www-root/favicon.ico
10[Wed Feb 20 09:15:36 2013] [error] [client 194.237.190.2] File does not exist: /www/w22415/www-root/kampanj
10[Wed Feb 20 09:15:36 2013] [error] [client 194.237.190.2] File does not exist: /www/w22415/www-root/kampanj
11[Wed Feb 20 09:15:36 2013] [error] [client 194.237.190.2] File does not exist: /www/w22415/www-root/favicon.ico
12[Wed Feb 20 09:17:34 2013] [error] [client 66.249.73.13] File does not exist: /www/w22415/www-root/robots.txt
error-oom-bookmarkview.txt https://bitbucket.org/pdboynton/fpcmobile-android.git | Plain Text | 93 lines
306-01 07:56:47.007: DEBUG/dalvikvm(10425): GC_FOR_MALLOC freed 0 objects / 0 bytes in 133ms
406-01 07:56:47.007: ERROR/dalvikvm-heap(10425): Out of memory on a 1405310-byte allocation.
506-01 07:56:47.007: INFO/dalvikvm(10425): "main" prio=5 tid=1 RUNNABLE
4806-01 07:56:47.097: ERROR/AndroidRuntime(10425): FATAL EXCEPTION: main
4906-01 07:56:47.097: ERROR/AndroidRuntime(10425): java.lang.OutOfMemoryError
5006-01 07:56:47.097: ERROR/AndroidRuntime(10425):     at org.crosswire.common.compress.Zip.uncompress(Zip.java:89)
5006-01 07:56:47.097: ERROR/AndroidRuntime(10425):     at org.crosswire.common.compress.Zip.uncompress(Zip.java:89)
5106-01 07:56:47.097: ERROR/AndroidRuntime(10425):     at org.crosswire.jsword.book.sword.ZVerseBackend.getRawText(ZVerseBackend.java:345)
5206-01 07:56:47.097: ERROR/AndroidRuntime(10425):     at org.crosswire.jsword.book.sword.SwordBook.getRawText(SwordBook.java:107)
5206-01 07:56:47.097: ERROR/AndroidRuntime(10425):     at org.crosswire.jsword.book.sword.SwordBook.getRawText(SwordBook.java:107)
5306-01 07:56:47.097: ERROR/AndroidRuntime(10425):     at org.crosswire.jsword.book.basic.AbstractPassageBook.getOsisIterator(AbstractPassageBook.java:84)
5406-01 07:56:47.097: ERROR/AndroidRuntime(10425):     at org.crosswire.jsword.book.BookData.getOsisContent(BookData.java:157)
5406-01 07:56:47.097: ERROR/AndroidRuntime(10425):     at org.crosswire.jsword.book.BookData.getOsisContent(BookData.java:157)
5506-01 07:56:47.097: ERROR/AndroidRuntime(10425):     at org.crosswire.jsword.book.BookData.getOsisFragment(BookData.java:100)
5606-01 07:56:47.097: ERROR/AndroidRuntime(10425):     at net.bible.service.sword.SwordApi.getPlainText(SwordApi.java:449)
error.c https://bitbucket.org/digetx/picasso-kernel.git | C | 274 lines
202		{ 0x87, "DSA Sign Illegal test descriptor" },
203		{ 0x88, "Protocol Format Error - A protocol has seen an error "
204			"in the format of data received. When running RSA, "
221	};
222	u8 desc_error = status & JRSTA_DECOERR_ERROR_MASK;
223	int i;
227	for (i = 0; i < ARRAY_SIZE(desc_error_list); i++)
228		if (desc_error_list[i].value == desc_error)
229			break;
230
231	if (i != ARRAY_SIZE(desc_error_list) && desc_error_list[i].error_text) {
232		SPRINTFCAT(outstr, "%s", desc_error_list[i].error_text,
232		SPRINTFCAT(outstr, "%s", desc_error_list[i].error_text,
233			   strlen(desc_error_list[i].error_text));
234	} else {
Error.js https://bitbucket.org/rlora/rolando-js-webtrends-course.git | JavaScript | 349 lines
28 * A wrapper class for the native JavaScript Error object that adds a few useful capabilities for handling
29 * errors in an Ext application. When you use Ext.Error to {@link #raise} an error from within any class that
30 * uses the Ext 4 class system, the Error class can automatically add the source class and method from which
30 * uses the Ext 4 class system, the Error class can automatically add the source class and method from which
31 * the error was raised. It also includes logic to automatically log the error to the console, if available,
32 * with additional metadata about the error. In all cases, the error will always be thrown at the end so that
34 *
35 * Ext.Error also offers a global error {@link #handle handling} method that can be overridden in order to
36 * handle application-wide errors in a single spot. You can optionally {@link #ignore} errors altogether,
95 */
96Ext.Error = Ext.extend(Error, {
97    statics: {
324        }
325        if (Ext.Error.notify && (hasOnError ? errors : (counters && counters.error))) {
326            Ext.Error.notify = false;
error.js https://bitbucket.org/abahdanovich/selenium.git | JavaScript | 179 lines
21goog.provide('goog.db.Error');
22goog.provide('goog.db.Error.ErrorCode');
23goog.provide('goog.db.Error.VersionChangeBlockedError');
67};
68goog.inherits(goog.db.Error.VersionChangeBlockedError, goog.debug.Error);
69
133      goog.global.webkitIDBDatabaseException ||
134      goog.db.Error.DatabaseErrorCode_).TIMEOUT_ERR,
135  QUOTA_ERR: (goog.global.IDBDatabaseException ||
166      return 'Request aborted';
167    case goog.db.Error.ErrorCode.READ_ONLY_ERR:
168      return 'Modifying operation not allowed in a read-only transaction';
168      return 'Modifying operation not allowed in a read-only transaction';
169    case goog.db.Error.ErrorCode.TIMEOUT_ERR:
170      return 'Transaction timed out';
Error.html https://bitbucket.org/abahdanovich/selenium.git | HTML | 288 lines
94    
95      <strong class="classes">Classes:</strong> <span class='object_link'><a href="Error/ElementNotSelectableError.html" title="Selenium::WebDriver::Error::ElementNotSelectableError (class)">ElementNotSelectableError</a></span>, <span class='object_link'><a href="Error/ElementNotVisibleError.html" title="Selenium::WebDriver::Error::ElementNotVisibleError (class)">ElementNotVisibleError</a></span>, <span class='object_link'><a href="Error/ExpectedError.html" title="Selenium::WebDriver::Error::ExpectedError (class)">ExpectedError</a></span>, <span class='object_link'><a href="Error/IMEEngineActivationFailedError.html" title="Selenium::WebDriver::Error::IMEEngineActivationFailedError (class)">IMEEngineActivationFailedError</a></span>, <span class='object_link'><a href="Error/IMENotAvailableError.html" title="Selenium::WebDriver::Error::IMENotAvailableError (class)">IMENotAvailableError</a></span>, <span class='object_link'><a href="Error/IndexOutOfBoundsError.html" title="Selenium::WebDriver::Error::IndexOutOfBoundsError (class)">IndexOutOfBoundsError</a></span>, <span class='object_link'><a href="Error/InvalidCookieDomainError.html" title="Selenium::WebDriver::Error::InvalidCookieDomainError (class)">InvalidCookieDomainError</a></span>, <span class='object_link'><a href="Error/InvalidElementCoordinatesError.html" title="Selenium::WebDriver::Error::InvalidElementCoordinatesError (class)">InvalidElementCoordinatesError</a></span>, <span class='object_link'><a href="Error/InvalidElementStateError.html" title="Selenium::WebDriver::Error::InvalidElementStateError (class)">InvalidElementStateError</a></span>, <span class='object_link'><a href="Error/InvalidSelectorError.html" title="Selenium::WebDriver::Error::InvalidSelectorError (class)">InvalidSelectorError</a></span>, <span class='object_link'><a href="Error/JavascriptError.html" title="Selenium::WebDriver::Error::JavascriptError (class)">JavascriptError</a></span>, <span class='object_link'><a href="Error/MoveTargetOutOfBoundsError.html" title="Selenium::WebDriver::Error::MoveTargetOutOfBoundsError (class)">MoveTargetOutOfBoundsError</a></span>, <span class='object_link'><a href="Error/NoAlertPresentError.html" title="Selenium::WebDriver::Error::NoAlertPresentError (class)">NoAlertPresentError</a></span>, <span class='object_link'><a href="Error/NoCollectionError.html" title="Selenium::WebDriver::Error::NoCollectionError (class)">NoCollectionError</a></span>, <span class='object_link'><a href="Error/NoScriptResultError.html" title="Selenium::WebDriver::Error::NoScriptResultError (class)">NoScriptResultError</a></span>, <span class='object_link'><a href="Error/NoStringError.html" title="Selenium::WebDriver::Error::NoStringError (class)">NoStringError</a></span>, <span class='object_link'><a href="Error/NoStringLengthError.html" title="Selenium::WebDriver::Error::NoStringLengthError (class)">NoStringLengthError</a></span>, <span class='object_link'><a href="Error/NoStringWrapperError.html" title="Selenium::WebDriver::Error::NoStringWrapperError (class)">NoStringWrapperError</a></span>, <span class='object_link'><a href="Error/NoSuchCollectionError.html" title="Selenium::WebDriver::Error::NoSuchCollectionError (class)">NoSuchCollectionError</a></span>, <span class='object_link'><a href="Error/NoSuchDocumentError.html" title="Selenium::WebDriver::Error::NoSuchDocumentError (class)">NoSuchDocumentError</a></span>, <span class='object_link'><a href="Error/NoSuchDriverError.html" title="Selenium::WebDriver::Error::NoSuchDriverError (class)">NoSuchDriverError</a></span>, <span class='object_link'><a href="Error/NoSuchElementError.html" title="Selenium::WebDriver::Error::NoSuchElementError (class)">NoSuchElementError</a></span>, <span class='object_link'><a href="Error/NoSuchFrameError.html" title="Selenium::WebDriver::Error::NoSuchFrameError (class)">NoSuchFrameError</a></span>, <span class='object_link'><a href="Error/NoSuchWindowError.html" title="Selenium::WebDriver::Error::NoSuchWindowError (class)">NoSuchWindowError</a></span>, <span class='object_link'><a href="Error/NullPointerError.html" title="Selenium::WebDriver::Error::NullPointerError (class)">NullPointerError</a></span>, <span class='object_link'><a href="Error/ScriptTimeOutError.html" title="Selenium::WebDriver::Error::ScriptTimeOutError (class)">ScriptTimeOutError</a></span>, <span class='object_link'><a href="Error/ServerError.html" title="Selenium::WebDriver::Error::ServerError (class)">ServerError</a></span>, <span class='object_link'><a href="Error/StaleElementReferenceError.html" title="Selenium::WebDriver::Error::StaleElementReferenceError (class)">StaleElementReferenceError</a></span>, <span class='object_link'><a href="Error/TimeOutError.html" title="Selenium::WebDriver::Error::TimeOutError (class)">TimeOutError</a></span>, <span class='object_link'><a href="Error/UnableToSetCookieError.html" title="Selenium::WebDriver::Error::UnableToSetCookieError (class)">UnableToSetCookieError</a></span>, <span class='object_link'><a href="Error/UnhandledAlertError.html" title="Selenium::WebDriver::Error::UnhandledAlertError (class)">UnhandledAlertError</a></span>, <span class='object_link'><a href="Error/UnknownCommandError.html" title="Selenium::WebDriver::Error::UnknownCommandError (class)">UnknownCommandError</a></span>, <span class='object_link'><a href="Error/UnknownError.html" title="Selenium::WebDriver::Error::UnknownError (class)">UnknownError</a></span>, <span class='object_link'><a href="Error/UnsupportedOperationError.html" title="Selenium::WebDriver::Error::UnsupportedOperationError (class)">UnsupportedOperationError</a></span>, <span class='object_link'><a href="Error/WebDriverError.html" title="Selenium::WebDriver::Error::WebDriverError (class)">WebDriverError</a></span>, <span class='object_link'><a href="Error/XPathLookupError.html" title="Selenium::WebDriver::Error::XPathLookupError (class)">XPathLookupError</a></span>
96    
177      
178        <dt id="UnexpectedJavascriptError-constant" class="">UnexpectedJavascriptError =
179          
182      
183        <dt id="NoAlertOpenError-constant" class="">NoAlertOpenError =
184          
187      
188        <dt id="ElementNotDisplayedError-constant" class="">ElementNotDisplayedError =
189          
269
270  <span class='const'>Errors</span><span class='lbracket'>[</span><span class='id identifier rubyid_code'>code</span> <span class='op'>-</span> <span class='int'>1</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='const'>WebDriverError</span>
271<span class='kw'>end</span></pre>
Error.cs https://bitbucket.org/Lavir_the_Whiolet/yobabot.git | C# | 419 lines
28// [RECOMMENDED to include sender XML here]
29// <error type='error-type'>
30// <defined-condition xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
48{
49	// XMPP error condition  		XMPP error type  	Legacy error code
50	// <bad-request/> 				modify 				400
205
206		public Error(ErrorCode code) : this()
207		{			
226
227        public Error(ErrorType type, ErrorCondition condition) : this(type)
228        {
285					return ErrorCondition.Gone;
286				else if (HasTag("internal-server-error"))	// <internal-server-error/>
287					return ErrorCondition.InternalServerError;
error.c https://bitbucket.org/vrrm/brl-cad-copy-for-fast-history-browsing-in-git.git | C | 558 lines
139void
140ERRORcreate_warning(char *name,Error error)
141{
196** Procedure:	ERRORdisable
197** Parameters:	Error error	- error to disable
198** Returns:	void
205** Procedure:	ERRORenable
206** Parameters:	Error error	- error to enable
207** Returns:	void
214** Procedure:	ERRORis_enabled
215** Parameters:	Error error	- error to test
216** Returns:	Boolean		- is reporting of the error enabled?
392	    if (what->severity >= SEVERITY_EXIT ||
393		ERROR_string + ERROR_MAX_STRLEN > ERROR_string_base + ERROR_MAX_SPACE ||
394		ERROR_with_lines == ERROR_MAX_ERRORS) {
error.c https://bitbucket.org/vrrm/brl-cad-copy-for-fast-history-browsing-in-git.git | C | 524 lines
76Error experrc = ERROR_none;
77Error ERROR_subordinate_failed = ERROR_none;
78Error ERROR_syntax_expecting = ERROR_none;
94
95#define ERROR_MAX_ERRORS    100 /**< max line-numbered errors */
96#define ERROR_MAX_SPACE     4000 /**< max space for line-numbered errors */
159
160void ERRORcreate_warning( char * name, Error error ) {
161    struct Error_Warning_ *o;
391            if( what->severity >= SEVERITY_EXIT ||
392                    ERROR_string + ERROR_MAX_STRLEN > ERROR_string_base + ERROR_MAX_SPACE ||
393                    ERROR_with_lines == ERROR_MAX_ERRORS ) {
446
447void ERRORdestroy( Error error ) {
448    scl_free( error );
error.c https://bitbucket.org/vrrm/brl-cad-copy-for-fast-history-browsing-in-git.git | C | 515 lines
68
69bool __ERROR_buffer_errors = false;
70char * current_filename = "stdin";
76Error experrc = ERROR_none;
77Error ERROR_subordinate_failed = ERROR_none;
78Error ERROR_syntax_expecting = ERROR_none;
94
95#define ERROR_MAX_ERRORS    100 /**< max line-numbered errors */
96#define ERROR_MAX_SPACE     4000 /**< max space for line-numbered errors */
151
152void ERRORcreate_warning( char * name, Error error ) {
153    struct Error_Warning_ *o;
383            if( what->severity >= SEVERITY_EXIT ||
384                    ERROR_string + ERROR_MAX_STRLEN > ERROR_string_base + ERROR_MAX_SPACE ||
385                    ERROR_with_lines == ERROR_MAX_ERRORS ) {
gpg-error.h https://bitbucket.org/adium/adium-13 | C++ Header | 571 lines
51
52   An error code together with an error source build up an error
53   value.  As the error value is been passed from one component to
306
307    /* The following error codes are used to map system errors.  */
308#define GPG_ERR_SYSTEM_ERROR	(1 << 15)
521   code in the error value ERR.  This function is not thread-safe.  */
522const char *gpg_strerror (gpg_error_t err);
523
530   beginning of the error string as fits into the buffer.  */
531int gpg_strerror_r (gpg_error_t err, char *buf, size_t buflen);
532
539
540/* Retrieve the error code for the system error ERR.  This returns
541   GPG_ERR_UNKNOWN_ERRNO if the system error is not mapped (report
Error recovery.wiki https://bitbucket.org/kib2/wikiparser | Unknown | 175 lines
62
63The 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. 
64
84
85Do not confuse the {{Error}} class with the above {{error}} variable: Falcon is fully case-sensitive, so the variable we named {{error}} in the above code is just a normal variable receiving an {{Error}} class instance.
86
102
103It 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 {{raise}} makes an item to be thrown and treats it as an exception.
104
104
105The 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:
106
171
172This 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.
173
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21