100+ results results for 'ERROR repo:muyelian/deathofrace' (502 ms)
30{ \ 31 if (!aDefaultArgs) return NS_ERROR_FAILURE; \ 32 *aDefaultArgs = ToNewUnicode(nsDependentCString(macro_default_args)); \ 37{ \ 38 if (!aChromeUrlForTask) return NS_ERROR_FAILURE; \ 39 *aChromeUrlForTask = PL_strdup(macro_chrome_url); \ 44{ \ 45 if (!aCommandLineArgument) return NS_ERROR_FAILURE; \ 46 *aCommandLineArgument = PL_strdup(macro_cmd_line_arg); \ 50{ \ 51 if (!aPrefNameForStartup) return NS_ERROR_FAILURE; \ 52 *aPrefNameForStartup = PL_strdup(macro_pref_name); \ 56{ \ 57 if (!aHelpText) return NS_ERROR_FAILURE; \ 58 *aHelpText = PL_strdup(macro_help_text); \MessageProcessor.java git://github.com/lmco/eurekastreams.git | Java | 337 lines
153 * @throws MessagingException 154 * On error. 155 * @throws IOException 155 * @throws IOException 156 * On error. 157 */ 264 // notify user on failure 265 // Note: A response is only sent for errors processing the action (which could be due to missing content 266 // from the message). This is because any errors encountered prior represent a bad sender or ill-formed 280 * @throws MessagingException 281 * On error. 282 */ 300 * @throws MessagingException 301 * On error. 302 */XcmsAllocNamedColor.m git://anongit.freedesktop.org/git/xorg/test/xts.git/ | Objective C | 0 lines
138 * Turn on buffering and buffer parameter information 139 * in case an error occurs 140 ******/ 145 message(fmtstr, fmt_lst, 0); 146 (void)strcpy(fmtstr, "An error occurred during a call to %s\n\n"); 147 fmt_lst[0].typ_str = TestName; 161 162 bufrdisp(display); /* buffer display struct info for error checking */ 163 179 180 first_error = 0; /* no errors encountered yet */ 181/****** 186 errflg = 0; 187 XSetErrorHandler(signal_status); 188 svc_ret_value = XcmsAllocNamedColor(libdivecomputer.c git://github.com/torvalds/subsurface.git | C | 482 lines
24 25static GError *error(const char *fmt, ...) 26{ 27 va_list args; 28 GError *error; 29 30 va_start(args, fmt); 31 error = g_error_new_valist( 32 g_quark_from_string("subsurface"), 32 g_quark_from_string("subsurface"), 33 DIVE_ERROR_PARSE, fmt, args); 34 va_end(args); 34 va_end(args); 35 return error; 36}Plugin.pm git://github.com/mdxp/cookbooks.git | Perl | 450 lines
39 40my %ERRORS=('OK'=>0,'WARNING'=>1,'CRITICAL'=>2,'UNKNOWN'=>3,'DEPENDENT'=>4); 41 77 78# nagios_exit("CODE", "error string") 79sub nagios_exit 83 $code ||= "UNKNOWN"; 84 die "invalid code '$code'" unless exists $ERRORS{$code}; 85 if ($errstr && $errstr ne '1') { 90 } 91 exit $ERRORS{$code}; 92} 396 397Sometimes on error or warning you want to return more than just the 398error cases in the returned text. You can do this by passing abuildcfg.h https://bitbucket.org/knoss/pcmanager/ | C++ Header | 427 lines
28#ifdef _WINDOWS_ 29#error "include buildcfg.h before include all other files" 30#endifeee.c http://eeepc-linux.googlecode.com/svn/trunk/ | C | 462 lines
22 * WARNING: This is an extremely *experimental* module! This code has been 23 * developed through trial-and-error, which means I don't really understand 24 * 100% what's going on here... That means there's a chance that there could 427 428 /* We had an error, so cleanup all of the proc files... */ 429proc_init_cleanup:SynHighlighterManager.pas http://gedemin.googlecode.com/svn/trunk/ | Pascal | 480 lines
71 component palette, it will function normally, except that when all is 72 done, Delphi will disply small window with title "Error" and message 73 "Operation aborted". Purely cosmetic issue for which there is no obviousOgreShadowCameraSetupPlaneOptimal.cpp http://gmogre3d.googlecode.com/svn/trunk/ | C++ | 428 lines
183 { 184 // error solving for projective matrix (rows 1,2,4) 185 } 206 { 207 // error solving for increased precision rows 1,2,4 208 } 255 { 256 // error solving for projective matrix (row 3) 257 }__init__.py https://bitbucket.org/birkenfeld/sphinx/ | Python | 351 lines
18from sphinx import package_dir 19from sphinx.errors import PycodeError 20from sphinx.pycode import nodes 188 except Exception as err: 189 raise PycodeError('error opening %r' % filename, err) 190 obj = cls(fileobj, modname, filename) 197 entry = cls.cache['module', modname] 198 if isinstance(entry, PycodeError): 199 raise entry 207 obj = cls.for_file(source, modname) 208 except PycodeError as err: 209 cls.cache['module', modname] = err 250 self.tokens = list(tokenize.generate_tokens(self.source.readline)) 251 except tokenize.TokenError as err: 252 raise PycodeError('tokenizing failed', err)KhorosToMatLab.old git://github.com/aludnam/MATLAB.git | Perl | 452 lines
278 print "elseif nargin ==2\n Inputs=varargin{1}; arglist=varargin{2};\n"; 279 print "else error('Usage: [out1,..] = k$fname(Inputs,arglist).');\nend\n"; 280 } 285 print "elseif nargin ==1\n arglist=varargin{1};\n"; 286 print "else error('Usage: [out1,..] = k$fname(arglist).');\nend\n"; 287 } 287 } 288print "if size(arglist,2)~=2\n error('arglist must be of form {''ParameterTag1'',value1;''ParameterTag2'',value2}')\n end\n"; 289 342 if (nextinput > length(Inputs)) 343 error(['Input ' narglist{jj,1} ' has no corresponding input!']); 344 end 348 if (nextoutput > nargout) 349 error(['Output nr. ' narglist{jj,1} ' is not present in the assignment list of outputs !']); 350 endnsISHistory.h http://firefox-mac-pdf.googlecode.com/svn/trunk/ | C Header | 313 lines
94 * the index is obtained successfully. 95 * <code>NS_ERROR_FAILURE</code> Error in obtaining 96 * history entry for the given index. 112 * @throws <code>NS_SUCCESS_LOSS_OF_INSIGNIFICANT_DATA</code> Purge was vetod. 113 * @throws <code>NS_ERROR_FAILURE</code> numEntries is 114 * invalid or out of bounds with the size of history. 206#define NS_FORWARD_SAFE_NSISHISTORY(_to) \ 207 NS_SCRIPTABLE NS_IMETHOD GetCount(PRInt32 *aCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCount(aCount); } \ 208 NS_SCRIPTABLE NS_IMETHOD GetIndex(PRInt32 *aIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIndex(aIndex); } \ 208 NS_SCRIPTABLE NS_IMETHOD GetIndex(PRInt32 *aIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIndex(aIndex); } \ 209 NS_SCRIPTABLE NS_IMETHOD GetRequestedIndex(PRInt32 *aRequestedIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRequestedIndex(aRequestedIndex); } \ 210 NS_SCRIPTABLE NS_IMETHOD GetMaxLength(PRInt32 *aMaxLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMaxLength(aMaxLength); } \ 210 NS_SCRIPTABLE NS_IMETHOD GetMaxLength(PRInt32 *aMaxLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMaxLength(aMaxLength); } \ 211 NS_SCRIPTABLE NS_IMETHOD SetMaxLength(PRInt32 aMaxLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMaxLength(aMaxLength); } \ 212 NS_SCRIPTABLE NS_IMETHOD GetEntryAtIndex(PRInt32 index, PRBool modifyIndex, nsIHistoryEntry **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEntryAtIndex(index, modifyIndex, _retval); } \nsIDOMHTMLAppletElement.h http://firefox-mac-pdf.googlecode.com/svn/trunk/ | C Header | 309 lines
138#define NS_FORWARD_SAFE_NSIDOMHTMLAPPLETELEMENT(_to) \ 139 NS_SCRIPTABLE NS_IMETHOD GetAlign(nsAString & aAlign) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAlign(aAlign); } \ 140 NS_SCRIPTABLE NS_IMETHOD SetAlign(const nsAString & aAlign) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAlign(aAlign); } \ 140 NS_SCRIPTABLE NS_IMETHOD SetAlign(const nsAString & aAlign) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAlign(aAlign); } \ 141 NS_SCRIPTABLE NS_IMETHOD GetAlt(nsAString & aAlt) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAlt(aAlt); } \ 142 NS_SCRIPTABLE NS_IMETHOD SetAlt(const nsAString & aAlt) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAlt(aAlt); } \ 142 NS_SCRIPTABLE NS_IMETHOD SetAlt(const nsAString & aAlt) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAlt(aAlt); } \ 143 NS_SCRIPTABLE NS_IMETHOD GetArchive(nsAString & aArchive) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetArchive(aArchive); } \ 144 NS_SCRIPTABLE NS_IMETHOD SetArchive(const nsAString & aArchive) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetArchive(aArchive); } \ 144 NS_SCRIPTABLE NS_IMETHOD SetArchive(const nsAString & aArchive) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetArchive(aArchive); } \ 145 NS_SCRIPTABLE NS_IMETHOD GetCode(nsAString & aCode) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCode(aCode); } \ 146 NS_SCRIPTABLE NS_IMETHOD SetCode(const nsAString & aCode) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCode(aCode); } \ 146 NS_SCRIPTABLE NS_IMETHOD SetCode(const nsAString & aCode) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCode(aCode); } \ 147 NS_SCRIPTABLE NS_IMETHOD GetCodeBase(nsAString & aCodeBase) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCodeBase(aCodeBase); } \ 148 NS_SCRIPTABLE NS_IMETHOD SetCodeBase(const nsAString & aCodeBase) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCodeBase(aCodeBase); } \CGIHTTPServer.py https://bitbucket.org/pypy/pypy/ | Python | 378 lines
148 if not (self.have_fork or self.have_popen2 or self.have_popen3): 149 self.send_error(403, "CGI script is not a Python script (%r)" % 150 scriptname) 152 if not self.is_executable(scriptfile): 153 self.send_error(403, "CGI script is not executable (%r)" % 154 scriptname) 247 os.setuid(nobody) 248 except os.error: 249 pass 253 except: 254 self.server.handle_error(self.request, self.client_address) 255 os._exit(127) 272 nbytes = int(length) 273 except (TypeError, ValueError): 274 nbytes = 0DeclPDA.cpp git://github.com/TTimo/doom3.gpl.git | C++ | 668 lines
147 148 if ( src.HadError() ) { 149 src.Warning( "PDA decl '%s' had a parse error", GetName() ); 359 src.LoadMemory( _text, textLength, GetFileName(), GetLineNum() ); 360 src.SetFlags( LEXFL_NOSTRINGCONCAT | LEXFL_ALLOWPATHNAMES | LEXFL_ALLOWMULTICHARLITERALS | LEXFL_ALLOWBACKSLASHSTRINGCONCAT | LEXFL_NOFATALERRORS ); 361 src.SkipUntilString( "{" ); 401 if ( token != "{" ) { 402 src.Warning( "Email decl '%s' had a parse error", GetName() ); 403 return false; 417 418 if ( src.HadError() ) { 419 src.Warning( "Email decl '%s' had a parse error", GetName() ); 485 src.LoadMemory( text, textLength, GetFileName(), GetLineNum() ); 486 src.SetFlags( LEXFL_NOSTRINGCONCAT | LEXFL_ALLOWPATHNAMES | LEXFL_ALLOWMULTICHARLITERALS | LEXFL_ALLOWBACKSLASHSTRINGCONCAT | LEXFL_NOFATALERRORS ); 487 src.SkipUntilString( "{" );Updater.cs https://hg01.codeplex.com/procon2 | C# | 0 lines
124 /// 125 /// This is so the update can forego checks and error logging later. 126 /// </summary> 176 catch (Exception e) { 177 this.Writer.WriteLine("\tERROR: {0}", e.Message); 178 } 209 catch (Exception e) { 210 this.Writer.WriteLine("\tERROR: {0}", e.Message); 211 } 256 /// <summary> 257 /// Creates a directory, logging the progress and errors (if any) 258 /// </summary> 267 catch (Exception e) { 268 this.Writer.WriteLine("\tERROR: {0}", e.Message); 269 }ExpatReaderWrapper.java http://androjena.googlecode.com/svn/trunk/ | Java | 425 lines
30import org.xml.sax.EntityResolver; 31import org.xml.sax.ErrorHandler; 32import org.xml.sax.InputSource; 95 if (mapping == null) 96 throwException("internal error"); 97 if (mapping.next == null) 293 @Override 294 public ErrorHandler getErrorHandler() { 295 return expatReader.getErrorHandler(); 350 @Override 351 public void setErrorHandler(ErrorHandler handler) { 352 expatReader.setErrorHandler(handler);GameSwingDoor.cpp git://github.com/FrictionalGames/PenumbraOverture.git | C++ | 474 lines
85 { 86 Error("Couldn't find game element for entity '%s'\n",mpEntity->GetName().c_str()); 87 }QuadTreeNode.cpp git://github.com/swganh/mmoserver.git | C++ | 433 lines
191 { 192 assert(false && "QuadTreeNode::getObjectsInRange ERROR INVALID ID"); 193 } 328 } 329 DLOG(INFO) << "QuadTreeNode::removeObject ERROR FAILED to REMOVE object with id = " << object->getId(); 330 return(2); 407 { 408 gLogger->log(LogManager::DEBUG,"QuadTreeNode::addMyObject: ERROR INSERTED OBJECT already exist = %"PRIu64"", object->getId()); 409 return(2);keys.rb git://github.com/jnunemaker/mongomapper.git | Ruby | 469 lines
120 attrs['_type'] ? attrs['_type'].constantize : self 121 rescue NameError 122 selfBshScriptEngine.java http://beanshell2.googlecode.com/svn/trunk/ | Java | 381 lines
92 // explicit parsing error 93 throw new ScriptException(e.toString(), e.getErrorSourceFile(), e.getErrorLineNumber()); 94 } catch (TargetError e) { 96 // set it as the cause ? 97 ScriptException se = new ScriptException(e.toString(), e.getErrorSourceFile(), e.getErrorLineNumber()); 98 se.initCause(e.getTarget()); 198 private ScriptException constructScriptException(final EvalError e) { 199 return new ScriptException(e.getMessage(), e.getErrorSourceFile(), e.getErrorLineNumber()); 200 } 270 // set it as the cause ? 271 ScriptException se = new ScriptException(e.toString(), e.getErrorSourceFile(), e.getErrorLineNumber()); 272 se.initCause(e.getTarget()); 275 // The script couldn't be evaluated properly 276 throw new ScriptException(e.toString(), e.getErrorSourceFile(), e.getErrorLineNumber()); 277 } catch (InterpreterError e) {context.ipp http://hadesmem.googlecode.com/svn/trunk/ | C++ Header | 0 lines
203 { 204 ec = boost::system::error_code(::ERR_get_error(), 205 boost::asio::error::get_ssl_category()); 305 { 306 ec = boost::system::error_code(::ERR_get_error(), 307 boost::asio::error::get_ssl_category()); 344 { 345 ec = boost::system::error_code(::ERR_get_error(), 346 boost::asio::error::get_ssl_category()); 384 { 385 ec = boost::system::error_code(::ERR_get_error(), 386 boost::asio::error::get_ssl_category()); 423 { 424 ec = boost::system::error_code(::ERR_get_error(), 425 boost::asio::error::get_ssl_category());headers.html http://hadesmem.googlecode.com/svn/trunk/ | HTML | 0 lines
56 57div.admonition, div.attention, div.caution, div.danger, div.error, 58div.hint, div.important, div.note, div.tip, div.warning { 69div.attention p.admonition-title, div.caution p.admonition-title, 70div.danger p.admonition-title, div.error p.admonition-title, 71div.warning p.admonition-title {bodycontent-inc.php http://ebpls.googlecode.com/svn/trunk/ | PHP | 444 lines
2/*Modification History: 32008.04.25: Change constants to strings to remove PHP errors in log lines 99+ line 461?? 4*/ErrorData.html http://xformsdb.googlecode.com/svn/trunk/ | HTML | 342 lines
96<P> 97Contains information about an error, for error pages. 98 The information contained in this instance is meaningless if not used 98 The information contained in this instance is meaningless if not used 99 in the context of an error page. To indicate a JSP is an error page, 100 the page author must set the isErrorPage attribute of the page directive 107 <DD>2.0</DD> 108<DT><B>See Also:</B><DD><A HREF="../../../javax/servlet/jsp/PageContext.html#getErrorData()"><CODE>PageContext.getErrorData()</CODE></A></DL> 109<HR> 126<TR BGCOLOR="white" CLASS="TableRowColor"> 127<TD><CODE><B><A HREF="../../../javax/servlet/jsp/ErrorData.html#ErrorData(java.lang.Throwable, int, java.lang.String, java.lang.String)">ErrorData</A></B>(java.lang.Throwable throwable, 128 int statusCode, 212<P> 213<DT><B>Parameters:</B><DD><CODE>throwable</CODE> - The Throwable that is the cause of the error<DD><CODE>statusCode</CODE> - The status code of the error<DD><CODE>uri</CODE> - The request URI<DD><CODE>servletName</CODE> - The name of the servlet invoked</DL> 214GoogleReader.cs http://reader-notifier-mod.googlecode.com/svn/branches/merge/ | C# | 418 lines
30 31 public string LoginError = ""; 32 public string[] ProxyUser = new string[3]; 47 _loggedIn = false; 48 LoginError = ""; 49 55 { 56 LoginError += exc + "\r\n"; 57 if (ProxyUser[0] == "request") 58 return "ProxyAuthRequired"; 59 return "CONNECT_ERROR"; 60 } 64 string _helper = GetResponseString(req); 65 _loggedIn = (_helper.IndexOf("error", StringComparison.OrdinalIgnoreCase) == -1) && (_helper.IndexOf("auth", StringComparison.OrdinalIgnoreCase) != -1); 66 if (_loggedIn == true)presubmit.py git://github.com/joyent/node.git | Python | 436 lines
32 md5er = hashlib.md5 33except ImportError, e: 34 import md5 112 out_lines = "" 113 error_count = -1 114 while True: 116 if out_line == '' and process.poll() != None: 117 if error_count == -1: 118 print "Failed to process %s" % command.pop() 123 out_lines += out_line 124 error_count += 1 125 sys.stdout.write(out_lines) 271 total_errors = sum(results) 272 print "Total errors found: %d" % total_errors 273 good_files_cache.Save()TicketCommands.cpp git://github.com/darkman1983/TrinityCore.git | C++ | 457 lines
183 { 184 SendSysMessage(LANG_COMMAND_TICKETASSIGNERROR_A); 185 return true; 190 { 191 PSendSysMessage(LANG_COMMAND_TICKETASSIGNERROR_B, ticket->GetId()); 192 return true;llex.cpp git://github.com/scummvm/scummvm.git | C++ | 475 lines
55 if (b->buffsize >= MAX_SIZET/2) 56 luaX_lexerror(ls, "lexical element too long", 0); 57 newsize = b->buffsize * 2; 101 102void luaX_lexerror (LexState *ls, const char *msg, int token) { 103 char buff[MAXSRC]; 111 112void luaX_syntaxerror (LexState *ls, const char *msg) { 113 luaX_lexerror(ls, msg, ls->t.token); 133 if (++ls->linenumber >= MAX_INT) 134 luaX_syntaxerror(ls, "chunk has too many lines"); 135} 177static void trydecpoint (LexState *ls, SemInfo *seminfo) { 178 /* format error: try to update decimal point separator */ 179 // Normally we'd use localeconv() to get the decimal point separator, butSpellCheckPlugin.java https://jedit.svn.sourceforge.net/svnroot/jedit | Java | 414 lines
160 { 161 Log.log(Log.ERROR, SpellCheckPlugin.class, "Error spell checking (Aspell)."); 162 Log.log(Log.ERROR, SpellCheckPlugin.class, e); 235 { 236 Log.log(Log.ERROR, SpellCheckPlugin.class, "Error spell checking (Aspell)."); 237 Log.log(Log.ERROR, SpellCheckPlugin.class, e); 282 private static 283 ErrorListSpellChecker getErrorListSpellChecker() 284 { 291 if( _errorListSpellChecker == null ) 292 _errorListSpellChecker = new ErrorListSpellChecker( aspellExeFilename, aspellCommandLine ); 293 else 297 _errorListSpellChecker.stop(); 298 _errorListSpellChecker = new ErrorListSpellChecker( aspellExeFilename, aspellCommandLine ); 299 }PHPParserTester.java https://jedit.svn.sourceforge.net/svnroot/jedit | Java | 350 lines
59 checkPHP("$link= mysql_connect($this->mysqlHost, $this->mysqlUser, $this->mysqlPassword)\n" + 60 "or $errMsg= 'Could not connect: ' . mysql_error();"); 61 checkPHP("function method(array $array) {\n}"); 136 checkPHP("unset($this->blockvariables[$block][$varname]);"); 137 checkPHP("new IT_Error(\"The block '$block' was not found in the template.\", __FILE__, __LINE__);"); 138 checkPHP("for ($i=156, $j=0; $i<512; $i++, $j++) $v_checksum += ord(substr($v_binary_data_last,$j,1));"); 182 checkPHP("$ol = new Overlib();"); 183 checkPHP("$risultato = mysql_query($sql) or\n die(mysql_error());"); 184 checkHTML("\n\n\n\n <?php print \"Hello world\" ?>"); 263 } 264 catch (Error e) 265 { 325 326 public void parseError(PHPParseErrorEvent e) 327 {BaseMetadataPanel.java http://bungeni-editor.googlecode.com/svn/ | Java | 441 lines
158 159 public void addErrorMessage(java.awt.Component p, String msg) { 160 getContainerPanel().addErrorMessage(this, p, msg); 162 163 public String ErrorMessagesAsString() { 164 return getContainerPanel().ErrorMessagesAsString(); 383 } catch (Exception ex) { 384 log.error("exception in processCatalogCommand: " + ex.getMessage()); 385 log.error("exception in processCatalogCommand: " + CommonExceptionUtils.getStackTrace(ex)); 426 } catch (IllegalArgumentException ex) { 427 log.error("pasteTextIntoDocument : " + ex.getMessage()); 428 } finally {javaw.py https://code.google.com/p/waf/ | Python | 475 lines
29import os, re, tempfile, shutil 30from waflib import TaskGen, Task, Utils, Options, Build, Errors, Node, Logs 31from waflib.Configure import conf 229 except Exception: 230 raise Errors.WafError('Could not find the basedir %r for %r' % (self.basedir, self)) 231 return super(jar_create, self).runnable_status()medici.erl git://github.com/evanmiller/ChicagoBoss.git | Erlang | 0 lines
44 45%% @spec start() -> {ok, Pid} | Error:term() 46%% 50 51%% @spec start(StartupOptions::proplist()) -> {ok, Pid} | Error:term() 52%% 276 ?assert(?MODULE:get(<<"putkeep1">>) =:= <<"foo">>), 277 ?assertMatch({error, _}, ?MODULE:putkeep(<<"putkeep1">>, <<"bar">>)), 278 ?assert(?MODULE:get(<<"putkeep1">>) =:= <<"foo">>), % no effect if key already exists before putkeep 301 ok = ?MODULE:out(<<"out1">>), 302 ?assertMatch({error, _}, ?MODULE:get(<<"out1">>)). 303 322 ok = ?MODULE:vanish(), 323 ?assertMatch({error, _}, ?MODULE:get(<<"vanish1">>)). 324HtmlHelper.cs git://github.com/mono/mono.git | C# | 281 lines
28 29 public static readonly string ValidationInputCssClassName = "input-validation-error"; 30 public static readonly string ValidationMessageCssClassName = "field-validation-error"; 30 public static readonly string ValidationMessageCssClassName = "field-validation-error"; 31 public static readonly string ValidationSummaryCssClassName = "validation-summary-errors"; 32nsIController.h https://hg01.codeplex.com/kmbrasil | C Header | 0 lines
59#define NS_FORWARD_SAFE_NSICONTROLLER(_to) \ 60 NS_IMETHOD IsCommandEnabled(const char *command, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsCommandEnabled(command, _retval); } \ 61 NS_IMETHOD SupportsCommand(const char *command, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->SupportsCommand(command, _retval); } \ 61 NS_IMETHOD SupportsCommand(const char *command, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->SupportsCommand(command, _retval); } \ 62 NS_IMETHOD DoCommand(const char *command) { return !_to ? NS_ERROR_NULL_POINTER : _to->DoCommand(command); } \ 63 NS_IMETHOD OnEvent(const char *eventName) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnEvent(eventName); } 99{ 100 return NS_ERROR_NOT_IMPLEMENTED; 101} 105{ 106 return NS_ERROR_NOT_IMPLEMENTED; 107} 111{ 112 return NS_ERROR_NOT_IMPLEMENTED; 113}compress.c http://sgfork.googlecode.com/svn/trunk/ | C | 751 lines
172 if (bitcount > 32) 173 Error ("bitcount > 32"); 174 charbits[nodenum] = bits; 217 if (max == 0) 218 Error ("Huffman: max == 0"); 219 239 if (node->children[0] != numhnodes-1) 240 Error ("Bad smallestnode"); 241 break; 368if (in.count >= sizeof(lzss_next)/4) 369Error ("LZSS: too big"); 370 532 if (bitcount > 32) 533 Error ("bitcount > 32"); 534 charbits1[prev][nodenum] = bits;Result.scala git://github.com/etorreborre/specs2.git | Scala | 333 lines
37 case Failure(_, _, _, _) => args.failureColor("x") 38 case Error(_, _) => args.errorColor ("!") 39 case Pending(_) => args.pendingColor("*") 59 case Failure(_, _, _, _) => "failure" 60 case Error(_, _) => "error" 61 case Pending(_) => "pending" 71 case Failure(m, e, st, d) => Failure(msg, e, st, d) 72 case Error(m, st) => Error(msg, st) 73 case Skipped(m, e) => Skipped(msg, e) 134 case (Success(msg1), Error(msg2, st1)) => m2.updateMessage(msg1+"; "+msg2) 135 case (Error(msg1, st1), Error(msg2, st2)) => Error(msg1+"; "+msg2, st1) 136 case (Error(msg1, st1), Failure(msg2, e2, st2, d2)) => Error(msg1+"; "+msg2, st1) 162 case (Failure(msg1, e1, st1, d1), Failure(msg2, e2, st2, d2)) => Failure(msg1+"; "+msg2, e1+"; "+e2, st1, NoDetails()) 163 case (Error(msg1, st1), Error(msg2, st2)) => Error(msg1+"; "+msg2, st1) 164 case (Error(msg1, st1), Failure(msg2, e2, st2, d2)) => Error(msg1+"; "+msg2, st1)installer.php git://github.com/pyrocms/pyrocms.git | PHP | 475 lines
176 { 177 $this->form_validation->set_message('test_db_connection', lang('db_failure') . mysql_error()); 178 return false; 354 // Let's tell them why the install failed 355 $this->session->set_flashdata('message', $this->lang->line('error_'.$install['code']) . $install['message']); 356browser.class.php https://bitbucket.org/chamilo/chamilo-app-internship-organizer-dev/ | PHP | 257 lines
42 $this->display_header(); 43 $this->display_error_message(Translation :: get('NotAllowed')); 44 $this->display_footer();XtGrabKey.m git://anongit.freedesktop.org/git/xorg/test/xts.git/ | Objective C | 0 lines
93 XSendEvent(XtDisplay(labelw_msg), XtWindow(labelw_msg), False, KeyReleaseMask, &event); 94 tet_infoline("ERROR: Timed out waiting for input"); 95 tet_result(TET_UNRESOLVED); 133 if (event.xkey.window != window) { 134 sprintf(ebuf, "ERROR: Key did not go to correct widget"); 135 tet_infoline(ebuf); 144 if (event.xkey.x >= 0) { 145 sprintf(ebuf, "ERROR: KeyRelease was not left of window"); 146 tet_infoline(ebuf); 195 XChangeKeyboardControl(XtDisplay(topLevel), KBAutoRepeatMode, &kbvalues); 196 tet_infoline("PREP: Set up the XtToolkitError handler"); 197 app_ctext = XtWidgetToApplicationContext(topLevel); 197 app_ctext = XtWidgetToApplicationContext(topLevel); 198 XtAppSetErrorMsgHandler(app_ctext, xt_handler); 199 tet_infoline("PREP: Set up widget tree of depth eight (8) return panedw widget");zlibimp.cpp https://bitbucket.org/knoss/pcmanager/ | C++ | 503 lines
129 { 130 hr = HRESULT_FROM_WIN32( GetLastError() ); 131 goto Exit0; 136 { 137 hr = HRESULT_FROM_WIN32( GetLastError() ); 138 goto Exit0; 143 { 144 hr = HRESULT_FROM_WIN32( GetLastError() ); 145 goto Exit0; 150 { 151 hr = HRESULT_FROM_WIN32( GetLastError() ); 152 goto Exit0; 157 { 158 hr = HRESULT_FROM_WIN32( GetLastError() ); 159 goto Exit0;_Ads---AdWords---v201101---InfoService.php.html http://google-api-adwords-php.googlecode.com/svn/trunk/ | HTML | 0 lines
78 <td> 79 The API error base class that provides details about an error that occurred while processing a service request. 80 </td> 222 <td> 223 Represents possible error codes in InfoService. 224 </td> 287 <td> 288 Errors returned when Authentication failed. 289 </td> 319 <td> 320 Indicates that a server-side error has occured. {@code InternalApiError}s are generally not the result of an invalid request or message sent by the client. 321 </td> 383 <td> 384 Encapsulates the generic errors thrown when there's an error with user request. 385 </td>RegisterOperate.cpp https://bitbucket.org/knoss/pcmanager/ | C++ | 513 lines
47// SHGetValue(HKEY_LOCAL_MACHINE, TEXT("Software\\Microsoft\\Internet Explorer\\Main"), TEXT("Start Page"), &dwType, (LPVOID)pszValue, &cbSize); 48 if (ERROR_SUCCESS != RegQueryValueEx(hOpenKey, pszName, 0, &dwType , (LPBYTE)pszValue, &dwSize)) 49 { 92 93 int nError = GetLastError(); 94 return hRetkey; 110 ZeroMemory(pszBuf, cbSize2+1); 111 if (ERROR_SUCCESS == RegQueryValueEx(hKey, pszName, 0, &dwType, (LPBYTE)pszBuf, &cbSize2)) 112 { 300 CAccessHepler().AddRegAccess(hKey, pszSubPath, KEY_ALL_ACCESS); 301 if (ERROR_SUCCESS == RegSetValueEx(hOpenKey, pszName, 0, REG_SZ, (LPBYTE)pszValue, cbSize)) 302 nRet = 0; 322 323 if (ERROR_SUCCESS == RegSetValueEx(hOpenKey, pszName, 0, REG_DWORD, (LPBYTE)&dwValue, sizeof(DWORD))) 324 {suspend.php http://creative-portal.googlecode.com/svn/trunk/ | PHP | 297 lines
66 $save = $nv_Request->get_int( 'save', 'post', 0 ); 67 $error = ""; 68 if ( $save ) 74 { 75 $error = sprintf( $lang_module['susp_reason_empty'], $row_user['username'] ); 76 } 154 { 155 nv_info_die( $lang_global['error_info_caption'], $lang_global['site_info'], $lang_global['error_sendmail_admin'], 1 ); 156 } 167 168 $contents['change_suspend']['new_suspend_caption'] = ( ! empty( $error ) ) ? $error : $lang_module['chg_is_suspend' . $new_suspend]; 169 $contents['change_suspend']['new_suspend_is_error'] = ( ! empty( $error ) ) ? 1 : 0; 264{ 265 $class = ( $contents['change_suspend']['new_suspend_is_error'] ) ? " class=\"error\"" : ""; 266 $xtpl->assign( 'CLASS', ( $contents['change_suspend']['new_suspend_is_error'] ) ? " class=\"error\"" : "" );users_controller_spec.rb http://mobicents.googlecode.com/svn/trunk/ | Ruby | 412 lines
193 194 it "should set an error message in the flash if the user's profile is not complete'" do 195 @current_user.stub!(:profile_complete?).and_return(false) 196 get :edit 197 flash[:error].should_not be_blank 198 end 199 200 it "should NOT set an error message in the flash if the user's profile is not complete'" do 201 @current_user.stub!(:profile_complete?).and_return(true) 202 get :edit 203 flash[:error].should be_blank 204 end 355 356 it "should have a status of :error if the credentials are not valid" do 357 @client.should_receive(:attempt).with(:valid_credentials?, false).and_return(false)File.as http://buddypress-media.googlecode.com/svn/bp_media/trunk/ | ActionScript | 422 lines
166 // Delegate upload IO errors 167 file._fileRef.addEventListener(IOErrorEvent.IO_ERROR, function(e:IOErrorEvent):void { 168 dispatchEvent(e); 171 // Delegate secuirty errors 172 file._fileRef.addEventListener(SecurityErrorEvent.SECURITY_ERROR, function(e:SecurityErrorEvent):void { 173 dispatchEvent(e); 263 // File load IO error 264 this._fileRef.addEventListener(IOErrorEvent.IO_ERROR, function(e:Event):void { 265 this.dispatchEvent(e); 333 // Delegate upload IO errors 334 urlStream.addEventListener(IOErrorEvent.IO_ERROR, function(e:IOErrorEvent):void { 335 file._chunk = file._chunks; // Cancel upload of all remaining chunks 339 // Delegate secuirty errors 340 urlStream.addEventListener(SecurityErrorEvent.SECURITY_ERROR, function(e:SecurityErrorEvent):void { 341 file._chunk = file._chunks; // Cancel upload of all remaining chunksinstall.php https://code.google.com/p/osclass/ | PHP | 253 lines
21 22error_reporting(E_ERROR | E_CORE_ERROR | E_COMPILE_ERROR | E_PARSE); 23 41require_once LIB_PATH . 'osclass/helpers/hDefines.php'; 42require_once LIB_PATH . 'osclass/helpers/hErrors.php'; 43require_once LIB_PATH . 'osclass/helpers/hLocale.php'; 86 $message = __("Looks like you've already installed OSClass. To reinstall please clear your old database tables first."); 87 osc_die('OSClass » Error', $message) ; 88} 219 } elseif($step == 3) { 220 if( !isset($error["error"]) ) { 221 display_target(); 222 } else { 223 display_database_error($error, ($step - 1)); 224 }MefXapModuleTypeLoader.cs https://prism.svn.codeplex.com/svn | C# | 309 lines
75 76 private void RaiseLoadModuleCompleted(ModuleInfo moduleInfo, Exception error) 77 { 77 { 78 this.RaiseLoadModuleCompleted(new LoadModuleCompletedEventArgs(moduleInfo, error)); 79 } 219 220 Exception error = e.Error; 221 if (error == null) 236 { 237 error = ex; 238 } 242 { 243 this.RaiseLoadModuleCompleted(moduleInfo, error); 244 }test_weakset.py https://bitbucket.org/pypy/pypy/ | Python | 382 lines
53 def test_new_or_init(self): 54 self.assertRaises(TypeError, WeakSet, [], 2) 55 65 self.assertEqual(c in self.s, c in self.d) 66 # 1 is not weakref'able, but that TypeError is caught by __contains__ 67 self.assertNotIn(1, self.s) 78 self.assertEqual(type(u), WeakSet) 79 self.assertRaises(TypeError, self.s.union, [[]]) 80 for C in set, frozenset, dict.fromkeys, list, tuple: 114 self.assertEqual(type(i), WeakSet) 115 self.assertRaises(TypeError, self.s.difference, [[]]) 116 127 self.assertEqual(type(i), WeakSet) 128 self.assertRaises(TypeError, self.s.symmetric_difference, [[]]) 129sites.py https://bitbucket.org/mirror/django/ | Python | 350 lines
16 17ERROR_MESSAGE = ugettext_lazy("Please enter a correct username and password. Note that both fields are case-sensitive.") 18LOGIN_FORM_KEY = 'this_is_the_login_form' 158 admin_obj = self._registry[model] 159 except KeyError: 160 raise http.Http404("This model exists but has not been registered with the admin site.") 232 if user is None: 233 message = ERROR_MESSAGE 234 if u'@' in username: 265 else: 266 return self.display_login_form(request, ERROR_MESSAGE) 267 login = never_cache(login) 337 'post_data': post_data, 338 'error_message': error_message, 339 'root_path': self.root_path,CompositeDependencyHandler.cs https://hg01.codeplex.com/clientdependency | C# | 0 lines
98 //retry up to 5 times... this is only here due to a bug found in another website that was returning a blank 99 //result. To date, it can't be replicated in VS, but we'll leave it here for error handling support... can't hurt 100 for (int i = 0; i < 5; i++) 105 106 ClientDependencySettings.Instance.Logger.Error(string.Format("No bytes were returned, this is attempt {0}. Fileset: {1}, Type: {2}, Version: {3}", i, fileset, type, version), null); 107 } 225 { 226 ClientDependencySettings.Instance.Logger.Error("ClientDependency handler path is null", new Exception()); 227 return;doc.py https://bitbucket.org/mirror/django/ | Python | 347 lines
122 view_func = getattr(__import__(mod, '', '', ['']), func) 123 except (ImportError, AttributeError): 124 raise Http404 249def missing_docutils_page(request): 250 """Display an error message for people without docutils""" 251 return render_to_response('admin_doc/missing_docutils.html') 323 else: 324 raise TypeError, "%s does not appear to be a urlpattern object" % p 325 return viewsBaseServiceRemote.java http://tauruss.googlecode.com/svn/trunk/ | Java | 265 lines
99 } catch (Exception e) { 100 log.error(e); 101 }mwcc.py git://github.com/cloudant/bigcouch.git | Python | 207 lines
110 versions.append(mwv) 111 except SCons.Util.RegError: 112 pass 115 116 except SCons.Util.RegError: 117 passdbmechanic.py http://dbsprockets.googlecode.com/svn/trunk/ | Python | 162 lines
15from dbsprockets.sprockets import Sprockets 16#from dbsprockets.decorators import crudErrorCatcher, validate 17from tw.api import WidgetBunch 138 # @validate(error_handler=editRecord) 139 #@crudErrorCatcher(errorType=sqlalchemy.exceptions.IntegrityError, error_handler='editRecord') 140 #@crudErrorCatcher(errorType=sqlalchemy.exceptions.ProgrammingError, error_handler='editRecord') 148 # @validate(error_handler=addRecord) 149 #@crudErrorCatcher(errorType=sqlalchemy.exceptions.IntegrityError, error_handler='addRecord') 150 #@crudErrorCatcher(errorType=sqlalchemy.exceptions.ProgrammingError, error_handler='addRecord')MembershipRequestServiceHttp.java git://github.com/liferay/liferay-portal.git | Java | 229 lines
89 90 _log.error(systemException, systemException); 91 125 126 _log.error(systemException, systemException); 127 166 167 _log.error(systemException, systemException); 168 205 206 _log.error(systemException, systemException); 207TikaRawMetadataProcessor.java git://github.com/liferay/liferay-portal.git | Java | 255 lines
230 else { 231 _log.error(exception, exception); 232 }RenderWorld_local.h git://github.com/TTimo/doom3.gpl.git | C Header | 262 lines
31 32// assume any lightDef or entityDef index above this is an internal error 33const int LUDICROUS_INDEX = 10000;Features.java http://jjil.googlecode.com/svn/trunk/ | Java | 377 lines
110 Length = Delta.length(); 111 } catch (jjil.core.Error ex) { 112 } 168 Length = Delta.length(); 169 } catch (jjil.core.Error ex) { 170 } 226 Length = Delta.length(); 227 } catch (jjil.core.Error ex) { 228 }cookie.php http://skygames.googlecode.com/svn/trunk/ | PHP | 485 lines
184 * You must use this method before any output is sent to the browser. 185 * Failure to do so will result in header already sent errors. 186 * 267 * You must use this method before any output is sent to the browser. 268 * Failure to do so will result in header already sent errors. 269 * 299 * You must use this method before any output is sent to the browser. 300 * Failure to do so will result in header already sent errors. 301 *table.c git://github.com/octo/collectd.git | C | 502 lines
36 37#define log_err(...) ERROR("table plugin: " __VA_ARGS__) 38#define log_warn(...) WARNING("table plugin: " __VA_ARGS__) 446 447 if (ferror(fh) != 0) { 448 log_err("Failed to read from file \"%s\": %s.", tbl->file, STRERRNO);subqueries.py https://bitbucket.org/mirror/django/ | Python | 368 lines
5from django.contrib.contenttypes import generic 6from django.core.exceptions import FieldError 7from django.db.models.sql.constants import * 205 if not direct or m2m: 206 raise FieldError('Cannot update model field %r (only non-relations and foreign keys permitted).' % field) 207 values_seq.append((field, model, val)) 240 self.related_updates[model].append((column, value, placeholder)) 241 except KeyError: 242 self.related_updates[model] = [(column, value, placeholder)]GTMLoggerRingBufferWriterTest.m git://github.com/yfactorial/objectiveresource.git | Objective C | 363 lines
184 185 // An error log level should print the buffer and empty it. 186 [logger_ logDebug:@"oop"]; 190 191 [logger_ logError:@"blargh"]; 192 STAssertEquals([countingWriter_ count], (NSUInteger)3, nil); 280 [countingWriter_ reset]; 281 [logger_ logError:@"snoogy"]; // should drop "oop" 282 STAssertEquals([countingWriter_ count], (NSUInteger)1, nil); 349 350 [logger_ logError:@"bork"]; 351 STAssertEquals([countingWriter_ count], kCapacity, nil);options.py https://bitbucket.org/mirror/django/ | Python | 285 lines
57 if meta_attrs != {}: 58 raise TypeError, "'class Meta' got invalid attribute(s): %s" % ','.join(meta_attrs.keys()) 59 else: 99 def get_field(self, name, many_to_many=True): 100 "Returns the requested field by name. Raises FieldDoesNotExist on error." 101 to_search = many_to_many and (self.fields + self.many_to_many) or self.fields 109 if model is None: 110 raise ReferenceError("Model no longer available in %s" % self) 111 return model._default_manager 130 return self._all_related_objects 131 except AttributeError: 132 rel_objs = [] 164 return self._all_related_many_to_many_objects 165 except AttributeError: 166 rel_objs = []SubversionResolver.cs https://sourceserversharp.svn.codeplex.com/svn | C# | 0 lines
135 psi.RedirectStandardOutput = true; 136 psi.RedirectStandardError = true; 137 psi.RedirectStandardInput = true; 155 156 // Check if the volume exists; if not 'svn status' returns "svn: Error resolving case of 'q:\q'" 157 string root = Path.GetPathRoot(file.Key); 181 p.StandardInput.Close(); 182 p.ErrorDataReceived += new DataReceivedEventHandler(svnStatus_ErrorDataReceived); 183 p.OutputDataReceived += new DataReceivedEventHandler(svnStatus_OutputDataReceived); 184 _svnStatusOutput = new StringBuilder(); 185 _receivedError = false; 186 p.BeginErrorReadLine(); 191 _svnStatusOutput = null; 192 //string errs = p.StandardError.ReadToEnd(); 193tests.py https://bitbucket.org/mirror/django/ | Python | 346 lines
22 import decimal 23except ImportError: 24 from django.utils import _decimal as decimalBuildLogger.html http://xformsdb.googlecode.com/svn/trunk/ | HTML | 312 lines
128<CODE> void</CODE></FONT></TD> 129<TD><CODE><B><A HREF="../../../../org/apache/tools/ant/BuildLogger.html#setErrorPrintStream(java.io.PrintStream)">setErrorPrintStream</A></B>(java.io.PrintStream err)</CODE> 130 131<BR> 132 Sets the output stream to which this logger is to send error messages.</TD> 133</TR> 237 238<A NAME="setErrorPrintStream(java.io.PrintStream)"><!-- --></A><H3> 239setErrorPrintStream</H3> 240<PRE> 241public void <B>setErrorPrintStream</B>(java.io.PrintStream err)</PRE> 242<DL> 242<DL> 243<DD>Sets the output stream to which this logger is to send error messages. 244<P>udhcpc.c http://wl500g.googlecode.com/svn/trunk/ | C | 482 lines
47 if (!(fp = fopen(tmp, "w"))) { 48 perror(tmp); 49 return errno; 447 if ((fp = fopen("/etc/dhcp6c.conf", "w")) == NULL) { 448 perror("/etc/dhcp6c.conf"); 449 return 2;blobstore_stub.py https://code.google.com/p/soc/ | Python | 389 lines
303 Raises: 304 ApplicationError when application has the following errors: 305 INDEX_OUT_OF_RANGE: Index is negative or end > start. 312 if start_index < 0: 313 raise apiproxy_errors.ApplicationError( 314 blobstore_service_pb.BlobstoreServiceError.DATA_INDEX_OUT_OF_RANGE) 318 if end_index < start_index: 319 raise apiproxy_errors.ApplicationError( 320 blobstore_service_pb.BlobstoreServiceError.DATA_INDEX_OUT_OF_RANGE) 324 if fetch_size > blobstore.MAX_BLOB_FETCH_SIZE: 325 raise apiproxy_errors.ApplicationError( 326 blobstore_service_pb.BlobstoreServiceError.BLOB_FETCH_SIZE_TOO_LARGE) 335 except datastore_errors.EntityNotFoundError, err: 336 raise apiproxy_errors.ApplicationError( 337 blobstore_service_pb.BlobstoreServiceError.BLOB_NOT_FOUND)fruchterman_reingold.hpp http://hadesmem.googlecode.com/svn/trunk/ | C++ Header | 0 lines
12#ifndef BOOST_GRAPH_USE_MPI 13#error "Parallel BGL files should not be included unless <boost/graph/use_mpi.hpp> has been included" 14#endifGraphic3d_headers.i http://pythonocc.googlecode.com/svn/trunk/ | Swig | 360 lines
54#include<Graphic3d_AspectText3d.hxx> 55#include<Graphic3d_AspectTextDefinitionError.hxx> 56#include<Graphic3d_CBitFields16.hxx> 71#include<Graphic3d_CView.hxx> 72#include<Graphic3d_CycleError.hxx> 73#include<Graphic3d_DataStructureManager.hxx> 78#include<Graphic3d_GroupAspect.hxx> 79#include<Graphic3d_GroupDefinitionError.hxx> 80#include<Graphic3d_HSequenceOfGroup.hxx> 83#include<Graphic3d_HorizontalTextAlignment.hxx> 84#include<Graphic3d_InitialisationError.hxx> 85#include<Graphic3d_ListIteratorOfListOfPArray.hxx> 95#include<Graphic3d_MaterialAspect.hxx> 96#include<Graphic3d_MaterialDefinitionError.hxx> 97#include<Graphic3d_NListOfHAsciiString.hxx>StdFail.i http://pythonocc.googlecode.com/svn/trunk/ | Swig | 458 lines
55%nodefaultctor Handle_StdFail_UndefinedValue; 56class Handle_StdFail_UndefinedValue : public Handle_Standard_DomainError { 57 public: 207%nodefaultctor Handle_StdFail_UndefinedDerivative; 208class Handle_StdFail_UndefinedDerivative : public Handle_Standard_DomainError { 209 public: 288%nodefaultctor StdFail_UndefinedDerivative; 289class StdFail_UndefinedDerivative : public Standard_DomainError { 290 public: 417%nodefaultctor StdFail_UndefinedValue; 418class StdFail_UndefinedValue : public Standard_DomainError { 419 public:ExternalAnyKeyboard.java http://softkeyboard.googlecode.com/svn/ | Java | 323 lines
164 } catch (Exception e) { 165 Log.e(TAG, "Parse error:" + e); 166 e.printStackTrace();JavaAction.java https://svn.apache.org/repos/asf/incubator/isis/ | Java | 0 lines
120 if (parameters.length != paramCount) { 121 LOG.error(actionMethod + " requires " + paramCount + " parameters, not " + parameters.length); 122 } 175 if (parameterSet.length != paramCount) { 176 LOG.error(actionMethod + " requires " + paramCount + " parameters, not " + parameterSet.length); 177 }ConcurrentBroadcastTest.java git://github.com/Atmosphere/atmosphere.git | Java | 197 lines
158 } catch (Exception e) { 159 logger.error("test failed", e); 160 e.printStackTrace();DataTxTests.java http://hypergraphdb.googlecode.com/svn/trunk/ | Java | 0 lines
28 29 private ArrayList<Throwable> errors = new ArrayList<Throwable>(); 30 194 t.printStackTrace(System.err); 195 errors.add(t); 196 } 209 } 210 assertEquals(errors.size(), 0); 211 verifyData();CultureHelperHttpModule.cs https://hg01.codeplex.com/mojoportal | C# | 169 lines
19 { 20 application.Error += new EventHandler(this.Error); 21 application.BeginRequest += new EventHandler(BeginRequest); 51 // culture, but you should make sure that the resource file for the default culture 52 // has no missing keys or runtime errors could occur 53 87 { 88 log.Info("swallowed error in culture helper", ex); 89 } 91 { 92 log.Info("swallowed error in culture helper", ex); 93 } 120 //can happen in medium trust 121 log.Error(ex); 122 }home.php http://n-13news.googlecode.com/svn/trunk/ | PHP | 164 lines
60if(ini_get("register_globals")){ 61 echo "<div class=\"error-warning\">"; 62 echo $langmsg['home'][3]; 69 echo "<form method=\"post\" action=\"?\">"; 70 echo "<div class=\"error-warning\">"; 71 echo $langmsg['home'][4] . "<br /><br />" . $langmsg['home'][21]; 79 if(!@unlink("install/index.php")){ 80 echo "<span class=error>"; 81 echo $langmsg['home'][5];pack.c https://gnukeyring.svn.sourceforge.net/svnroot/gnukeyring | C | 243 lines
35 * 36 * ``May display a fatal error message if any of the following 37 * occur: [] You don t have write access to the database. [] 47 * 48 * TODO: Better error checking that e.g. we're not running past the 49 * end of the record. Display an error dialog rather than crashing. 159 errOut: 160 UI_ReportSysError2(ID_KeyDatabaseAlert, err, __FUNCTION__); 161 return err; 170 if (!recHandle) { 171 UI_ReportSysError2(ID_KeyDatabaseAlert, DmGetLastErr(), 172 __FUNCTION__); 194 fail: 195 UI_ReportSysError2(ID_KeyDatabaseAlert, err, __FUNCTION__); 196}test_node_stream.py https://bitbucket.org/Stiivi/brewery/ | Python | 221 lines
49 50 self.assertRaises(KeyError, self.stream.connect, "sample", "unknown") 51 52 node = Node() 53 self.assertRaises(KeyError, self.stream.add, node, "sample") 54 194 195 self.assertRaisesRegexp(StreamRuntimeError, "This is fail node", stream.run) 196 200 stream.run() 201 except StreamRuntimeError, e: 202 handle = StringIO.StringIO() 219 220 self.assertRaises(StreamRuntimeError, stream.run) 221manufacturers.php git://github.com/osCommerce/oscommerce.git | PHP | 176 lines
55 56 $error = false; 57 71 72 if ( !$osC_Database->isError() ) { 73 if ( is_numeric($id) ) { 89 90 if ( $osC_Database->isError() ) { 91 $error = true; 95 } else { 96 $error = true; 97 } 98 99 if ( $error === false ) { 100 foreach ( $osC_Language->getAll() as $l ) {dirs.rkt git://github.com/smorin/f4f.arc.git | Racket | 209 lines
162 (unless m 163 (error "cannot find \"dLl dIRECTORy\" tag in binary")) 164 (let-values ([(dir name dir?) (split-path exe)])ConstantPoolEntry.java https://code.google.com/p/classroom-presenter/ | Java | 222 lines
158 default: 159 throw new ClassFormatError("Invalid Constant Pool entry Type " 160 + cpTag);nsIXPIDialogService.h https://hg01.codeplex.com/kmbrasil | C Header | 0 lines
110#define NS_FORWARD_SAFE_NSIXPIDIALOGSERVICE(_to) \ 111 NS_IMETHOD ConfirmInstall(nsIDOMWindow *parent, const PRUnichar **packageList, PRUint32 count, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ConfirmInstall(parent, packageList, count, _retval); } \ 112 NS_IMETHOD OpenProgressDialog(const PRUnichar **packageList, PRUint32 count, nsIObserver *observer) { return !_to ? NS_ERROR_NULL_POINTER : _to->OpenProgressDialog(packageList, count, observer); } 148{ 149 return NS_ERROR_NOT_IMPLEMENTED; 150} 154{ 155 return NS_ERROR_NOT_IMPLEMENTED; 156}nsITextToSubURI.h https://hg01.codeplex.com/kmbrasil | C Header | 0 lines
44 * give the original escaped string 45 * <li> In case of a conversion error, the URI fragment (escaped) is 46 * assumed to be in UTF-8 and converted to AString (UTF-16) 46 * assumed to be in UTF-8 and converted to AString (UTF-16) 47 * <li> Always succeeeds (callers don't need to do error checking) 48 * </ul> 64 * @return Unescaped aURIFragment converted to unicode 65 * @throws NS_ERROR_UCONV_NOCONV when there is no decoder for aCharset 66 * or error code of nsIUnicodeDecoder in case of conversion failure 88#define NS_FORWARD_SAFE_NSITEXTTOSUBURI(_to) \ 89 NS_IMETHOD ConvertAndEscape(const char *charset, const PRUnichar *text, char **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ConvertAndEscape(charset, text, _retval); } \ 90 NS_IMETHOD UnEscapeAndConvert(const char *charset, const char *text, PRUnichar **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->UnEscapeAndConvert(charset, text, _retval); } \ 90 NS_IMETHOD UnEscapeAndConvert(const char *charset, const char *text, PRUnichar **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->UnEscapeAndConvert(charset, text, _retval); } \ 91 NS_IMETHOD UnEscapeURIForUI(const nsACString & aCharset, const nsACString & aURIFragment, nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->UnEscapeURIForUI(aCharset, aURIFragment, _retval); } \ 92 NS_IMETHOD UnEscapeNonAsciiURI(const nsACString & aCharset, const nsACString & aURIFragment, nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->UnEscapeNonAsciiURI(aCharset, aURIFragment, _retval); }kthread.c https://code.google.com/p/bricked/ | C | 253 lines
110 * kthread_stop() has been called). The return value should be zero 111 * or a negative error number; it will be passed to kthread_stop(). 112 *reduce_intervals.inl https://code.google.com/p/thrust/ | C++ Header | 0 lines
162 // ======================================================================== 163 // X Note to the user: If you've found this line due to a compiler error, X 164 // X you need to compile your code using nvcc, rather than g++ or cl.exe Xtarget-exception.lisp git://github.com/sbcl/sbcl.git | Lisp | 153 lines
60 (cons-name +exception-single-step+) 61 (cons +exception-access-violation+ 'memory-fault-error) 62 (cons-name +exception-array-bounds-exceeded+) 65 (cons-name +exception-illegal-instruction+) 66 (cons-name +exception-in-page-error+) 67 (cons-name +exception-int-divide-by-zero+) 104 105(define-condition exception (error) 106 ((code :initarg :code :reader exception-code) 123 (cond ((stringp condition-name) 124 (error condition-name)) 125 ((and condition-name 133 ((eq condition-name 'memory-fault-error) 134 (error 'memory-fault-error :address 135 (sap-int (deref (slot record 'exception-information) 1))))Blamer.scala http://scage.googlecode.com/svn/trunk/ | Scala | 151 lines
38 case None => { 39 log.error("failed to place killy to the field, the programm will exit") 40 System.exit(1) 46 case None => { 47 log.error("failed to place cibo to the field, the programm will exit") 48 System.exit(1)File.php http://preader.googlecode.com/svn/trunk/ | PHP | 530 lines
22 /** 23 * The error code for IOException if there is a problem to close the file. 24 * 26 */ 27 const ERROR_CLOSE = 40; 28 29 /** 30 * The error code for IOException if there is a problem to detect file info 31 * 33 */ 34 const ERROR_FILE_INFO = 20; 35 36 /** 37 * The error code for IOException if there is a general problem. 38 *v4l2.cpp git://github.com/UPenn-RoboCup/UPennalizers.git | C++ | 514 lines
75 76int v4l2_error(const char *error_msg) { 77 if (video_fd >= 0) 81 fprintf(stderr, "Err: %d\n", x); 82 fprintf(stderr, "V4L2 error: %s\n", error_msg); 83 return -2; 97 else { 98 // error 99 } 114 else 115 return v4l2_error("Could not query control"); 116 } 201 // if ((video_fd = open(device, O_RDWR, 0)) == -1) 202 return v4l2_error("Could not open video device"); 203 fprintf(stdout, "open: %d\n", video_fd);detection.cpp git://github.com/scummvm/scummvm.git | C++ | 416 lines
91 92 Common::Error createInstance(OSystem *syst, Engine **engine) const override; 93 274 275Common::Error SkyMetaEngine::createInstance(OSystem *syst, Engine **engine) const { 276 assert(engine); 277 *engine = new Sky::SkyEngine(syst); 278 return Common::kNoError; 279} 371 if (ioFailed) 372 warning("Unable to store Savegame names to file SKY-VM.SAV. (%s)", saveFileMan->popErrorDesc().c_str()); 373} 383 uint16 result = _skyControl->quickXRestore(slot - 1); 384 return (result == GAME_RESTORED) ? Common::kNoError : Common::kUnknownError; 385}sequence.cpp git://github.com/scummvm/scummvm.git | C++ | 481 lines
116 default: 117 error("[AnimFrame::AnimFrame] Unknown frame compression: %d", f.compressionType); 118 } 380 if (_stream->eos()) 381 error("[Sequence::load] Couldn't seek to the current frame data"); 382 384 if ((unsigned)(_stream->size() - _stream->pos()) < _sequenceFrameSize) 385 error("[Sequence::load] The sequence frame does not have a valid header"); 386 398 if (_frames.size() == 0) 399 error("[Sequence::getFrameInfo] Trying to decode a sequence before loading its data"); 400 401 if (index > _frames.size() - 1) 402 error("[Sequence::getFrameInfo] Invalid sequence frame requested: %d, max %d", index, _frames.size() - 1); 403Config.pas http://panel-colorer.googlecode.com/svn/trunk/ | Pascal | 223 lines
24 BESENNumberUtils, 25 BESENErrors, 26 BESENCharset,mobile-enhancements.css http://foxtrick.googlecode.com/svn/trunk/ | CSS | 218 lines
16.ft-mobile a.featuredShopItem, .ft-mobile div.featuredShopItemText, 17.ft-mobile #fbErrorBox, .ft-mobile .fbSendBox , .ft-mobile .sendBoxHeader 18/*textarea.medium{width:400px;height:100px;}syntax.ss git://github.com/stuhlmueller/scheme-transforms.git | Scheme | 227 lines
153 [(application? e) (map f e)] 154 [else (error e "mapsub: unknown expression type")])) 155 158 [(application? e) e] 159 [else (error e "subexps: unknown expression type")])) 160wxIcon.erl git://github.com/erlang/otp.git | Erlang | 139 lines
41parent_class(wxBitmap) -> true; 42parent_class(_Class) -> erlang:error({badtype, ?MODULE}). 43 82 ({desiredHeight, DesiredHeight}, Acc) -> [<<3:32/?UI,DesiredHeight:32/?UI>>|Acc]; 83 (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, 84 BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),resman.py http://migrid.googlecode.com/svn/trunk/ | Python | 299 lines
66 if not validate_status: 67 return (accepted, returnvalues.CLIENT_ERROR) 68Daemon.pm git://github.com/kraih/mojo.git | Perl | 542 lines
95 my $req = $tx->req; 96 if (my $error = $req->error) { $self->_debug($id, $error->{message}) } 97 110 $tx->res->headers->connection('close') 111 if ($c->{requests} || 1) >= $self->max_requests || $req->error; 112 156 # Close connection if necessary 157 return $self->_remove($id) if $tx->error || !$tx->keep_alive; 158 204 $stream->on(close => sub { $self && $self->_close($id) }); 205 $stream->on(error => 206 sub { $self && $self->app->log->error(pop) && $self->_close($id) });edit_expando.jsp git://github.com/liferay/liferay-portal.git | JavaServer Pages | 294 lines
70 71 <liferay-ui:error exception="<%= ColumnNameException.class %>" message="please-enter-a-valid-name" /> 72 <liferay-ui:error exception="<%= ColumnTypeException.class %>" message="please-select-a-valid-type" /> 72 <liferay-ui:error exception="<%= ColumnTypeException.class %>" message="please-select-a-valid-type" /> 73 <liferay-ui:error exception="<%= DuplicateColumnNameException.class %>" message="please-enter-a-unique-name" /> 74 <liferay-ui:error exception="<%= ValueDataException.class %>" message="please-enter-a-valid-value" />CDatabaseConnectionMySql.cpp http://mtasa-blue.googlecode.com/svn/trunk/ | C++ | 454 lines
53 SString m_strLastErrorMessage; 54 uint m_uiLastErrorCode; 55 uint m_uiNumAffectedRows; 112 { 113 SetLastError ( mysql_errno( m_handle ), mysql_error ( m_handle ) ); 114 } 195{ 196 return m_strLastErrorMessage; 197} 201// 202// CDatabaseConnectionMySql::GetLastErrorCode 203// 268 { 269 SetLastError ( mysql_errno( m_handle ), mysql_error ( m_handle ) ); 270 return false;OgreUnifiedHighLevelGpuProgram.cpp http://gmogre3d.googlecode.com/svn/trunk/ | C++ | 408 lines
131 GpuProgramParametersSharedPtr params = GpuProgramManager::getSingleton().createParameters(); 132 // avoid any errors on parameter names that don't exist 133 params->setIgnoreMissingParams(true); 224 //----------------------------------------------------------------------- 225 bool UnifiedHighLevelGpuProgram::hasCompileError(void) const 226 { 232 { 233 return _getDelegate()->hasCompileError(); 234 } 236 //----------------------------------------------------------------------- 237 void UnifiedHighLevelGpuProgram::resetCompileError(void) 238 { 239 if (!_getDelegate().isNull()) 240 _getDelegate()->resetCompileError(); 241 }SQLDescribeColW.c https://unixodbc.svn.sourceforge.net/svnroot/unixodbc | C | 468 lines
225 226 __post_internal_error_api( &statement -> error, 227 ERROR_07009, NULL, 276 277 __post_internal_error( &statement -> error, 278 ERROR_HY010, NULL, 338 339 __post_internal_error( &statement -> error, 340 ERROR_HY010, NULL, 357 358 __post_internal_error( &statement -> error, 359 ERROR_IM001, NULL, 387 388 __post_internal_error( &statement -> error, 389 ERROR_IM001, NULL,nntp.c https://unixodbc.svn.sourceforge.net/svnroot/unixodbc | C | 855 lines
234 case -1: 235 return strerror( errno ); 236 260 261 pcndes->code = -1; /* system error */ 262all-index-J.html http://gmaps-utility-library-flash.googlecode.com/svn/trunk/ | HTML | 134 lines
71<tr> 72<td colspan="2" class="idxrow"><a onclick="javascript:loadClassListFrame('com/google/maps/extras/arcgislink/json/class-list.html');" href="com/google/maps/extras/arcgislink/json/JSONParseError.html">JSONParseError</a> — Class in package <a onclick="javascript:loadClassListFrame('com/google/maps/extras/arcgislink/json/class-list.html');" href="com/google/maps/extras/arcgislink/json/package-detail.html">com.google.maps.extras.arcgislink.json</a></td> 73</tr> 78<tr> 79<td colspan="2" class="idxrow"><a onclick="javascript:loadClassListFrame('com/google/maps/extras/arcgislink/json/class-list.html');" href="com/google/maps/extras/arcgislink/json/JSONParseError.html#JSONParseError()">JSONParseError</a>(message, location, text) — Constructor in class com.google.maps.extras.arcgislink.json.<a onclick="javascript:loadClassListFrame('com/google/maps/extras/arcgislink/json/class-list.html');" href="com/google/maps/extras/arcgislink/json/JSONParseError.html">JSONParseError</a></td> 80</tr> 82<td width="20"></td><td> 83 Constructs a new JSONParseError.</td> 84</tr>IdGopher.pas git://github.com/rofl0r/KOL.git | Pascal | 560 lines
75 procedure DoMenu(MenuItem: TIdGopherMenuItem); 76 procedure ProcessGopherError; 77 function MenuItemFromString(stLine: string; Menu: TIdGopherMenu) 138 139procedure TIdGopher.ProcessGopherError; 140var 140var 141 ErrorNo: Integer; 142 ErrMsg: string; 145 ErrorNo := StrToInt(Fetch(ErrMsg)); 146// raise EIdProtocolReplyError.CreateError(ErrorNo, Copy(ErrMsg, 1, Length(ErrMsg) 147// - 5)); 168 begin 169 Result.ItemType := IdGopherItem_Error; 170 end;nsIURIContentListener.h http://firefox-mac-pdf.googlecode.com/svn/trunk/ | C Header | 277 lines
186#define NS_FORWARD_SAFE_NSIURICONTENTLISTENER(_to) \ 187 NS_SCRIPTABLE NS_IMETHOD OnStartURIOpen(nsIURI *aURI, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnStartURIOpen(aURI, _retval); } \ 188 NS_SCRIPTABLE NS_IMETHOD DoContent(const char *aContentType, PRBool aIsContentPreferred, nsIRequest *aRequest, nsIStreamListener **aContentHandler, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->DoContent(aContentType, aIsContentPreferred, aRequest, aContentHandler, _retval); } \ 188 NS_SCRIPTABLE NS_IMETHOD DoContent(const char *aContentType, PRBool aIsContentPreferred, nsIRequest *aRequest, nsIStreamListener **aContentHandler, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->DoContent(aContentType, aIsContentPreferred, aRequest, aContentHandler, _retval); } \ 189 NS_SCRIPTABLE NS_IMETHOD IsPreferred(const char *aContentType, char **aDesiredContentType, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsPreferred(aContentType, aDesiredContentType, _retval); } \ 190 NS_SCRIPTABLE NS_IMETHOD CanHandleContent(const char *aContentType, PRBool aIsContentPreferred, char **aDesiredContentType, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->CanHandleContent(aContentType, aIsContentPreferred, aDesiredContentType, _retval); } \ 190 NS_SCRIPTABLE NS_IMETHOD CanHandleContent(const char *aContentType, PRBool aIsContentPreferred, char **aDesiredContentType, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->CanHandleContent(aContentType, aIsContentPreferred, aDesiredContentType, _retval); } \ 191 NS_SCRIPTABLE NS_IMETHOD GetLoadCookie(nsISupports * *aLoadCookie) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLoadCookie(aLoadCookie); } \ 192 NS_SCRIPTABLE NS_IMETHOD SetLoadCookie(nsISupports * aLoadCookie) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLoadCookie(aLoadCookie); } \ 192 NS_SCRIPTABLE NS_IMETHOD SetLoadCookie(nsISupports * aLoadCookie) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLoadCookie(aLoadCookie); } \ 193 NS_SCRIPTABLE NS_IMETHOD GetParentContentListener(nsIURIContentListener * *aParentContentListener) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParentContentListener(aParentContentListener); } \ 194 NS_SCRIPTABLE NS_IMETHOD SetParentContentListener(nsIURIContentListener * aParentContentListener) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetParentContentListener(aParentContentListener); } 230{ 231 return NS_ERROR_NOT_IMPLEMENTED; 232}DatabaseMysql.cpp git://github.com/mangosR2/mangos.git | C++ | 510 lines
195 sLog.outErrorDb( "SQL: %s", sql ); 196 sLog.outErrorDb("query ERROR: %s", mysql_error(mMysql)); 197 return false; 285 sLog.outError("SQL: %s", sql); 286 sLog.outError("SQL ERROR: %s", mysql_error(mMysql)); 287 return false; 369 sLog.outError("SQL: no meta information for '%s'", m_szFmt.c_str()); 370 sLog.outError("SQL ERROR: %s", mysql_stmt_error(m_stmt)); 371 return false; 428 sLog.outError("SQL ERROR: mysql_stmt_bind_param() failed\n"); 429 sLog.outError("SQL ERROR: %s", mysql_stmt_error(m_stmt)); 430 } 477 sLog.outError("SQL: cannot execute '%s'", m_szFmt.c_str()); 478 sLog.outError("SQL ERROR: %s", mysql_stmt_error(m_stmt)); 479 return false;ResolvedArrayBytecodeExpr.java git://github.com/groovypp/groovypp.git | Java | 303 lines
201 if (methodNode == null) { 202 compiler.addError("Cannot find method " + methodName + "() for type " + PresentationUtil.getText(vtype), exp); 203 return null; 263 if (methodNode == null) { 264 compiler.addError("Cannot find method " + methodName + "() for type " + PresentationUtil.getText(vtype), exp); 265 return null;VectorMapRenderer.java http://ametro.googlecode.com/svn/trunk/ | Java | 475 lines
183 } 184 }catch(OutOfMemoryError ex){ 185 // eat out-of-memory exceptionlilyString.py http://music21.googlecode.com/svn/trunk/ | Python | 440 lines
34 noPIL = False 35except ImportError: 36 noPIL = Truekfbxclonemanager.h http://monoxna.googlecode.com/svn/trunk/ | C Header | 173 lines
26 WITHOUT LIMITING THE FOREGOING, AUTODESK DOES NOT WARRANT THAT THE OPERATION 27 OF THE DATA WILL BE UNINTERRUPTED OR ERROR FREE. 28idt.d git://github.com/xomboverlord/xomb.git | D | 325 lines
13import user.util; // For BitField!() 14import kernel.core.error; // For ErrorVal so errors can be indicated 15import kernel.core.kprintf; // For printing the stack dump 24 // Data pushed by the isr 25 ulong intNumber, errorCode; 26 48 49 ErrorVal initialize() { 50 // Initialize the IDT base structure that will be 64 65 return ErrorVal.Success; 66 } 67 68 ErrorVal install() { 69 asm {mcproto.h git://anongit.freedesktop.org/git/xorg/test/xts.git/ | C Header | 0 lines
94int errtext(char *buf); 95int valerror(char *buf); 96int valerrdefs(void); 187int errtext(); 188int valerror(); 189int valerrdefs();Logger.hx git://github.com/tomtera/stax.git | Haxe | 180 lines
31 public function warning(s: String, ?p: PosInfos): Void; 32 public function error(s: String, ?p: PosInfos): Void; 33 public function fatal(s: String, ?p: PosInfos): Void; 96 97 public function error(s: String, ?p: PosInfos) { _handler(Error, s, p); } 98 117 case Warning: if (c.warn != null) c.warn(text); 118 case Error, Fatal, None: if (c.error != null) c.error(text); 119 } 131 case Warning: flash.external.ExternalInterface.call('(function(text){if (console != null && console.warn) console.warn(text);})', text); 132 case Error, Fatal, None: flash.external.ExternalInterface.call('(function(text){if (console != null && console.error) console.error(text);})', text); 133 } 162 case Warning: "Warning"; 163 case Error: "Error"; 164 case Fatal: "Fatal";yacc-interrupted.rkt git://github.com/smorin/f4f.arc.git | Racket | 299 lines
14 (lambda (stx) 15 (raise-syntax-error #f "keyword ! used out of context" stx))) 16 18 (lambda (stx) 19 (raise-syntax-error #f "keyword !! used out of context" stx))) 20 22 (lambda (stx) 23 (raise-syntax-error #f "keyword ? used out of context" stx))) 24 44 (keyword? (syntax-e #'kw)) 45 (raise-syntax-error 'split "bad keyword" (car forms))] 46 [(pattern action) 48 [other 49 (raise-syntax-error 'split "bad grammar option or alternate" #'other)]) 50 (values options (reverse alts)))))securepyro.py http://migrid.googlecode.com/svn/trunk/ | Python | 240 lines
140 if not os.path.isfile(key_path): 141 raise ValueError("No such server key: %s" % key_path) 142 if not os.path.isfile(cert_path): 142 if not os.path.isfile(cert_path): 143 raise ValueError("No such server certificate: %s" % cert_path) 144 # requires m2crypto module, concatenated ssl key/cert and cacertqfplist.c https://quake.svn.sourceforge.net/svnroot/quake | C | 496 lines
210 if (pl->pos >= pl->end) { 211 pl->error = "Reached end of string while parsing quoted string"; 212 return NULL; 340 if (key->type != QFString) { 341 pl->error = "Key is not a string"; 342 PL_FreeItem (key); 346 if (pl->ptr[pl->pos] != '=') { 347 pl->error = "Unexpected character (expected '=')"; 348 PL_FreeItem (key); 367 } else if (pl->ptr[pl->pos] != '}') { 368 pl->error = "Unexpected character (wanted ';' or '}')"; 369 PL_FreeItem (key); 489 } else { 490 if (pl && pl->error && pl->error[0]) 491 Sys_Error ("%d,%d: %s", pl->line, pl->pos, pl->error);models.py https://bitbucket.org/mirror/django/ | Python | 118 lines
1""" 226. A test to check that the model validator works can correctly identify errors in a model. 3""" 6 7class FieldErrors(models.Model): 8 charfield = models.CharField() 69 70error_log = """invalid_models.fielderrors: "charfield": CharFields require a "maxlength" attribute. 71invalid_models.fielderrors: "floatfield": FloatFields require a "decimal_places" attribute. 71invalid_models.fielderrors: "floatfield": FloatFields require a "decimal_places" attribute. 72invalid_models.fielderrors: "floatfield": FloatFields require a "max_digits" attribute. 73invalid_models.fielderrors: "filefield": FileFields require an "upload_to" attribute. 73invalid_models.fielderrors: "filefield": FileFields require an "upload_to" attribute. 74invalid_models.fielderrors: "prepopulate": prepopulate_from should be a list or tuple. 75invalid_models.fielderrors: "choices": "choices" should be either a tuple or list.README.markdown git://github.com/geofflane/grails-constraints.git | Markdown | 316 lines
761. false 772. A String which is used as the error message to show the user 783. A Collection with first element being message code, and following elements being message parameters 842. The target object being validated 853. The validation errors collection 86 87e.g. 88 def validate = { thePropertyValue, theTargetObject, errorsListYouProbablyWontEverNeed -> 89 return null != thePropertyValue && theTargetObject.rocks() 123### defaultMessageCode property (optional) ### 124The defaultMessageCode property defines the default key that will be used to look up the error message 125in the *grails-app/i18n/messages.properties* files. 132### failureCode property (optional) ### 133The failureCode property defines a key that can be used to lookup error messages in the *grails-app/i18n/messages.properties* files. 134The value of this property is appended to the end of the Class.property name that the Constraint is applied to.surfaces.c https://quake.svn.sourceforge.net/svnroot/quake | C | 463 lines
94 if (!front || !back) 95 Sys_Error ("SubdivideFace: didn't split the polygon"); 96 *prevptr = back; 286 if (hv->num == MAX_MAP_VERTS) 287 Sys_Error ("GetVertex: MAX_MAP_VERTS"); 288 hvert_p++; 291 if (bsp->numvertexes == MAX_MAP_VERTS) 292 Sys_Error ("numvertexes == MAX_MAP_VERTS"); 293 318 if (!f->contents[0]) 319 Sys_Error ("GetEdge: 0 contents"); 320 334 if (bsp->numedges == MAX_MAP_EDGES) 335 Sys_Error ("numedges == MAX_MAP_EDGES"); 336 edge.v[0] = v1;RMongo.scala git://github.com/tc/RMongo.git | Scala | 205 lines
62 63 if(results.getError == null) "ok" else results.getError 64 }user.php http://xoopscube-modules.googlecode.com/svn/trunk/ | PHP | 138 lines
48define('_US_YOURREGISTERED','You are now registered. An email containing an user activation key has been sent to the email account you provided. Please follow the instructions in the mail to activate your account. '); 49define('_US_YOURREGMAILNG','You are now registered. However, we were unable to send the activation mail to your email account due to an internal error that had occurred on our server. We are sorry for the inconvenience, please send the webmaster an email notifying him/her of the situation.'); 50define('_US_YOURREGISTERED2','You are now registered. Please wait for your account to be activated by the adminstrators. You will receive an email once you are activated. This could take a while so please be patient.'); 56 57define('_US_INVALIDMAIL','ERROR: Invalid email'); 58define('_US_EMAILNOSPACES','ERROR: Email addresses do not contain spaces.'); 58define('_US_EMAILNOSPACES','ERROR: Email addresses do not contain spaces.'); 59define('_US_INVALIDNICKNAME','ERROR: Invalid Username'); 60define('_US_NICKNAMETOOLONG','Username is too long. It must be less than %s characters.'); 61define('_US_NICKNAMETOOSHORT','Username is too short. It must be more than %s characters.'); 62define('_US_NAMERESERVED','ERROR: Name is reserved.'); 63define('_US_NICKNAMENOSPACES','There cannot be any spaces in the Username.'); 63define('_US_NICKNAMENOSPACES','There cannot be any spaces in the Username.'); 64define('_US_NICKNAMETAKEN','ERROR: Username taken.'); 65define('_US_EMAILTAKEN','ERROR: Email address already registered.');PearLogListener.php https://bitbucket.org/hosseinzolfi/db-lab-spring-2011/ | PHP | 198 lines
125 /** 126 * Logs whether the build succeeded or failed, and any errors that 127 * occured during the build. Also outputs the total build-time. 132 public function buildFinished(BuildEvent $event) { 133 $error = $event->getException(); 134 if ($error === null) { 136 } else { 137 $msg = "Build failed. [reason: " . $error->getMessage() ."]"; 138 }action_base_event.erl git://github.com/zotonic/zotonic.git | Erlang | 164 lines
140 undefined -> 141 lager:error("Unhandled event type: ~p", [EventType]), 142 {[], Context}record.sc git://github.com/pablomarx/Thomas.git | Scala | 185 lines
37 38; error:wrong-type-argument and error:bad-range-argument each signal Scheme 39; conditions indicating an argument of the wrong type or invalid value 44(define (error:wrong-type-argument record-type expected-type procedure) 45 (error 'record-package "~s ~s~%" 46 (string-append (symbol->string procedure) 90 (if (null? field-names) 91 (error:bad-range-argument field-name procedure-name)) 92 (if (eq? field-name (car field-names)) 96(define (record-type-error record record-type procedure) 97 (error:wrong-type-argument 98 record 107 (if (not (record-type? record-type)) 108 (error:wrong-type-argument record-type "record type" 109 'RECORD-CONSTRUCTOR))kprest_bayes.m git://github.com/aludnam/MATLAB.git | Objective C | 185 lines
44 Inputs=varargin{1}; arglist=varargin{2}; 45else error('Usage: [out1,..] = kprest_bayes(Inputs,arglist).'); 46end 47if size(arglist,2)~=2 48 error('arglist must be of form {''ParameterTag1'',value1;''ParameterTag2'',value2}') 49 end 68 if (nextinput > length(Inputs)) 69 error(['Input ' narglist{jj,1} ' has no corresponding input!']); 70 end 74 if (nextoutput > nargout) 75 error(['Output nr. ' narglist{jj,1} ' is not present in the assignment list of outputs !']); 76 end 90 if strcmp(paramtype{jj}, 'Integer') & (round(arglist{ii,2}) ~= arglist{ii,2}) 91 error(['Argument ' arglist{ii,1} ' is of integer type but non-integer number ' arglist{ii,2} ' was supplied']); 92 endkrp_ranros.m git://github.com/aludnam/MATLAB.git | Objective C | 194 lines
53 Inputs=varargin{1}; arglist=varargin{2}; 54else error('Usage: [out1,..] = krp_ranros(Inputs,arglist).'); 55end 56if size(arglist,2)~=2 57 error('arglist must be of form {''ParameterTag1'',value1;''ParameterTag2'',value2}') 58 end 77 if (nextinput > length(Inputs)) 78 error(['Input ' narglist{jj,1} ' has no corresponding input!']); 79 end 83 if (nextoutput > nargout) 84 error(['Output nr. ' narglist{jj,1} ' is not present in the assignment list of outputs !']); 85 end 99 if strcmp(paramtype{jj}, 'Integer') & (round(arglist{ii,2}) ~= arglist{ii,2}) 100 error(['Argument ' arglist{ii,1} ' is of integer type but non-integer number ' arglist{ii,2} ' was supplied']); 101 endIoDynLib.c git://github.com/stevedekorte/io.git | C | 524 lines
150 /*doc DynLib open 151 Opens the dynamic library and returns self or raises a DynLoad.open Error if there is an error. 152 */ 162 { 163 IoState_error_(IOSTATE, m, "Error loading object '%s': '%s'", 164 DynLib_path(DATA(self)), DynLib_error(DATA(self))); 389 { 390 IoState_error_(IOSTATE, m, "Error resolving call '%s'.", CSTRING(callName)); 391 return IONIL(self); 395 { 396 IoState_error_(IOSTATE, m, "Error, too many arguments (%i) to call '%s'.", 397 IoMessage_argCount(m) - 1, 415 { 416 IoState_error_(IOSTATE, m, "DynLib error marshalling argument (%i) to call '%s'.", 417 n + 1, CSTRING(callName));Materials.cpp https://jetpp.svn.sourceforge.net/svnroot/jetpp | C++ | 435 lines
24#include "assert.h" 25#include "errorlog.h" 26#include "ram.h" 62 { 63 jeErrorLog_Add( JE_ERR_MEMORY_RESOURCE, NULL ); 64 return( NULL ); 72 { 73 jeErrorLog_Add( JE_ERR_DATA_FORMAT, NULL ); 74 return( NULL ); 80 { 81 jeErrorLog_Add( JE_ERR_MEMORY_RESOURCE, NULL ); 82 return( NULL ); 91 { 92 jeErrorLog_Add( JE_ERR_MEMORY_RESOURCE, NULL ); 93 return( NULL );MoveAction.java https://jedit.svn.sourceforge.net/svnroot/jedit | Java | 273 lines
38import ise.plugin.svn.gui.CopyResultsPanel; 39import ise.plugin.svn.gui.ErrorPanel; 40import ise.plugin.svn.io.ConsolePrintStream; 117 private int where2where; 118 private String errorMessage = null; 119 188 errorMessage = e.getMessage(); 189 data.getOut().printError( errorMessage ); 190 e.printStackTrace(); 201 if ( cancelled ) { 202 data.getOut().printError( "Stopped 'Move' action." ); 203 data.getOut().close(); 214 if ( errorMessage != null ) { 215 JPanel error_panel = new ErrorPanel( errorMessage ); 216 panel.addTab( jEdit.getProperty( "ips.Move_Error", "Move Error" ), error_panel );rep.scrbl git://github.com/gmarceau/PLT.git | Racket | 498 lines
25 26Resets any error highlighting in this editor. 27 34 35Resets any error highlighting in this editor. 36 123 124 Do not print to @racket[current-output-port] or @racket[current-error-port] 125 during the dynamic extent of the thunk passed to @racket[run-on-user-thread] becuase 125 during the dynamic extent of the thunk passed to @racket[run-on-user-thread] becuase 126 this can deadlock. IO is still, in general, fine, but the @racket[current-error-port] 127 and @racket[current-output-port] are set to the user's ports that print 131 132@defmethod[(get-error-range) 133 (or/c false/c (list/c (is-a?/c text:basic%) number? number?))]{nsIControllerCommandTable.h https://hg01.codeplex.com/kmbrasil | C Header | 0 lines
151#define NS_FORWARD_SAFE_NSICONTROLLERCOMMANDTABLE(_to) \ 152 NS_IMETHOD MakeImmutable(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->MakeImmutable(); } \ 153 NS_IMETHOD RegisterCommand(const char *aCommandName, nsIControllerCommand *aCommand) { return !_to ? NS_ERROR_NULL_POINTER : _to->RegisterCommand(aCommandName, aCommand); } \ 153 NS_IMETHOD RegisterCommand(const char *aCommandName, nsIControllerCommand *aCommand) { return !_to ? NS_ERROR_NULL_POINTER : _to->RegisterCommand(aCommandName, aCommand); } \ 154 NS_IMETHOD UnregisterCommand(const char *aCommandName, nsIControllerCommand *aCommand) { return !_to ? NS_ERROR_NULL_POINTER : _to->UnregisterCommand(aCommandName, aCommand); } \ 155 NS_IMETHOD FindCommandHandler(const char *aCommandName, nsIControllerCommand **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->FindCommandHandler(aCommandName, _retval); } \ 155 NS_IMETHOD FindCommandHandler(const char *aCommandName, nsIControllerCommand **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->FindCommandHandler(aCommandName, _retval); } \ 156 NS_IMETHOD IsCommandEnabled(const char *aCommandName, nsISupports *aCommandRefCon, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsCommandEnabled(aCommandName, aCommandRefCon, _retval); } \ 157 NS_IMETHOD UpdateCommandState(const char *aCommandName, nsISupports *aCommandRefCon) { return !_to ? NS_ERROR_NULL_POINTER : _to->UpdateCommandState(aCommandName, aCommandRefCon); } \ 157 NS_IMETHOD UpdateCommandState(const char *aCommandName, nsISupports *aCommandRefCon) { return !_to ? NS_ERROR_NULL_POINTER : _to->UpdateCommandState(aCommandName, aCommandRefCon); } \ 158 NS_IMETHOD SupportsCommand(const char *aCommandName, nsISupports *aCommandRefCon, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->SupportsCommand(aCommandName, aCommandRefCon, _retval); } \ 159 NS_IMETHOD DoCommand(const char *aCommandName, nsISupports *aCommandRefCon) { return !_to ? NS_ERROR_NULL_POINTER : _to->DoCommand(aCommandName, aCommandRefCon); } \ 159 NS_IMETHOD DoCommand(const char *aCommandName, nsISupports *aCommandRefCon) { return !_to ? NS_ERROR_NULL_POINTER : _to->DoCommand(aCommandName, aCommandRefCon); } \ 160 NS_IMETHOD DoCommandParams(const char *aCommandName, nsICommandParams *aParam, nsISupports *aCommandRefCon) { return !_to ? NS_ERROR_NULL_POINTER : _to->DoCommandParams(aCommandName, aParam, aCommandRefCon); } \ 161 NS_IMETHOD GetCommandState(const char *aCommandName, nsICommandParams *aParam, nsISupports *aCommandRefCon) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCommandState(aCommandName, aParam, aCommandRefCon); }main.cpp git://github.com/rhomobile/rhodes.git | C++ | 408 lines
135// This option was never actually used -- dwa 9/22/97 136// cerr<<"\t[-i] : ignore leak errors;"<<endl; 137 cerr<<"\t[-q] : quiet mode;"<<endl;pop3-unit.rkt git://github.com/smorin/f4f.arc.git | Racket | 391 lines
51 52;; -- signals an error otherwise. 53 55 (unless (eq? (communicator-state communicator) 'transaction) 56 ((signal-error make-not-ready-for-transaction error-message) 57 communicator))) 113 [(-err? status) 114 ((signal-error make-username-rejected 115 "username was rejected"))])))) 148 [(-err? status) 149 ((signal-error make-illegal-message-number 150 "not given message ~a" message) 205 [(-err? status) 206 ((signal-error make-cannot-delete-message 207 "no message numbered ~a available to be deleted" message)nsIDOMXULMultSelectCntrlEl.h https://hg01.codeplex.com/kmbrasil | C Header | 0 lines
118#define NS_FORWARD_SAFE_NSIDOMXULMULTISELECTCONTROLELEMENT(_to) \ 119 NS_IMETHOD GetSelType(nsAString & aSelType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelType(aSelType); } \ 120 NS_IMETHOD SetSelType(const nsAString & aSelType) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSelType(aSelType); } \ 120 NS_IMETHOD SetSelType(const nsAString & aSelType) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSelType(aSelType); } \ 121 NS_IMETHOD GetCurrentItem(nsIDOMXULSelectControlItemElement * *aCurrentItem) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCurrentItem(aCurrentItem); } \ 122 NS_IMETHOD SetCurrentItem(nsIDOMXULSelectControlItemElement * aCurrentItem) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCurrentItem(aCurrentItem); } \ 122 NS_IMETHOD SetCurrentItem(nsIDOMXULSelectControlItemElement * aCurrentItem) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCurrentItem(aCurrentItem); } \ 123 NS_IMETHOD GetCurrentIndex(PRInt32 *aCurrentIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCurrentIndex(aCurrentIndex); } \ 124 NS_IMETHOD SetCurrentIndex(PRInt32 aCurrentIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCurrentIndex(aCurrentIndex); } \ 124 NS_IMETHOD SetCurrentIndex(PRInt32 aCurrentIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCurrentIndex(aCurrentIndex); } \ 125 NS_IMETHOD GetSelectedItems(nsIDOMNodeList * *aSelectedItems) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelectedItems(aSelectedItems); } \ 126 NS_IMETHOD AddItemToSelection(nsIDOMXULSelectControlItemElement *item) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddItemToSelection(item); } \ 126 NS_IMETHOD AddItemToSelection(nsIDOMXULSelectControlItemElement *item) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddItemToSelection(item); } \ 127 NS_IMETHOD RemoveItemFromSelection(nsIDOMXULSelectControlItemElement *item) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveItemFromSelection(item); } \ 128 NS_IMETHOD ToggleItemSelection(nsIDOMXULSelectControlItemElement *item) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToggleItemSelection(item); } \MethodTable.php http://aerial-cms.googlecode.com/svn/trunk/ | PHP | 554 lines
89 { 90 trigger_error("The MethodTable class could not find {" . 91 $sourcePath . "}", 91 $sourcePath . "}", 92 E_USER_ERROR); 93 }configuration.jsp git://github.com/liferay/liferay-portal.git | JavaServer Pages | 272 lines
103 104 <liferay-ui:error key="emailFromAddress" message="please-enter-a-valid-email-address" /> 105 <liferay-ui:error key="emailFromName" message="please-enter-a-valid-name" /> 105 <liferay-ui:error key="emailFromName" message="please-enter-a-valid-name" /> 106 <liferay-ui:error key="emailArticleAddedBody" message="please-enter-a-valid-body" /> 107 <liferay-ui:error key="emailArticleAddedSubject" message="please-enter-a-valid-subject" /> 107 <liferay-ui:error key="emailArticleAddedSubject" message="please-enter-a-valid-subject" /> 108 <liferay-ui:error key="emailArticleApprovalDeniedBody" message="please-enter-a-valid-body" /> 109 <liferay-ui:error key="emailArticleApprovalDeniedSubject" message="please-enter-a-valid-subject" /> 109 <liferay-ui:error key="emailArticleApprovalDeniedSubject" message="please-enter-a-valid-subject" /> 110 <liferay-ui:error key="emailArticleApprovalGrantedBody" message="please-enter-a-valid-body" /> 111 <liferay-ui:error key="emailArticleApprovalGrantedSubject" message="please-enter-a-valid-subject" /> 111 <liferay-ui:error key="emailArticleApprovalGrantedSubject" message="please-enter-a-valid-subject" /> 112 <liferay-ui:error key="emailArticleApprovalRequestedBody" message="please-enter-a-valid-body" /> 113 <liferay-ui:error key="emailArticleApprovalRequestedSubject" message="please-enter-a-valid-subject" />DocumentManager.cs https://hg01.codeplex.com/pytools | C# | 360 lines
106 /// <param name="closeFlag">Decides how to close the document</param> 107 /// <returns>S_OK if successful, otherwise an error is returned</returns> 108 public virtual int Close(__FRAMECLOSE closeFlag) 129 int fOpen; 130 ErrorHandler.ThrowOnFailure(shell.IsDocumentOpen(this.Node.ProjectMgr, this.Node.ID, this.Node.Url, ref logicalView, grfIDO, out pHierOpen, itemIdOpen, out windowFrame, out fOpen)); 131 156 int cancelled; 157 ErrorHandler.ThrowOnFailure(persistDocData.SaveDocData(VSSAVEFLAGS.VSSAVE_SilentSave, out name, out cancelled)); 158 } 202 int isDocDataDirty; 203 ErrorHandler.ThrowOnFailure(persistDocData.IsDocDataDirty(out isDocDataDirty)); 204 isDirty = (isDocDataDirty != 0); 212 object pvar; 213 ErrorHandler.ThrowOnFailure(this.node.GetProperty(this.node.ID, (int)__VSHPROPID.VSHPROPID_Caption, out pvar)); 214resourcebundle_class.c git://github.com/php/php-src.git | C | 394 lines
185 } else { 186 intl_errors_set(INTL_DATA_ERROR_P(rb), U_ILLEGAL_ARGUMENT_ERROR, 187 "resourcebundle_get: index should be integer or string", 0); 190 191 intl_error_set_code( NULL, INTL_DATA_ERROR_CODE(rb) ); 192 if (U_FAILURE(INTL_DATA_ERROR_CODE(rb))) { 202 203 if (!fallback && (INTL_DATA_ERROR_CODE(rb) == U_USING_FALLBACK_WARNING || INTL_DATA_ERROR_CODE(rb) == U_USING_DEFAULT_WARNING)) { 204 UErrorCode icuerror; 255 if (rb->me == NULL) { 256 intl_errors_set(&rb->error, U_ILLEGAL_ARGUMENT_ERROR, 257 "Found unconstructed ResourceBundle", 0); 296 UEnumeration *icuenum; 297 UErrorCode icuerror = U_ZERO_ERROR; 298graph.cc https://opensched.svn.sourceforge.net/svnroot/opensched | C++ | 437 lines
74 if ( f == NULL ) 75 Error("Cannot open file [%s]",filename); 76 388 if( f==NULL ) 389 Error("Cannot open file [%s]",filename); 390wxHtmlEasyPrinting.erl git://github.com/erlang/otp.git | Erlang | 221 lines
37%% @hidden 38parent_class(_Class) -> erlang:error({badtype, ?MODULE}). 39 54 ({parentWindow, #wx_ref{type=ParentWindowT,ref=ParentWindowRef}}, Acc) -> ?CLASS(ParentWindowT,wxWindow),[<<2:32/?UI,ParentWindowRef:32/?UI>>|Acc]; 55 (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, 56 BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)), 102 MOpts = fun({basepath, Basepath}, Acc) -> Basepath_UC = unicode:characters_to_binary([Basepath,0]),[<<1:32/?UI,(byte_size(Basepath_UC)):32/?UI,(Basepath_UC)/binary, 0:(((8- ((0+byte_size(Basepath_UC)) band 16#7)) band 16#7))/unit:8>>|Acc]; 103 (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, 104 BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)), 134 MOpts = fun({basepath, Basepath}, Acc) -> Basepath_UC = unicode:characters_to_binary([Basepath,0]),[<<1:32/?UI,(byte_size(Basepath_UC)):32/?UI,(Basepath_UC)/binary, 0:(((8- ((0+byte_size(Basepath_UC)) band 16#7)) band 16#7))/unit:8>>|Acc]; 135 (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, 136 BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)), 166 (<< <<C:32/?I>> || C <- Sizes>>)/binary, 0:(((0+length(Sizes)) rem 2)*32)>>|Acc]; 167 (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, 168 BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),form_contact_edit.tpl.html http://openbiz-cubi.googlecode.com/svn/trunk/ | HTML | 365 lines
249 {if $errors.$itemName} 250 <span class="input_error_msg" style="width:240px;">{$errors.$itemName}</span> 251 {elseif $item.description} 276 {if $errors.$itemName} 277 <span class="input_error_msg" style="width:240px;">{$errors.$itemName}</span> 278 {elseif $item.description} 325 {if $errors.$itemName} 326 <span class="input_error_msg" style="width:240px;">{$errors.$itemName}</span> 327 {elseif $item.description}ConsoleIOMain.cpp git://github.com/rstudio/rstudio.git | C++ | 475 lines
54 if (label.empty()) 55 std::cerr << "Error " << err << std::endl; 56 else 56 else 57 std::cerr << "Error calling " << label << ": " << err << std::endl; 58} 378 { 379 print_error("CreateFile"); 380 return 1; 409 si.hStdOutput = ::GetStdHandle(STD_OUTPUT_HANDLE); 410 si.hStdError = ::GetStdHandle(STD_ERROR_HANDLE); 411 431 { 432 print_error("CreateEvent"); 433 return 1;BaseDialog.cpp http://grepwin.googlecode.com/svn/trunk/ | C++ | 403 lines
50 { 51 // handle the error and possibly exit 52 break;fckeditor.js http://fckeditor-for-wordpress.googlecode.com/svn/trunk/ | JavaScript | 214 lines
45 // Events 46 this.OnError = null ; // function( source, errorNumber, errorDescription ) 47} 159 160FCKeditor.prototype._ThrowError = function( errorNumber, errorDescription ) 161{ 162 this.ErrorNumber = errorNumber ; 163 this.ErrorDescription = errorDescription ; 164 167 document.write( '<div style="COLOR: #ff0000">' ) ; 168 document.write( '[ FCKeditor Error ' + this.ErrorNumber + ': ' + this.ErrorDescription + ' ]' ) ; 169 document.write( '</div>' ) ; 172 if ( typeof( this.OnError ) == 'function' ) 173 this.OnError( this, errorNumber, errorDescription ) ; 174}protocol-xigetselectedevents.c git://anongit.freedesktop.org/git/xorg/xserver.git/ | C | 0 lines
134 135static void request_XIGetSelectedEvents(xXIGetSelectedEventsReq* req, int error) 136{ 143 rc = ProcXIGetSelectedEvents(&client); 144 assert(rc == error); 145 150 rc = SProcXIGetSelectedEvents(&client); 151 assert(rc == error); 152}test_connection.py https://bitbucket.org/pypy/pypy/ | Python | 200 lines
36 except multiprocessing.BufferTooShort as e: 37 assert isinstance(e, multiprocessing.ProcessError) 38 assert e.args == ("data",) 62 assert rhandle.poll() == False 63 raises(IOError, whandle.poll) 64 130 client.connect(('127.0.0.1', serverSocket.getsockname()[1])) 131 except socket.error as e: 132 assert e.args[0] in (errno.EINPROGRESS, errno.EWOULDBLOCK) 157 w_connections = self.w_connections 158 except AttributeError: 159 return 170 171 raises(IOError, _multiprocessing.Connection, -1) 172 raises(IOError, _multiprocessing.Connection, -15)JSONTokenizer.as git://github.com/mintdigital/hemlock.git | ActionScript | 547 lines
121 } else { 122 parseError( "Expecting 'true' but found " + possibleTrue ); 123 } 134 } else { 135 parseError( "Expecting 'false' but found " + possibleFalse ); 136 } 148 } else { 149 parseError( "Expecting 'null' but found " + possibleNull ); 150 } 167 // anything we expected 168 parseError( "Unexpected " + ch + " encountered" ); 169 } 180 * @return the JSONToken with the string value if a string could 181 * be read. Throws an error otherwise. 182 */yage.system.log.html https://bitbucket.org/JoeCoder/yage/ | HTML | 440 lines
134<br> 135<span class="currsymbol">ERROR</span> 136<script type="text/javascript">explorer.outline.addDecl('ERROR');</script> 237<br>static bool 238<span class="currsymbol">error</span> 239<script type="text/javascript">explorer.outline.addDecl('error');</script>helpers.js git://github.com/dyoo/mzscheme-vm.git | JavaScript | 587 lines
62 // Iterates through an array and applies f to each element using CPS 63 // If an error is thrown, it catches the error and calls f_error on it 64 var forEachK = function(a, f, f_error, k) { 86 // if the console exists, or as alerts otherwise. 87 var reportError = function(e) { 88 var reporter; 168 } 169 errorFormatStr = errorFormatStrBuffer.join(' '); 170 } 549 helpers.forEachK = forEachK; 550 helpers.reportError = reportError; 551 helpers.raise = raise; 553 helpers.procArityContains = procArityContains; 554 helpers.throwCheckError = throwCheckError; 555 helpers.isList = isList;arguments.py https://code.google.com/p/phantomjs/ | Python | 0 lines
57 'diskCache': False, 58 'ignoreSslErrors': False, 59 'loadImages': True, 111 ) 112 program.add_argument('--ignore-ssl-errors', default=defaults['ignoreSslErrors'], action=YesOrNoAction, 113 choices=['yes', 'no'], 113 choices=['yes', 'no'], 114 help='Ignore SSL errors (default: %s)' % yesOrNo(defaults['ignoreSslErrors']) 115 ) 232 'diskCache': { 'mapping': 'disk_cache', 'default': defaults['diskCache'] }, 233 'ignoreSslErrors': { 'mapping': 'ignore_ssl_errors', 'default': defaults['ignoreSslErrors'] }, 234 'loadImages': { 'mapping': 'load_images', 'default': defaults['loadImages'] },EditCompanyAction.java git://github.com/liferay/liferay-portal.git | Java | 288 lines
30import com.liferay.portal.WebsiteURLException; 31import com.liferay.portal.kernel.servlet.SessionErrors; 32import com.liferay.portal.kernel.util.Constants; 80 81 if (!SessionErrors.isEmpty(actionRequest)) { 82 setForward( 94 if (e instanceof PrincipalException) { 95 SessionErrors.add(actionRequest, e.getClass()); 96 96 97 setForward(actionRequest, "portlet.portal_settings.error"); 98 } 116 117 SessionErrors.add( 118 actionRequest,d_sprite.c https://quake.svn.sourceforge.net/svnroot/quake | C | 419 lines
125 else if (snext < 8) 126 snext = 8; // prevent round-off error on <0 127 // steps from 134 else if (tnext < 8) 135 tnext = 8; // guard against round-off error on 136 // <0 steps 153 else if (snext < 8) 154 snext = 8; // prevent round-off error on <0 steps 155 // from from causing overstepping & 161 else if (tnext < 8) 162 tnext = 8; // guard against round-off error on 163 // <0 stepscontent.feed.php http://miacms.googlecode.com/svn/trunk/ | PHP | 380 lines
188 { 189 // error: all values 0, so we do not display anything 190 }base.py https://bitbucket.org/mirror/django/ | Python | 231 lines
35 dot = middleware_path.rindex('.') 36 except ValueError: 37 raise exceptions.ImproperlyConfigured, '%s isn\'t a middleware module' % middleware_path 40 mod = import_module(mw_module) 41 except ImportError, e: 42 raise exceptions.ImproperlyConfigured, 'Error importing middleware %s: "%s"' % (mw_module, e) 44 mw_class = getattr(mod, mw_classname) 45 except AttributeError: 46 raise exceptions.ImproperlyConfigured, 'Middleware module "%s" does not define a "%s" class' % (mw_module, mw_classname) 70 request = self.request_class(request_env) 71 except UnicodeDecodeError: 72 response = http.HttpResponseBadRequest() 126 127 # Complain if the view returned None (a common error). 128 if response is None:export_import.jsp git://github.com/liferay/liferay-portal.git | JavaServer Pages | 248 lines
88 <liferay-ui:error exception="<%= LARTypeException.class %>" message="please-import-a-lar-file-of-the-correct-type" /> 89 <liferay-ui:error exception="<%= LayoutImportException.class %>" message="an-unexpected-error-occurred-while-importing-your-file" /> 90 93 <% 94 LocaleException le = (LocaleException)errorException; 95 %> 99 100 <liferay-ui:error exception="<%= NoSuchLayoutException.class %>" message="an-error-occurred-because-the-live-group-does-not-have-the-current-page" /> 101 <liferay-ui:error exception="<%= PortletIdException.class %>" message="please-import-a-lar-file-for-the-current-portlet" /> 102 103 <liferay-ui:error exception="<%= PortletDataException.class %>"> 104 134 <% 135 String errorMessageKey = StringPool.BLANK; 136gen_aircraft.ml git://github.com/pchickey/paparazzi-linux-release.git | OCaml | 280 lines
49 let other_name = Hashtbl.find ids id in 50 failwith (sprintf "Error: A/C Id '%s' duplicated in %s (%s and %s)" id conf_xml name other_name) 51 end; 53 let other_id = Hashtbl.find names name in 54 failwith (sprintf "Error: A/C name '%s' duplicated in %s (ids %s and %s)" name conf_xml id other_id) 55 end;pinet.h git://github.com/tito/Movid.git | C Header | 400 lines
45// 46// BSD-compatible socket error codes for Win32 47// 278 279 void error(ippeerinfo& peer, int code, const char* defmsg); 280 bool dopoll(int* i, int timeout); 331 332 void error(int code, const char* msg); 333 void open();WebsiteServiceHttp.java git://github.com/liferay/liferay-portal.git | Java | 273 lines
90 91 _log.error(systemException, systemException); 92 126 127 _log.error(systemException, systemException); 128 166 167 _log.error(systemException, systemException); 168 208 209 _log.error(systemException, systemException); 210 249 250 _log.error(systemException, systemException); 251gib_buffer.c https://quake.svn.sourceforge.net/svnroot/quake | C | 339 lines
170 "-----------------\n" 171 "|GIB Parse Error|\n" 172 "-----------------\n" 172 "-----------------\n" 173 "Parse error while adding text to GIB buffer.\n" 174 "Line %u: %s\n", 174 "Line %u: %s\n", 175 GIB_Buffer_Get_Line_Num (str, GIB_Parse_ErrorPos ()), 176 GIB_Parse_ErrorMsg () 202 "-----------------\n" 203 "|GIB Parse Error|\n" 204 "-----------------\n" 204 "-----------------\n" 205 "Parse error while inserting text into GIB buffer.\n" 206 "Line %u: %s\n",dateformat.py https://bitbucket.org/mirror/django/ | Python | 258 lines
49 "Swatch Internet time" 50 raise NotImplementedError 51MainForm.vb https://cfx.svn.codeplex.com/svn | Visual Basic | 321 lines
131 Catch ex As Exception 132 MessageBox.Show("Error registering file type association:" & vbNewLine & ex.Message) 133 End Try 177 Catch ex As Exception 178 MessageBox.Show("Error unregistering file type association:" & vbNewLine & ex.Message) 179 End Tryerlang_interface.c git://github.com/luisbebop/erlang_interface.git | C | 573 lines
286 287void error(const char *msg) 288{ 304 sockfd = socket(AF_INET, SOCK_STREAM, 0); 305 if (sockfd < 0) error("ERROR opening socket"); 306 server = gethostbyname(argv[1]); 315 if (connect(sockfd,(struct sockaddr *) &serv_addr,sizeof(serv_addr)) < 0) 316 error("ERROR connecting"); 317 326 if (n < 0) 327 error("ERROR writing to socket"); 328 return n; 335 if (n < 0) 336 error("ERROR reading from socket"); 337 return n;admin.css http://creative-portal.googlecode.com/svn/trunk/ | CSS | 758 lines
632 633div.quote blockquote.error,#middle_column_r div.info span { 634 color: #cb0000AtomValueUtils.cs https://hg01.codeplex.com/odata | C# | 299 lines
109 default: 110 throw new ODataException(Strings.General_InternalError(InternalErrorCodes.ODataAtomConvert_ToString)); 111 } 283 // and the metadata will actually talk about string and byte[] as well. Astoria will perform the conversion if necessary. 284 throw new ODataException(Strings.General_InternalError(InternalErrorCodes.AtomValueUtils_ConvertStringToPrimitive)); 285 }pCreatePixmap.m git://anongit.freedesktop.org/git/xorg/test/xts.git/ | Objective C | 0 lines
172 default: 173 Log_Err("INTERNAL ERROR: test_type %d not one of GOOD(%d), BAD_LENGTH(%d), TOO_LONG(%d) or JUST_TOO_LONG(%d)\n", 174 test_type, GOOD, BAD_LENGTH, TOO_LONG, JUST_TOO_LONG); 183When a client sends a valid xname protocol request to the X server, 184then the X server does not send back an error, event or reply to the client. 185>>STRATEGY 188Send a valid xname protocol request to the X server. 189Verify that the X server does not send back an error, event or reply. 190Open a connection to the X server using reversed byte sex. 191Send a valid xname protocol request to the X server. 192Verify that the X server does not send back an error, event or reply. 193>>CODE 203contain the request, 204then the X server sends back a BadLength error to the client. 205>>STRATEGYclass.dbcachedquery.php https://code.google.com/p/evedev-kb/ | PHP | 469 lines
119 { 120 DBDebug::recordError("Database error: ".self::$dbconn->id()->error); 121 DBDebug::recordError("SQL: ".$this->sql); 122 } 123 throw new Exception( "SQL error (".self::$dbconn->id()->error ); 124 } 244 { 245 trigger_error('No suitable handler for query found. "'.$ta[0].'"',E_USER_NOTICE); 246 return false; 344 { 345 DBDebug::recordError("Database error: ".self::$dbconn->id()->error); 346 DBDebug::recordError("SQL: ".$this->sql); 347 } 348 throw new Exception( "SQL Execution error: " . self::$dbconn->id()->error . " Query: " . $this->sql ); 349 }c++defs.h git://github.com/plasmasim/sceptic3D.git | C Header | 274 lines
133 except that the C function rpl_func may have a slightly different 134 declaration. A cast is used to silence the "invalid conversion" error 135 that would otherwise occur. */ 176 except that the C function func may have a slightly different declaration. 177 A cast is used to silence the "invalid conversion" error that would 178 otherwise occur. */ 196 are used to silence the "cannot find a match" and "invalid conversion" 197 errors that would otherwise occur. */ 198#if defined __cplusplus && defined GNULIB_NAMESPACERendererImpl.java git://github.com/liferay/liferay-portal.git | Java | 425 lines
172 catch (Exception e) { 173 _log.error(e, e); 174install.php git://github.com/moodle/moodle.git | PHP | 326 lines
61 if ($syscontext->id != SYSCONTEXTID) { 62 throw new moodle_exception('generalexceptionmessage', 'error', '', 'Unexpected new system context id!'); 63 } 67 if ($DB->record_exists('course', array())) { 68 throw new moodle_exception('generalexceptionmessage', 'error', '', 'Can not create frontpage course, courses already exist.'); 69 } 94 if ($newsite->id != $SITE->id) { 95 throw new moodle_exception('generalexceptionmessage', 'error', '', 'Unexpected new site course id!'); 96 } 104 if ($DB->record_exists('course_categories', array())) { 105 throw new moodle_exception('generalexceptionmessage', 'error', '', 'Can not create default course category, categories already exist.'); 106 } 199 if ($DB->record_exists('user', array())) { 200 throw new moodle_exception('generalexceptionmessage', 'error', '', 'Can not create default users, users already exist.'); 201 }views.py git://github.com/toastdriven/django-tastypie.git | Python | 260 lines
38 39 def test_get_test_client_error(self): 40 # The test server should re-raise exceptions to make debugging easier. 71 72 def test_api_field_error(self): 73 # When a field error is encountered, we should be presenting the message 81 { 82 "error": "Could not find the provided users object via resource URI \'/api/v1/users/9001/\'." 83 } 85 86 def test_invalid_json_error(self): 87 # When the given data is not valid JSON a readable error message should be returned. 94 { 95 "error": "Request is not valid JSON." 96 }primitive.py https://graphite.svn.sourceforge.net/svnroot/graphite | Python | 461 lines
159 "draw self into the given SPING canvas (ignoring Z)" 160 raise NotImplementedError, "draw" 161 337 "Draws the symbol on canvas." 338 raise NotImplementedError, 'draw' 339subtrans.c git://github.com/postgres/postgres.git | C | 396 lines
170 if (!TransactionIdPrecedes(parentXid, previousXid)) 171 elog(ERROR, "pg_subtrans contains invalid entry: xid %u points to parent xid %u", 172 previousXid, parentXid);TestObjectMain_unit.pas http://gedemin.googlecode.com/svn/trunk/ | Pascal | 410 lines
97 begin 98 MessageBox(Self.Handle, PChar(E.Message), '??????', MB_OK or MB_ICONERROR); 99 FreeAndNil(Result); 237 LocParam: Variant; 238 ErrorMessage: String; 239begin 267 ErrorMessage := LocParam; 268 MessageBox(Self.Handle, @ErrorMessage[1], '??????', MB_OK or MB_ICONERROR); 269 endleexinc.hrl git://github.com/rvirding/leex.git | Erlang | 280 lines
23%% string(InChars, Line, TokenChars, Tokens) -> 24%% {ok,Tokens,Line} | {error,ErrorInfo,Line}. 25%% Note the line number going into yystate, L0, is line of token 106 Error = {Tline,?MODULE,{illegal,yypre(Tcs, Tlen1+1)}}, 107 {done,{error,Error,L1},Ics1}; 108 {A1,Alen1,_Tlen1,_Ics1,L1,_S1} -> %Use last accept match 207 208%%skip_tokens(InChars, Line, Error) -> {done,{error,Error,Line},Ics}. 209%% Skip tokens until an end token, junk everything and return the error. 228 {reject,_Alen1,_Tlen1,eof,L1,_S1} -> 229 {done,{error,Error,L1},eof}; 230 {reject,_Alen1,Tlen1,_Ics1,L1,_S1} -> 246skip_cont(Rest, Line, {end_token,_T}, Error) -> 247 {done,{error,Error,Line},Rest}; 248skip_cont(Rest, Line, {end_token,_T,Push}, Error) ->sound.cpp git://github.com/matricks/teeworlds.git | C++ | 544 lines
216 { 217 dbg_msg("gfx", "unable to init SDL audio: %s", SDL_GetError()); 218 return -1; 233 { 234 dbg_msg("client/sound", "unable to open audio: %s", SDL_GetError()); 235 return -1; 339 int SampleID = -1; 340 char aError[100]; 341 WavpackContext *pContext; 369 370 pContext = WavpackOpenFileInput(ReadData, aError); 371 if (pContext) 426 { 427 dbg_msg("sound/wv", "failed to open %s: %s", pFilename, aError); 428 }WordCompletionSessionFactoryService.cs git://github.com/jaredpar/VsVim.git | C# | 284 lines
232 // It's possible for the Start method to dismiss the ICompletionSession. This happens when there 233 // is an initialization error such as being unable to find a CompletionSet. If this occurs we 234 // just return the equivalent IWordCompletionSession (one which is dismissed)iomanager_kqueue.cpp git://github.com/mozy/mordor.git | C++ | 371 lines
31 close(m_kqfd); 32 MORDOR_THROW_EXCEPTION_FROM_LAST_ERROR_API("pipe"); 33 } 38 rc = kevent(m_kqfd, &event, 1, NULL, 0, NULL); 39 MORDOR_LOG_LEVEL(g_log, rc ? Log::ERROR : Log::VERBOSE) << this << " kevent(" 40 << m_kqfd << ", (" << m_tickleFds[0] << ", EVFILT_READ, EV_ADD)): " << rc 179 << m_kqfd << ", (" << fd << ", " << eventsKey << ", EV_DELETE)): " << rc 180 << " (" << lastError() << ")"; 181 if (rc) 181 if (rc) 182 MORDOR_THROW_EXCEPTION_FROM_LAST_ERROR_API("kevent"); 183 if (dg) 314#ifdef OSX 315 int *err = boost::get_error_info<errinfo_nativeerror>(ex); 316 if (err != NULL && *err == EINPROGRESS) {tramp-mips.c git://github.com/mono/mono.git | C | 452 lines
100 } 101 g_print("error: bad patch at 0x%08x\n", code); 102 g_assert_not_reached ();mel-b-ccl.el git://github.com/wanderlust/flim.git | Emacs Lisp | 481 lines
260 (write-repeat r4)) 261 ;; error: BB=B 262 ((write (r4 & 255)) 472 (base64-ccl-decode-string string) 473 (error "Invalid encoded-text %s" string))) 474team.inc http://leaguerunner.googlecode.com/svn/trunk/ | PHP | 554 lines
141 if( ! $this->create() ) { 142 error_exit("Couldn't create team record"); 143 } 154 if(count($fields_data) != count($fields)) { 155 error_exit("Internal error: Incorrect number of fields set"); 156 } 167 # Affecting zero rows is possible but usually unwanted 168 error_exit("Internal error: Strange number of rows affected"); 169 } 251 if ( $this->league_id != 1 ) { 252 error_exit("Cannot delete team: Team must be in the 'Inactive Teams' league to be deleted"); 253 } 259 if( $sth->fetchColumn() > 0) { 260 error_exit("Cannot delete team: Team must not have any games on the schedule"); 261 }ConfigFile.pm git://github.com/matricks/teeworlds.git | Perl | 498 lines
373 print CONFIG_FILEHANDLE 374 "# There are " . $self->ErrorCount() . " errors in this file. Search for ERROR to find them.\n\n"; 375 }; 388 389 # Use the GNU error format, which should make it easier to handle errors when Natural Docs is part of a build process. 390 # See http://www.gnu.org/prep/standards_15.html 412 { 413 my $errorLine = shift @errors; 414 my $errorMessage = shift @errors; 415 416 print CONFIG_FILEHANDLE "# ERROR: " . $errorMessage . "\n"; 417 417 418 # Use the GNU error format, which should make it easier to handle errors when Natural Docs is part of a build process. 419 # See http://www.gnu.org/prep/standards_15.htmlRealmTableImpl.java http://mobicents.googlecode.com/svn/trunk/ | Java | 410 lines
204 catch (Exception e) { 205 logger.error("Unable to read Destination-Realm AVP to match realm to request", e); 206 }nsXPCOM.h https://hg01.codeplex.com/kmbrasil | C Header | 0 lines
115 * @return NS_OK for success; 116 * NS_ERROR_NOT_INITIALIZED if static globals were not initialized, 117 * which can happen if XPCOM is reloaded, but did not completly 117 * which can happen if XPCOM is reloaded, but did not completly 118 * shutdown. Other error codes indicate a failure during 119 * initialisation. 172 * @return NS_OK for success; 173 * NS_ERROR_NOT_INITIALIZED if static globals were not initialized, 174 * which can happen if XPCOM is reloaded, but did not completly 174 * which can happen if XPCOM is reloaded, but did not completly 175 * shutdown. Other error codes indicate a failure during 176 * initialisation. 262 * location. Relative paths will be treated as an 263 * error (NS_ERROR_FILE_UNRECOGNIZED_PATH). 264 * |NS_NewNativeLocalFile|'s path must be in thecSQLUtils.pas https://fundementals.svn.sourceforge.net/svnroot/fundementals | Pascal | 462 lines
211{ } 212{ SQL error } 213{ } 214type 215 ESqlError = class(Exception); 216adi.d https://bitbucket.org/prokhin_alexey/ldc2/ | D | 0 lines
65{ 66 bool hadErrors = false; 67 if (a.length > 1) 91 stridelo = 1; 92 hadErrors=true; 93 } 102 if (lo > hi) { 103 hadErrors = true; 104 } 107 if (stridehi > 6) { 108 hadErrors = true; 109 stridehi = 6; 134 } 135 if (hadErrors) 136 throw new Exception("invalid UTF-8 sequence",__FILE__,__LINE__);RunwayWidget.as http://simile-widgets.googlecode.com/svn/ | ActionScript | 322 lines
167 ExternalInterface.addCallback("getSlideCount", function():int { return _runway.slideCount; }); 168 } catch (e:Error) { 169 trace("Error adding callbacks");runtests.py https://bitbucket.org/mirror/django/ | Python | 202 lines
59 def runTest(self): 60 from django.core.management.validation import get_validation_errors 61 from django.db.models.loading import load_app 68 69 # Make sure sys.stdout is not a tty so that we get errors without 70 # coloring attached (makes matching the results easier). We restore 74 sys.stdout = s 75 count = get_validation_errors(s, module) 76 sys.stdout = orig_stdout 77 s.seek(0) 78 error_log = s.read() 79 actual = error_log.split('\n') 79 actual = error_log.split('\n') 80 expected = module.model_errors.split('\n') 81appengine_config.py https://code.google.com/p/pageforest/ | Python | 228 lines
64# the web UI when an exception occurs. (Tracebacks are always logged 65# at the ERROR level as well.) 66PollsQuestionServiceHttp.java git://github.com/liferay/liferay-portal.git | Java | 235 lines
95 catch (com.liferay.portal.kernel.exception.SystemException se) { 96 _log.error(se, se); 97 128 catch (com.liferay.portal.kernel.exception.SystemException se) { 129 _log.error(se, se); 130 165 catch (com.liferay.portal.kernel.exception.SystemException se) { 166 _log.error(se, se); 167 210 catch (com.liferay.portal.kernel.exception.SystemException se) { 211 _log.error(se, se); 212