100+ results results for 'ERROR repo:wyhaines/iowa' (408 ms)
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}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 = 0__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); } \nsICmdLineHandler.h https://hg01.codeplex.com/kmbrasil | C Header | 0 lines
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 */DeclPDA.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 }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> 214buildcfg.h https://bitbucket.org/knoss/pcmanager/ | C++ Header | 427 lines
28#ifdef _WINDOWS_ 29#error "include buildcfg.h before include all other files" 30#endifPlugin.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 aeee.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 }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);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*/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 {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);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 {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">>)). 324javaw.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()SpellCheckPlugin.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 {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']); 356XtGrabKey.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");browser.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();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 viewssites.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,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, [[]]) 129File.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 }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, butGoogleReader.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)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;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()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)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 }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;dbmechanic.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')BaseServiceRemote.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 passMembershipRequestServiceHttp.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 }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);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>HtmlHelper.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}ConcurrentBroadcastTest.java git://github.com/Atmosphere/atmosphere.git | Java | 197 lines
158 } catch (Exception e) { 159 logger.error("test failed", e); 160 e.printStackTrace();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];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) 221DataTxTests.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 }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}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;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);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 }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;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 {_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>resman.py http://migrid.googlecode.com/svn/trunk/ | Python | 299 lines
66 if not validate_status: 67 return (accepted, returnvalues.CLIENT_ERROR) 68DatabaseMysql.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;Daemon.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" />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();lilyString.py http://music21.googlecode.com/svn/trunk/ | Python | 440 lines
34 noPIL = False 35except ImportError: 36 noPIL = TrueVectorMapRenderer.java http://ametro.googlecode.com/svn/trunk/ | Java | 475 lines
183 } 184 }catch(OutOfMemoryError ex){ 185 // eat out-of-memory exceptionqfplist.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.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 cacertsurfaces.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;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.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" />kfbxclonemanager.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";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 }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 */ 262IdGopher.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;all-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>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}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); 251dateformat.py https://bitbucket.org/mirror/django/ | Python | 258 lines
49 "Swatch Internet time" 50 raise NotImplementedError 51gib_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",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'] },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: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();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; 136content.feed.php http://miacms.googlecode.com/svn/trunk/ | PHP | 380 lines
188 { 189 // error: all values 0, so we do not display anything 190 }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,gen_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;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 stepsAtomValueUtils.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 }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}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}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)RendererImpl.java git://github.com/liferay/liferay-portal.git | Java | 425 lines
172 catch (Exception e) { 173 _log.error(e, e); 174IoDynLib.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));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?))]{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 );install.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 }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' 339views.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 }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 endmel-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))) 474appengine_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); 212runtests.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') 81JSONTokenizer.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;Config.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)),README.md git://github.com/evanmiller/ChicagoBoss.git | Markdown | 254 lines
12 13WARNING: Chicago Boss does not work with Erlang R16B03 due to an error in erl_syntax 14pCreatePixmap.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_NAMESPACErlist.py https://bitbucket.org/alex_gaynor/pypy-postgresql/ | Python | 408 lines
2from pypy.annotation import model as annmodel 3from pypy.rpython.error import TyperError 4from pypy.rpython.rmodel import Repr, IntegerRepr, inputconst 204 new_allocated = ovfcheck(newsize + some) 205 except OverflowError: 206 raise MemoryErrortest_multibytecodec_support.py https://bitbucket.org/pypy/pypy/ | Python | 373 lines
105 return (ret, exc.end) 106 codecs.register_error("test.cjktest", myreplace) 107 121 codecs.register_error("test.cjktest", myreplace) 122 self.assertRaises((IndexError, OverflowError), self.encode, 123 self.unmappedunicode, 'test.cjktest') 154 return (u'TERM', 100) 155 codecs.register_error("test.cjktest", myreplace) 156 self.assertRaises(IndexError, self.encode, self.unmappedunicode, 195 196 def test_incrementalencoder_error_callback(self): 197 inv = self.unmappedunicode 208 codecs.register_error('test.incremental_error_callback', tempreplace) 209 e.errors = 'test.incremental_error_callback' 210 self.assertEqual(e.encode(inv, True), 'called')loader.php http://buddypress-media.googlecode.com/svn/bp_media/trunk/ | PHP | 547 lines
106 * 107 * @TODO Add error checking, sanitizing eg: $value = sanitize_option($option, $value), etc. At present bad 108 * user input can crash the plugin and damage the database. 158 159 title: "<?php _e("Update Error", "bp-media"); ?>", 160 text: "<?php _e("Error updating the album module's settings", "bp-media"); ?>", 245 246 title: "<?php _e("Album Module Error", "bp-media"); ?>", 247 text: "<?php _e("Error activating the album module.", "bp-media"); ?>", 295 296 title: "<?php _e("Album Module Error", "bp-media"); ?>", 297 text: "<?php _e("Error deactivating the album module.", "bp-media"); ?>",miner.pl http://pymine.googlecode.com/svn/trunk/ | Perl | 507 lines
70my %FLAGDESC = ( 71 e => '# print error-page upon HTTP error (side effect: sets exit status to 0)', 72 h => '# help mode; use also "help" command', 74 r => '# RAW output, if possible', 75 q => '# do NOT quit upon curl returning an error code', 76 v => '# verbose; -vv, -vvv = more verbose',MainForm.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 Tryadmin.css http://creative-portal.googlecode.com/svn/trunk/ | CSS | 758 lines
632 633div.quote blockquote.error,#middle_column_r div.info span { 634 color: #cb0000erlang_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;urlresolvers.py https://bitbucket.org/mirror/django/ | Python | 204 lines
75 self.current_arg += 1 76 except IndexError: 77 # The arg wasn't passed in. 110 return self.func, args, kwargs 111 except AttributeError: 112 self.func = self.get_callback() 118 return getattr(__import__(mod_name, '', '', ['']), func_name) 119 except ImportError, e: 120 raise ViewDoesNotExist, "Could not import %s. Error was: %s" % (mod_name, str(e)) 120 raise ViewDoesNotExist, "Could not import %s. Error was: %s" % (mod_name, str(e)) 121 except AttributeError, e: 122 raise ViewDoesNotExist, "Tried %s in module %s. Error was: %s" % (func_name, mod_name, str(e)) 176 return getattr(__import__(mod_name, '', '', ['']), func_name), {} 177 except (ImportError, AttributeError), e: 178 raise ViewDoesNotExist, "Tried %s. Error was: %s" % (callback, str(e))Servlet30CometSupport.java git://github.com/Atmosphere/atmosphere.git | Java | 224 lines
180 if (p == null) { 181 logger.error("Invalid state - CometListener"); 182 return; 202 @Override 203 public void onError(AsyncEvent event) { 204 logger.trace("onError(): event: {}", event.getAsyncContext().getResponse()); 206 if (p == null) { 207 logger.error("Invalid state - CometListener"); 208 return;WglContext.hpp git://github.com/LaurentGomila/SFML.git | C++ Header | 193 lines
97 /// 98 /// \return True on success, false if any error happened 99 ///registration.php http://miacms.googlecode.com/svn/trunk/ | PHP | 314 lines
85If you didn't ask for this, don't worry. You are seeing this message, not them. 86If this was an error just login with your new password and then change your password to what you would like it to be."), 87 $checkusername, $mosConfig_live_site, $rawpass); 97 if (!$database->query()) { 98 die("SQL error" . $database->stderr(true)); 99 } 143 if (!$row->bind( $_POST, 'usertype' )) { 144 echo "<script> alert('".$row->getError()."'); window.history.go(-1); </script>\n"; 145 exit(); 159 if (!$row->check()) { 160 echo "<script> alert('".$row->getError()."'); window.history.go(-1); </script>\n"; 161 exit(); 168 if (!$row->store()) { 169 echo "<script> alert('".$row->getError()."'); window.history.go(-1); </script>\n"; 170 exit();LiteralProcessor.cs https://bitbucket.org/fabiomaulo/nhibernate/ | C# | 0 lines
14 { 15 public const string ErrorCannotFetchWithIterate = "fetch may not be used with scroll() or iterate()"; 16 public const string ErrorNamedParameterDoesNotAppear = "Named parameter does not appear in Query: "; 16 public const string ErrorNamedParameterDoesNotAppear = "Named parameter does not appear in Query: "; 17 public const string ErrorCannotDetermineType = "Could not determine type of: "; 18 public const string ErrorCannotFormatLiteral = "Could not format constant value to SQL literal: "; 328 { 329 throw new QueryException(LiteralProcessor.ErrorCannotDetermineType + node.Text); 330 } 338 { 339 throw new QueryException(LiteralProcessor.ErrorCannotFormatLiteral + node.Text, e); 340 }global_settings.py https://bitbucket.org/mirror/django/ | Python | 299 lines
17 18# People who get code error notifications. 19# In the format (('Full Name', 'email@domain.com'), ('Full Name', 'anotheremail@domain.com')) 87 88# E-mail address that error messages come from. 89SERVER_EMAIL = 'root@localhost'common_fun.inc.php http://prohits.googlecode.com/svn/trunk/ | PHP | 1035 lines
19 20function fatalError($msg='', $line=0){ 21 echo "<h2>Fatal Error</h2><font size=4 color=red>$msg</font>";ProhitsMascotParser.pl http://prohits.googlecode.com/svn/trunk/ | Perl | 888 lines
187 } 188 if (defined($cgi->param('_showallfromerrortolerant'))){ 189 $showSubset = $cgi->param('_showallfromerrortolerant'); 254} else { 255 print "Error number: ", $objResFile->getLastError(), "\n"; 256 print "Error string: ", $objResFile->getLastErrorString(), "\n";ProhitsMascotParserExt.pl http://prohits.googlecode.com/svn/trunk/ | Perl | 704 lines
76 $component_name, # label of component for metabolic labelling 77 @delta_masses, # mass measurement errors for error graph 78 @exp_masses, # matched experimental mass values 155} else { 156 print "Error number: ", $$objResFile->getNumHits()->getLastError(), "\n"; 157 print "Error string: ", $$objResFile->getNumHits()->getLastErrorString(), "\n"; 283 } 284 # Add in any mod found in error tolerant search 285 my $labelString; 321 if ($objResFile->getQuantitation($objQuantFile)) { 322 # abort on fatal error. Note that isValid() remains true if there are only warnings 323 if($objQuantFile->isValid) {raw_backup_shell.php http://prohits.googlecode.com/svn/trunk/ | PHP | 620 lines
18 19error_reporting(E_ALL); 20set_time_limit(0); 59$pswd = DBPASSWORD; 60$msManager_link = mysql_connect($host, $user, $pswd, true, 2) or die("Unable to connect to mysql..." . mysql_error($msManager_link)); 61mysql_select_db(MANAGER_DB, $msManager_link) or die("Can not use '". MANAGER_DB . "' database". mysql_error($msManager_link)); 64foreach($HITS_DB as $key => $DBname){ 65 $HitDB_links[$key] = mysql_connect($host, $user, $pswd, true, 2) or die("Unable to connect to mysql..." . mysql_error($HitDB_links[$key])); 66 mysql_select_db($DBname, $HitDB_links[$key]) or die("Can not use '". PROHITS_DB . "' database". mysql_error($HitDB_links[$key])); 79 $msg = "Array \$BACKUP_SOURCE_FOLDERS not exist in conf file."; 80 fatalError($msg, __LINE__, $logfile); 81}ftp_transfer_raw.php http://prohits.googlecode.com/svn/trunk/ | PHP | 736 lines
38$msg = ''; 39$error_msg = ''; 40$frm_type = 'Bait'; 82$pswd = DBPASSWORD; 83$prohits_link = mysql_connect("$host", $user, $pswd, true, 2 ) or die("Unable to connect to mysql..." . mysql_error($prohits_link)); 84mysql_select_db(PROHITS_DB, $prohits_link); 85 86$msManager_link = mysql_connect("$host", $user, $pswd, true, 2 ) or die("Unable to connect to mysql..." . mysql_error($msManager_link)); 87mysql_select_db(MANAGER_DB, $msManager_link); 88 89$protein_link = mysql_connect("$host", $user, $pswd, true, 2 ) or die("Unable to connect to mysql..." . mysql_error($protein_link)); 90mysql_select_db(PROHITS_PROTEINS_DB, $protein_link); 241 }else{ 242 $error_msg = "Couldn't connect the remote site"; 243 }shell_functions.inc.php http://prohits.googlecode.com/svn/trunk/ | PHP | 517 lines
64//---------------------------------------------- 65function fatalError($msg='', $line=0, $log_file=''){ 66//---------------------------------------------- 68 if(!$start_time)$start_time=@date("D M j G:i:s T Y"); 69 $msg = "Fatal Error--<font color=\"#FF0000\">$msg</font>;<br>\n"; 70 $msg .= "Script Name: " . $_SERVER['PHP_SELF']. ";<br>\n"; 109 } 110 $prohits_link = mysql_connect($host, USERNAME, DBPASSWORD, true, 2 ) or die("Unable to connect to mysql..." . mysql_error($prohits_link)); 111 mysql_select_db(PROHITS_DB, $prohits_link) or die("Can not use '". PROHITS_DB . "' database". mysql_error($prohits_link)); 127 $msg = "session id is not in session table $SID. or the user has no permission to run the script"; 128 fatalError($msg); 129 } 139 } 140 $prohits_link = mysql_connect($host, USERNAME, DBPASSWORD, true, 2 ) or die("Unable to connect to mysql..." . mysql_error($prohits_link)); 141 mysql_select_db(PROHITS_DB, $prohits_link) or die("Can not use '". PROHITS_DB . "' database". mysql_error($prohits_link));ms_pop_upload_raw_files.php http://prohits.googlecode.com/svn/trunk/ | PHP | 914 lines
129//$managerDBname = "Backup_test"; 130$msManager_link = mysql_connect($host, $user, $pswd, true, 2) or die("Unable to connect to mysql..." . mysql_error($msManager_link)); 131mysql_select_db($managerDBname, $msManager_link) or die("Can not use '". $managerDBname . "' database". mysql_error($msManager_link)); 132 133$prohits_link = mysql_connect($host, $user, $pswd, true, 2) or die("Unable to connect to mysql..." . mysql_error($prohits_link)); 134mysql_select_db(PROHITS_DB, $prohits_link) or die("Can not use '". PROHITS_DB . "' database". mysql_error($prohits_link)); 138foreach($HITS_DB as $key => $DBname){ 139 $HitDB_links[$key] = mysql_connect($host, $user, $pswd, true, 2) or die("Unable to connect to mysql..." . mysql_error($HitDB_links[$key])); 140 mysql_select_db($DBname, $HitDB_links[$key]) or die("Can not use '". PROHITS_DB . "' database". mysql_error($HitDB_links[$key])); 170 }else{ 171 fatalError("couldn't find the user $UserID", $logfile); 172 } 187 $message = "You don't have permission to upload files, since you don't have any project inserting permission."; 188 fatalError($message, $logfile); 189 }auto_save_gpm_shell_fun.inc.php http://prohits.googlecode.com/svn/trunk/ | PHP | 375 lines
50\**************************************************************************/ 51//error_reporting(E_ALL ^ E_NOTICE); 52 147 \n<br>save_GPM_results function stopped in file auto_save_shell_fun.inc.php. the prohits_parser.pl should be placed in GPM/cgi/. 148 If the prohits_parser.pl is in /GPM/cgi/ folder, you still get the error message. 149 The Prohits server default_socket_timeout should be increased in php.ini file."; 149 The Prohits server default_socket_timeout should be increased in php.ini file."; 150 fatal_Error($msg); 151 mail(ADMIN_EMAIL, "GPM Parser error", $msg, "From: prohits_server\r\n"."Reply-To: \r\n");auto_save_form.inc.php http://prohits.googlecode.com/svn/trunk/ | PHP | 745 lines
36$debug = 0; //a command line will be showed on the window and run it on shell. 37$error_msg = ''; 38$the_plate_in_dbs = array(); 43if(!isset($frm_gpmeionxpect)) $frm_gpmeionxpect=1; 44$error_msg = ''; 45$p_msg = ''; 117 }else{ 118 $error_msg = "You didn't select any wells to save."; 119 } 140 if(!$frm_parser_setID){ 141 $error_msg = "<br>The name '$frm_new_parser_filter_name' has been used. Please use other name!"; 142 }auto_save_tpp_shell_fun.inc.php http://prohits.googlecode.com/svn/trunk/ | PHP | 481 lines
18 19//error_reporting(E_ALL ^ E_NOTICE); 20 353 if(!$pepxml_P->parse($tppPepLocalPath) ){ 354 write_Log($pepxml_P->error_msg); 355 print $pepxml_P->error_msg;tpp_task_form.inc.php http://prohits.googlecode.com/svn/trunk/ | PHP | 434 lines
23include("./tppTask/tpp_task_shell_fun.inc.php"); 24$error_tppmsg = ''; 25$color_tpp = '#357b73'; 45 if(savedTask($task_ID, $frm_tppTaskName)){ 46 $error_tppmsg = "The TPP name exists for the search task."; 47 $myaction = 'new_ttp_task'; 54}else if($myaction == 'save_repeat_tpp_task' and $perm_insert and $tppTaskID){ 55 $error_tppmsg = updateTppTask($tppTaskID, $frm_tppID_str, $frm_merge_str); 56 if(!$error_tppmsg){ 426 <input type="button" value="Cancel" onClick=newTPP(false)> 427 <?="<br><font color=\"#FF0000\">".$error_ms_storage_pop_link_prohits_id.php http://prohits.googlecode.com/svn/trunk/ | PHP | 1292 lines
109 $error_msg = check_upload(); 110 if($error_msg)_error($error_msg); 111 $proteinDB = new mysqlDB(PROHITS_PROTEINS_DB); 156 if(isset($_SERVER['CONTENT_LENGTH'])){ 157 $error_msg = check_upload('file_size'); 158 } 158 } 159 if(!$error_msg and is_file($_FILES['frm_tppPep_xml']['tmp_name'])){ 160 $tmp_pepfilename = $_FILES['frm_tppPep_xml']['name']; 162 if(!$error_msg){ 163 $error_msg = save_search_result_file($_FILES['frm_tppPep_xml'], $upload_to, $frm_sample_ID, 'tppPep'); 164 if(!$error_msg){ 168 } 169 if(!$error_msg and is_file($_FILES['frm_tppProt_xml']['tmp_name'])){ 170 $error_msg = check_file_type($_FILES['frm_tppProt_xml'], 'tppProt');ms_search_results_detail.php http://prohits.googlecode.com/svn/trunk/ | PHP | 714 lines
68 69if(!$frm_PlateID) fatalError("There is no table ID passed", __LINE__); 70$perm_insert = 0; 112 $status_color = "yellow"; 113 $task_arr['Status'] = 'Error'; 114 $warning_msg = " (<b>The task was set to run. But it is not running. Click task detail to stop it or run it again.</b>)"; 123 $foldersRD = $managerDB->fetchAll($SQL); 124 if(!$foldersRD) fatalError("no permission for the plate", __LINE__); 125}else{ 255 $styleColor = 'lightgreen'; 256}else if($task_arr['Status'] == 'Error'){ 257 $styleColor = 'yellow'; 349 Fragment error:<font color='red'>".$spectrum__fragment_monoisotopic_mass_error." ".$unit_f."</font><br> 350 Parent mass error:<font color='red'>+".$spectrum__parent_monoisotopic_mass_error_plus ." -".$spectrum__parent_monoisotopic_mass_error_minus. " ".$unit_p."</font><br> 351 Complete modifications: <font color='#FF0000'>".$residue__modification_mass_select." ". $residue__modification_mass."</font><br>peptide_view.php http://prohits.googlecode.com/svn/trunk/ | PHP | 1769 lines
146$start_time = @date("F j, Y, g:i a"); 147//$file?$fileIn=$file:fatalError("no file name", __LINE__); 148//$query?$queryNum=$query:fatalError("no query number", __LINE__); 148//$query?$queryNum=$query:fatalError("no query number", __LINE__); 149//$hit?$hitNum=$hit:fatalError("no hit number", __LINE__); 150ms_search_task_view.php http://prohits.googlecode.com/svn/trunk/ | PHP | 418 lines
82 }else{ 83 fatalError("Missing task ID.", __LINE__); 84 } 106 $foldersRD = $managerDB->fetchAll($SQL); 107 if(!$foldersRD) fatalError("no permission for the plate", __LINE__); 108 138 $bgcolor = "yellow"; 139 $frm_status = 'Error'; 140 $warning_msg = " <font color=red><b> (The task was set to run. But it is not running. Stop the task or run it again.)</b></font>"; 157 }else{ 158 fatalError("The task doesn't exist.", __LINE__); 159 } 316 Fragment error:<font color='red'>".$spectrum__fragment_monoisotopic_mass_error." ".$unit_f."</font><br> 317 Parent mass error:<font color='red'>+".$spectrum__parent_monoisotopic_mass_error_plus ." -".$spectrum__parent_monoisotopic_mass_error_minus. " ".$unit_p."</font><br> 318 Complete modifications: <font color='#FF0000'>".$residue__modification_mass_select." ". $residue__modification_mass."</font><br>ms_search_task_old.php http://prohits.googlecode.com/svn/trunk/ | PHP | 638 lines
79 $plate_record = $managerDB->fetch($SQL); 80 if(!$plate_record) fatalError("no permission for the plate", __LINE__); 81ms_storage_fetch_raw.php http://prohits.googlecode.com/svn/trunk/ | PHP | 396 lines
18 19//error_reporting(~E_NOTICE); 20$thePage = '';common_subs.pl http://prohits.googlecode.com/svn/trunk/ | Perl | 762 lines
43# &fatal() 44# prints fatal error message to browser then dies 45# $_[0] error message 56 my $datFile = shift; 57 print "\n\n<HTML><HEAD><TITLE>Fatal Error</TITLE></HEAD>\n<BODY>\n"; 58 print "<H1>Fatal Error</H1>\n";peptide_view_clean.php http://prohits.googlecode.com/svn/trunk/ | PHP | 2131 lines
155$start_time = @date("F j, Y, g:i a"); 156$file?$fileIn=$file:fatalError("no file name", __LINE__); 157$query?$queryNum=$query:fatalError("no query number", __LINE__); 157$query?$queryNum=$query:fatalError("no query number", __LINE__); 158$hit?$hitNum=$hit:fatalError("no hit number", __LINE__); 159/* 185$configFileArr = file("mascot.dat"); 186if(!$configFileArr) fatalError("cannot close mascot.dat", __LINE__); 187/* 215$fields = file($fileIn); 216if(!$fields) fatalError("cannot open $fileIn", __LINE__); 217/*echo "<pre>"; 221$boundary = ''; 222getIndex() || fatalError("could not get index from $fileIn", __LINE__); 223ms_search_task.php http://prohits.googlecode.com/svn/trunk/ | PHP | 861 lines
61$task_has_results = false; 62$error_msg = ''; 63 129 $foldersRD = $managerDB->fetchAll($SQL); 130 if(!$foldersRD) fatalError("no permission for the plate", __LINE__); 131 208 $bgcolor = "yellow"; 209 $frm_status = 'Error'; 210 $warning_msg = " <font color=red><b> (The task was set to run. But it is not running. Stop the task or run it again.)</b></font>"; 355 }else{ 356 $error_msg = 'Please select parameter set.'; 357 }ms_search_task_.php http://prohits.googlecode.com/svn/trunk/ | PHP | 677 lines
99 $foldersRD = $managerDB->fetchAll($SQL); 100 if(!$foldersRD) fatalError("no permission for the plate", __LINE__); 101 163 $bgcolor = "yellow"; 164 $frm_status = 'Error'; 165 $warning_msg = " <font color=red><b> (The task was set to run. But it is not running. Stop the task or run it again.)</b></font>";ms_storage_raw_info.php http://prohits.googlecode.com/svn/trunk/ | PHP | 432 lines
18 19//error_reporting(~E_NOTICE); 20$thePage = ''; 110 if(frm_date1 > frm_date2){ 111 alert("Error. Select date again"); 112 return false;base.js git://github.com/Treesaver/treesaver.git | JavaScript | 1503 lines
99 if (goog.isProvided_(name)) { 100 throw Error('Namespace "' + name + '" already declared.'); 101 } 119 * live code in production. 120 * @param {string=} opt_message Optional message to add to the error that's 121 * raised when used in production code. 125 opt_message = opt_message || ''; 126 throw Error('Importing test-only code into non-debug environment' + 127 opt_message ? ': ' + opt_message : '.'); 334 if (goog.global.console) { 335 goog.global.console['error'](errorMessage); 336 } 338 339 throw Error(errorMessage); 340calcdeps.py git://github.com/Treesaver/treesaver.git | Python | 558 lines
18 import distutils.version 19except ImportError: 20 # distutils is not available in all environments 437 if proc.returncode != 0: 438 logging.error('JavaScript compilation failed.') 439 sys.exit(1)article.js git://github.com/Treesaver/treesaver.git | JavaScript | 446 lines
173 174 // Make sure error flag is set when we can't extract 175 article = new treesaver.ui.Article('', []); 176 ok(!article.processHTML('<p>Hello</p>'), 'Returns false on failure'); 177 ok(article.error, 'Error flag on faulty HTML'); 178 });chrome.js git://github.com/Treesaver/treesaver.git | JavaScript | 1846 lines
35 if (!dom.querySelectorAll('.viewer', node).length) { 36 debug.error('Chrome does not have a viewer'); 37 } 39 if (node.parentNode.childNodes.length !== 1) { 40 debug.error('Chrome is not only child in container'); 41 }article.js git://github.com/Treesaver/treesaver.git | JavaScript | 587 lines
140 Article.events = { 141 PAGINATIONERROR: 'treesaver.paginationerror', 142 PAGINATIONPROGRESS: 'treesaver.paginationprogress' 149 if (article_node.nodeName !== 'ARTICLE') { 150 debug.error('Could not find article content: ' + article_node.innerHTML); 151 151 152 this.error = true; 153 247 if (!this.eligible_grids.length) { 248 debug.error('No eligible grids at ' + size.w + 'x' + size.h); 249 } 314 if (!this.maxPageSize) { 315 debug.error('Tried to paginate without a page size'); 316 return;articlemanager.js git://github.com/Treesaver/treesaver.git | JavaScript | 1135 lines
58 if (!ArticleManager.grids_) { 59 debug.error('No grids'); 60 86 87 // Set up the loading & error pages 88 ArticleManager.initLoadingPage(); 88 ArticleManager.initLoadingPage(); 89 ArticleManager.initErrorPage(); 90 162 // the index does not contain a reference to the document that referenced it. 163 // Emit an error for now. 164 debug.error('onIndexLoad: found index, but the article that refers to the index is not present.'); 183 grid = new treesaver.layout.Grid(node); 184 if (!grid.error) { 185 grids.push(grid);page.js git://github.com/Treesaver/treesaver.git | JavaScript | 1029 lines
37 if (br.finished) { 38 debug.info('Finished article in face of error.'); 39 this.ignore = true; 41 else { 42 debug.error('No best grid found: ' + arguments); 43 this.error = true; 142 if (originalBr.equals(br)) { 143 debug.error('No progress made in pagination: ' + arguments + best); 144 this.error = true; 238 if (!size) { 239 debug.error('Empty size!'); 240 } 242 if (!figureSize) { 243 debug.error('Empty figureSize!'); 244 }block.js git://github.com/Treesaver/treesaver.git | JavaScript | 722 lines
49 if (node.nodeType !== 1) { 50 debug.error('Non-element sent into Block constructor: ' + node); 51grid.js git://github.com/Treesaver/treesaver.git | JavaScript | 700 lines
28 if (!node || !dom.hasClass(node, 'grid')) { 29 debug.error('Non grid passed to initGrid'); 30 } 82 else if (this.colWidth !== cur.w) { 83 debug.error('Inconsistent column widths in grid'); 84 84 85 this.error = true; 86 } 178 */ 179 Grid.prototype.error; 180 532 if (!content) { 533 debug.error('No content passed to grid.best'); 534 }llinitparam.cpp https://bitbucket.org/davep/shining-fixes/ | C++ | 487 lines
96 97 void Parser::parserError(const std::string& message) 98 { 174 175 bool BaseBlock::validateBlock(bool emit_errors) const 176 { 182 { 183 if (emit_errors) 184 {llinitparam.h https://bitbucket.org/davep/shining-fixes/ | C++ Header | 2015 lines
36 37#include "llerror.h" 38 270 virtual void parserWarning(const std::string& message); 271 virtual void parserError(const std::string& message); 272 void setParseSilently(bool silent) { mParseSilently = silent; } 443 param_handle_t getHandleFromParam(const Param* param) const; 444 bool validateBlock(bool emit_errors = true) const; 445