100+ results results for 'ERROR repo:qbit_/scottbot' (381 ms)
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 */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); \__init__.py https://bitbucket.org/birkenfeld/sphinx/ | Python | 351 lines
18from sphinx import package_dir 19from sphinx.errors import PycodeError 20from sphinx.pycode import nodes 188 except Exception as err: 189 raise PycodeError('error opening %r' % filename, err) 190 obj = cls(fileobj, modname, filename) 197 entry = cls.cache['module', modname] 198 if isinstance(entry, PycodeError): 199 raise entry 207 obj = cls.for_file(source, modname) 208 except PycodeError as err: 209 cls.cache['module', modname] = err 250 self.tokens = list(tokenize.generate_tokens(self.source.readline)) 251 except tokenize.TokenError as err: 252 raise PycodeError('tokenizing failed', err)KhorosToMatLab.old git://github.com/aludnam/MATLAB.git | Perl | 452 lines
278 print "elseif nargin ==2\n Inputs=varargin{1}; arglist=varargin{2};\n"; 279 print "else error('Usage: [out1,..] = k$fname(Inputs,arglist).');\nend\n"; 280 } 285 print "elseif nargin ==1\n arglist=varargin{1};\n"; 286 print "else error('Usage: [out1,..] = k$fname(arglist).');\nend\n"; 287 } 287 } 288print "if size(arglist,2)~=2\n error('arglist must be of form {''ParameterTag1'',value1;''ParameterTag2'',value2}')\n end\n"; 289 342 if (nextinput > length(Inputs)) 343 error(['Input ' narglist{jj,1} ' has no corresponding input!']); 344 end 348 if (nextoutput > nargout) 349 error(['Output nr. ' narglist{jj,1} ' is not present in the assignment list of outputs !']); 350 endnsISHistory.h http://firefox-mac-pdf.googlecode.com/svn/trunk/ | C Header | 313 lines
94 * the index is obtained successfully. 95 * <code>NS_ERROR_FAILURE</code> Error in obtaining 96 * history entry for the given index. 112 * @throws <code>NS_SUCCESS_LOSS_OF_INSIGNIFICANT_DATA</code> Purge was vetod. 113 * @throws <code>NS_ERROR_FAILURE</code> numEntries is 114 * invalid or out of bounds with the size of history. 206#define NS_FORWARD_SAFE_NSISHISTORY(_to) \ 207 NS_SCRIPTABLE NS_IMETHOD GetCount(PRInt32 *aCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCount(aCount); } \ 208 NS_SCRIPTABLE NS_IMETHOD GetIndex(PRInt32 *aIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIndex(aIndex); } \ 208 NS_SCRIPTABLE NS_IMETHOD GetIndex(PRInt32 *aIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIndex(aIndex); } \ 209 NS_SCRIPTABLE NS_IMETHOD GetRequestedIndex(PRInt32 *aRequestedIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRequestedIndex(aRequestedIndex); } \ 210 NS_SCRIPTABLE NS_IMETHOD GetMaxLength(PRInt32 *aMaxLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMaxLength(aMaxLength); } \ 210 NS_SCRIPTABLE NS_IMETHOD GetMaxLength(PRInt32 *aMaxLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMaxLength(aMaxLength); } \ 211 NS_SCRIPTABLE NS_IMETHOD SetMaxLength(PRInt32 aMaxLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMaxLength(aMaxLength); } \ 212 NS_SCRIPTABLE NS_IMETHOD GetEntryAtIndex(PRInt32 index, PRBool modifyIndex, nsIHistoryEntry **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEntryAtIndex(index, modifyIndex, _retval); } \nsIDOMHTMLAppletElement.h http://firefox-mac-pdf.googlecode.com/svn/trunk/ | C Header | 309 lines
138#define NS_FORWARD_SAFE_NSIDOMHTMLAPPLETELEMENT(_to) \ 139 NS_SCRIPTABLE NS_IMETHOD GetAlign(nsAString & aAlign) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAlign(aAlign); } \ 140 NS_SCRIPTABLE NS_IMETHOD SetAlign(const nsAString & aAlign) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAlign(aAlign); } \ 140 NS_SCRIPTABLE NS_IMETHOD SetAlign(const nsAString & aAlign) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAlign(aAlign); } \ 141 NS_SCRIPTABLE NS_IMETHOD GetAlt(nsAString & aAlt) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAlt(aAlt); } \ 142 NS_SCRIPTABLE NS_IMETHOD SetAlt(const nsAString & aAlt) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAlt(aAlt); } \ 142 NS_SCRIPTABLE NS_IMETHOD SetAlt(const nsAString & aAlt) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAlt(aAlt); } \ 143 NS_SCRIPTABLE NS_IMETHOD GetArchive(nsAString & aArchive) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetArchive(aArchive); } \ 144 NS_SCRIPTABLE NS_IMETHOD SetArchive(const nsAString & aArchive) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetArchive(aArchive); } \ 144 NS_SCRIPTABLE NS_IMETHOD SetArchive(const nsAString & aArchive) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetArchive(aArchive); } \ 145 NS_SCRIPTABLE NS_IMETHOD GetCode(nsAString & aCode) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCode(aCode); } \ 146 NS_SCRIPTABLE NS_IMETHOD SetCode(const nsAString & aCode) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCode(aCode); } \ 146 NS_SCRIPTABLE NS_IMETHOD SetCode(const nsAString & aCode) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCode(aCode); } \ 147 NS_SCRIPTABLE NS_IMETHOD GetCodeBase(nsAString & aCodeBase) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCodeBase(aCodeBase); } \ 148 NS_SCRIPTABLE NS_IMETHOD SetCodeBase(const nsAString & aCodeBase) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCodeBase(aCodeBase); } \CGIHTTPServer.py https://bitbucket.org/pypy/pypy/ | Python | 378 lines
148 if not (self.have_fork or self.have_popen2 or self.have_popen3): 149 self.send_error(403, "CGI script is not a Python script (%r)" % 150 scriptname) 152 if not self.is_executable(scriptfile): 153 self.send_error(403, "CGI script is not executable (%r)" % 154 scriptname) 247 os.setuid(nobody) 248 except os.error: 249 pass 253 except: 254 self.server.handle_error(self.request, self.client_address) 255 os._exit(127) 272 nbytes = int(length) 273 except (TypeError, ValueError): 274 nbytes = 0XcmsAllocNamedColor.m git://anongit.freedesktop.org/git/xorg/test/xts.git/ | Objective C | 0 lines
138 * Turn on buffering and buffer parameter information 139 * in case an error occurs 140 ******/ 145 message(fmtstr, fmt_lst, 0); 146 (void)strcpy(fmtstr, "An error occurred during a call to %s\n\n"); 147 fmt_lst[0].typ_str = TestName; 161 162 bufrdisp(display); /* buffer display struct info for error checking */ 163 179 180 first_error = 0; /* no errors encountered yet */ 181/****** 186 errflg = 0; 187 XSetErrorHandler(signal_status); 188 svc_ret_value = XcmsAllocNamedColor(libdivecomputer.c git://github.com/torvalds/subsurface.git | C | 482 lines
24 25static GError *error(const char *fmt, ...) 26{ 27 va_list args; 28 GError *error; 29 30 va_start(args, fmt); 31 error = g_error_new_valist( 32 g_quark_from_string("subsurface"), 32 g_quark_from_string("subsurface"), 33 DIVE_ERROR_PARSE, fmt, args); 34 va_end(args); 34 va_end(args); 35 return error; 36}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 }TicketCommands.cpp git://github.com/darkman1983/TrinityCore.git | C++ | 457 lines
183 { 184 SendSysMessage(LANG_COMMAND_TICKETASSIGNERROR_A); 185 return true; 190 { 191 PSendSysMessage(LANG_COMMAND_TICKETASSIGNERROR_B, ticket->GetId()); 192 return true;llex.cpp git://github.com/scummvm/scummvm.git | C++ | 475 lines
55 if (b->buffsize >= MAX_SIZET/2) 56 luaX_lexerror(ls, "lexical element too long", 0); 57 newsize = b->buffsize * 2; 101 102void luaX_lexerror (LexState *ls, const char *msg, int token) { 103 char buff[MAXSRC]; 111 112void luaX_syntaxerror (LexState *ls, const char *msg) { 113 luaX_lexerror(ls, msg, ls->t.token); 133 if (++ls->linenumber >= MAX_INT) 134 luaX_syntaxerror(ls, "chunk has too many lines"); 135} 177static void trydecpoint (LexState *ls, SemInfo *seminfo) { 178 /* format error: try to update decimal point separator */ 179 // Normally we'd use localeconv() to get the decimal point separator, 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)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()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 }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 {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) {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 {eee.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:Plugin.pm git://github.com/mdxp/cookbooks.git | Perl | 450 lines
39 40my %ERRORS=('OK'=>0,'WARNING'=>1,'CRITICAL'=>2,'UNKNOWN'=>3,'DEPENDENT'=>4); 41 77 78# nagios_exit("CODE", "error string") 79sub nagios_exit 83 $code ||= "UNKNOWN"; 84 die "invalid code '$code'" unless exists $ERRORS{$code}; 85 if ($errstr && $errstr ne '1') { 90 } 91 exit $ERRORS{$code}; 92} 396 397Sometimes on error or warning you want to return more than just the 398error cases in the returned text. You can do this by passing abuildcfg.h https://bitbucket.org/knoss/pcmanager/ | C++ Header | 427 lines
28#ifdef _WINDOWS_ 29#error "include buildcfg.h before include all other files" 30#endifSynHighlighterManager.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 }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}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)install.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 }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 chunksMefXapModuleTypeLoader.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 }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();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> 214cookie.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 *RenderWorld_local.h git://github.com/TTimo/doom3.gpl.git | C Header | 262 lines
31 32// assume any lightDef or entityDef index above this is an internal error 33const int LUDICROUS_INDEX = 10000;Features.java http://jjil.googlecode.com/svn/trunk/ | Java | 377 lines
110 Length = Delta.length(); 111 } catch (jjil.core.Error ex) { 112 } 168 Length = Delta.length(); 169 } catch (jjil.core.Error ex) { 170 } 226 Length = Delta.length(); 227 } catch (jjil.core.Error ex) { 228 }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);detection.cpp git://github.com/scummvm/scummvm.git | C++ | 416 lines
91 92 Common::Error createInstance(OSystem *syst, Engine **engine) const override; 93 274 275Common::Error SkyMetaEngine::createInstance(OSystem *syst, Engine **engine) const { 276 assert(engine); 277 *engine = new Sky::SkyEngine(syst); 278 return Common::kNoError; 279} 371 if (ioFailed) 372 warning("Unable to store Savegame names to file SKY-VM.SAV. (%s)", saveFileMan->popErrorDesc().c_str()); 373} 383 uint16 result = _skyControl->quickXRestore(slot - 1); 384 return (result == GAME_RESTORED) ? Common::kNoError : Common::kUnknownError; 385}sequence.cpp git://github.com/scummvm/scummvm.git | C++ | 481 lines
116 default: 117 error("[AnimFrame::AnimFrame] Unknown frame compression: %d", f.compressionType); 118 } 380 if (_stream->eos()) 381 error("[Sequence::load] Couldn't seek to the current frame data"); 382 384 if ((unsigned)(_stream->size() - _stream->pos()) < _sequenceFrameSize) 385 error("[Sequence::load] The sequence frame does not have a valid header"); 386 398 if (_frames.size() == 0) 399 error("[Sequence::getFrameInfo] Trying to decode a sequence before loading its data"); 400 401 if (index > _frames.size() - 1) 402 error("[Sequence::getFrameInfo] Invalid sequence frame requested: %d, max %d", index, _frames.size() - 1); 403fruchterman_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: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)ExternalAnyKeyboard.java http://softkeyboard.googlecode.com/svn/ | Java | 323 lines
164 } catch (Exception e) { 165 Log.e(TAG, "Parse error:" + e); 166 e.printStackTrace();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);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;SQLDescribeColW.c https://unixodbc.svn.sourceforge.net/svnroot/unixodbc | C | 468 lines
225 226 __post_internal_error_api( &statement -> error, 227 ERROR_07009, NULL, 276 277 __post_internal_error( &statement -> error, 278 ERROR_HY010, NULL, 338 339 __post_internal_error( &statement -> error, 340 ERROR_HY010, NULL, 357 358 __post_internal_error( &statement -> error, 359 ERROR_IM001, NULL, 387 388 __post_internal_error( &statement -> error, 389 ERROR_IM001, NULL,nntp.c https://unixodbc.svn.sourceforge.net/svnroot/unixodbc | C | 855 lines
234 case -1: 235 return strerror( errno ); 236 260 261 pcndes->code = -1; /* system error */ 262all-index-J.html http://gmaps-utility-library-flash.googlecode.com/svn/trunk/ | HTML | 134 lines
71<tr> 72<td colspan="2" class="idxrow"><a onclick="javascript:loadClassListFrame('com/google/maps/extras/arcgislink/json/class-list.html');" href="com/google/maps/extras/arcgislink/json/JSONParseError.html">JSONParseError</a> — Class in package <a onclick="javascript:loadClassListFrame('com/google/maps/extras/arcgislink/json/class-list.html');" href="com/google/maps/extras/arcgislink/json/package-detail.html">com.google.maps.extras.arcgislink.json</a></td> 73</tr> 78<tr> 79<td colspan="2" class="idxrow"><a onclick="javascript:loadClassListFrame('com/google/maps/extras/arcgislink/json/class-list.html');" href="com/google/maps/extras/arcgislink/json/JSONParseError.html#JSONParseError()">JSONParseError</a>(message, location, text) — Constructor in class com.google.maps.extras.arcgislink.json.<a onclick="javascript:loadClassListFrame('com/google/maps/extras/arcgislink/json/class-list.html');" href="com/google/maps/extras/arcgislink/json/JSONParseError.html">JSONParseError</a></td> 80</tr> 82<td width="20"></td><td> 83 Constructs a new JSONParseError.</td> 84</tr>IdGopher.pas git://github.com/rofl0r/KOL.git | Pascal | 560 lines
75 procedure DoMenu(MenuItem: TIdGopherMenuItem); 76 procedure ProcessGopherError; 77 function MenuItemFromString(stLine: string; Menu: TIdGopherMenu) 138 139procedure TIdGopher.ProcessGopherError; 140var 140var 141 ErrorNo: Integer; 142 ErrMsg: string; 145 ErrorNo := StrToInt(Fetch(ErrMsg)); 146// raise EIdProtocolReplyError.CreateError(ErrorNo, Copy(ErrMsg, 1, Length(ErrMsg) 147// - 5)); 168 begin 169 Result.ItemType := IdGopherItem_Error; 170 end;nsIURIContentListener.h http://firefox-mac-pdf.googlecode.com/svn/trunk/ | C Header | 277 lines
186#define NS_FORWARD_SAFE_NSIURICONTENTLISTENER(_to) \ 187 NS_SCRIPTABLE NS_IMETHOD OnStartURIOpen(nsIURI *aURI, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnStartURIOpen(aURI, _retval); } \ 188 NS_SCRIPTABLE NS_IMETHOD DoContent(const char *aContentType, PRBool aIsContentPreferred, nsIRequest *aRequest, nsIStreamListener **aContentHandler, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->DoContent(aContentType, aIsContentPreferred, aRequest, aContentHandler, _retval); } \ 188 NS_SCRIPTABLE NS_IMETHOD DoContent(const char *aContentType, PRBool aIsContentPreferred, nsIRequest *aRequest, nsIStreamListener **aContentHandler, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->DoContent(aContentType, aIsContentPreferred, aRequest, aContentHandler, _retval); } \ 189 NS_SCRIPTABLE NS_IMETHOD IsPreferred(const char *aContentType, char **aDesiredContentType, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsPreferred(aContentType, aDesiredContentType, _retval); } \ 190 NS_SCRIPTABLE NS_IMETHOD CanHandleContent(const char *aContentType, PRBool aIsContentPreferred, char **aDesiredContentType, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->CanHandleContent(aContentType, aIsContentPreferred, aDesiredContentType, _retval); } \ 190 NS_SCRIPTABLE NS_IMETHOD CanHandleContent(const char *aContentType, PRBool aIsContentPreferred, char **aDesiredContentType, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->CanHandleContent(aContentType, aIsContentPreferred, aDesiredContentType, _retval); } \ 191 NS_SCRIPTABLE NS_IMETHOD GetLoadCookie(nsISupports * *aLoadCookie) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLoadCookie(aLoadCookie); } \ 192 NS_SCRIPTABLE NS_IMETHOD SetLoadCookie(nsISupports * aLoadCookie) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLoadCookie(aLoadCookie); } \ 192 NS_SCRIPTABLE NS_IMETHOD SetLoadCookie(nsISupports * aLoadCookie) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLoadCookie(aLoadCookie); } \ 193 NS_SCRIPTABLE NS_IMETHOD GetParentContentListener(nsIURIContentListener * *aParentContentListener) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParentContentListener(aParentContentListener); } \ 194 NS_SCRIPTABLE NS_IMETHOD SetParentContentListener(nsIURIContentListener * aParentContentListener) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetParentContentListener(aParentContentListener); } 230{ 231 return NS_ERROR_NOT_IMPLEMENTED; 232}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 }zlibimp.cpp https://bitbucket.org/knoss/pcmanager/ | C++ | 503 lines
129 { 130 hr = HRESULT_FROM_WIN32( GetLastError() ); 131 goto Exit0; 136 { 137 hr = HRESULT_FROM_WIN32( GetLastError() ); 138 goto Exit0; 143 { 144 hr = HRESULT_FROM_WIN32( GetLastError() ); 145 goto Exit0; 150 { 151 hr = HRESULT_FROM_WIN32( GetLastError() ); 152 goto Exit0; 157 { 158 hr = HRESULT_FROM_WIN32( GetLastError() ); 159 goto Exit0;_Ads---AdWords---v201101---InfoService.php.html http://google-api-adwords-php.googlecode.com/svn/trunk/ | HTML | 0 lines
78 <td> 79 The API error base class that provides details about an error that occurred while processing a service request. 80 </td> 222 <td> 223 Represents possible error codes in InfoService. 224 </td> 287 <td> 288 Errors returned when Authentication failed. 289 </td> 319 <td> 320 Indicates that a server-side error has occured. {@code InternalApiError}s are generally not the result of an invalid request or message sent by the client. 321 </td> 383 <td> 384 Encapsulates the generic errors thrown when there's an error with user request. 385 </td>RegisterOperate.cpp https://bitbucket.org/knoss/pcmanager/ | C++ | 513 lines
47// SHGetValue(HKEY_LOCAL_MACHINE, TEXT("Software\\Microsoft\\Internet Explorer\\Main"), TEXT("Start Page"), &dwType, (LPVOID)pszValue, &cbSize); 48 if (ERROR_SUCCESS != RegQueryValueEx(hOpenKey, pszName, 0, &dwType , (LPBYTE)pszValue, &dwSize)) 49 { 92 93 int nError = GetLastError(); 94 return hRetkey; 110 ZeroMemory(pszBuf, cbSize2+1); 111 if (ERROR_SUCCESS == RegQueryValueEx(hKey, pszName, 0, &dwType, (LPBYTE)pszBuf, &cbSize2)) 112 { 300 CAccessHepler().AddRegAccess(hKey, pszSubPath, KEY_ALL_ACCESS); 301 if (ERROR_SUCCESS == RegSetValueEx(hOpenKey, pszName, 0, REG_SZ, (LPBYTE)pszValue, cbSize)) 302 nRet = 0; 322 323 if (ERROR_SUCCESS == RegSetValueEx(hOpenKey, pszName, 0, REG_DWORD, (LPBYTE)&dwValue, sizeof(DWORD))) 324 {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,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;adi.d https://bitbucket.org/lindquist/ldc/ | D | 611 lines
65{ 66 bool hadErrors = false; 67 if (a.length > 1) 91 stridelo = 1; 92 hadErrors=true; 93 } 102 if (lo > hi) { 103 hadErrors = true; 104 } 107 if (stridehi > 6) { 108 hadErrors = true; 109 stridehi = 6; 134 } 135 if (hadErrors) 136 throw new Exception("invalid UTF-8 sequence",__FILE__,__LINE__);RunwayWidget.as http://simile-widgets.googlecode.com/svn/ | ActionScript | 322 lines
167 ExternalInterface.addCallback("getSlideCount", function():int { return _runway.slideCount; }); 168 } catch (e:Error) { 169 trace("Error adding callbacks");manufacturers.php git://github.com/osCommerce/oscommerce.git | PHP | 176 lines
55 56 $error = false; 57 71 72 if ( !$osC_Database->isError() ) { 73 if ( is_numeric($id) ) { 89 90 if ( $osC_Database->isError() ) { 91 $error = true; 95 } else { 96 $error = true; 97 } 98 99 if ( $error === false ) { 100 foreach ( $osC_Language->getAll() as $l ) {ConstantPoolEntry.java https://code.google.com/p/classroom-presenter/ | Java | 222 lines
158 default: 159 throw new ClassFormatError("Invalid Constant Pool entry Type " 160 + cpTag);nsIXPIDialogService.h https://hg01.codeplex.com/kmbrasil | C Header | 0 lines
110#define NS_FORWARD_SAFE_NSIXPIDIALOGSERVICE(_to) \ 111 NS_IMETHOD ConfirmInstall(nsIDOMWindow *parent, const PRUnichar **packageList, PRUint32 count, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ConfirmInstall(parent, packageList, count, _retval); } \ 112 NS_IMETHOD OpenProgressDialog(const PRUnichar **packageList, PRUint32 count, nsIObserver *observer) { return !_to ? NS_ERROR_NULL_POINTER : _to->OpenProgressDialog(packageList, count, observer); } 148{ 149 return NS_ERROR_NOT_IMPLEMENTED; 150} 154{ 155 return NS_ERROR_NOT_IMPLEMENTED; 156}nsITextToSubURI.h https://hg01.codeplex.com/kmbrasil | C Header | 0 lines
44 * give the original escaped string 45 * <li> In case of a conversion error, the URI fragment (escaped) is 46 * assumed to be in UTF-8 and converted to AString (UTF-16) 46 * assumed to be in UTF-8 and converted to AString (UTF-16) 47 * <li> Always succeeeds (callers don't need to do error checking) 48 * </ul> 64 * @return Unescaped aURIFragment converted to unicode 65 * @throws NS_ERROR_UCONV_NOCONV when there is no decoder for aCharset 66 * or error code of nsIUnicodeDecoder in case of conversion failure 88#define NS_FORWARD_SAFE_NSITEXTTOSUBURI(_to) \ 89 NS_IMETHOD ConvertAndEscape(const char *charset, const PRUnichar *text, char **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ConvertAndEscape(charset, text, _retval); } \ 90 NS_IMETHOD UnEscapeAndConvert(const char *charset, const char *text, PRUnichar **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->UnEscapeAndConvert(charset, text, _retval); } \ 90 NS_IMETHOD UnEscapeAndConvert(const char *charset, const char *text, PRUnichar **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->UnEscapeAndConvert(charset, text, _retval); } \ 91 NS_IMETHOD UnEscapeURIForUI(const nsACString & aCharset, const nsACString & aURIFragment, nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->UnEscapeURIForUI(aCharset, aURIFragment, _retval); } \ 92 NS_IMETHOD UnEscapeNonAsciiURI(const nsACString & aCharset, const nsACString & aURIFragment, nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->UnEscapeNonAsciiURI(aCharset, aURIFragment, _retval); }kthread.c https://code.google.com/p/bricked/ | C | 253 lines
110 * kthread_stop() has been called). The return value should be zero 111 * or a negative error number; it will be passed to kthread_stop(). 112 *reduce_intervals.inl https://code.google.com/p/thrust/ | C++ Header | 0 lines
162 // ======================================================================== 163 // X Note to the user: If you've found this line due to a compiler error, X 164 // X you need to compile your code using nvcc, rather than g++ or cl.exe Xtarget-exception.lisp git://github.com/sbcl/sbcl.git | Lisp | 153 lines
60 (cons-name +exception-single-step+) 61 (cons +exception-access-violation+ 'memory-fault-error) 62 (cons-name +exception-array-bounds-exceeded+) 65 (cons-name +exception-illegal-instruction+) 66 (cons-name +exception-in-page-error+) 67 (cons-name +exception-int-divide-by-zero+) 104 105(define-condition exception (error) 106 ((code :initarg :code :reader exception-code) 123 (cond ((stringp condition-name) 124 (error condition-name)) 125 ((and condition-name 133 ((eq condition-name 'memory-fault-error) 134 (error 'memory-fault-error :address 135 (sap-int (deref (slot record 'exception-information) 1))))dirs.rkt git://github.com/smorin/f4f.arc.git | Racket | 209 lines
162 (unless m 163 (error "cannot find \"dLl dIRECTORy\" tag in binary")) 164 (let-values ([(dir name dir?) (split-path exe)])Blamer.scala http://scage.googlecode.com/svn/trunk/ | Scala | 151 lines
38 case None => { 39 log.error("failed to place killy to the field, the programm will exit") 40 System.exit(1) 46 case None => { 47 log.error("failed to place cibo to the field, the programm will exit") 48 System.exit(1)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 endvbackup.c https://bitbucket.org/rsc/plan9port/ | C | 621 lines
62RWLock endlk; /* silly synchonization */ 63int errors; /* are we exiting with an error status? */ 64int fastwrites; /* do not write blocks already on server */jsflash.c git://github.com/mirrors/linux-2.6.git | C | 636 lines
389 mutex_lock(&jsf_mutex); 390 int error = -ENOTTY; 391 void __user *argp = (void __user *)arg; 404 case JSFLASH_ERASE: 405 error = jsf_ioctl_erase(arg); 406 break; 407 case JSFLASH_PROGRAM: 408 error = jsf_ioctl_program(argp); 409 break; 412 mutex_unlock(&jsf_mutex); 413 return error; 414}group.py https://code.google.com/p/h5py/ | Python | 423 lines
19 if not isinstance(bind, h5g.GroupID): 20 raise ValueError("%s is not a GroupID" % bind) 21 HLObject.__init__(self, bind) 65 fletcher32 66 (T/F) Enable fletcher32 error detection. 67 fillvalue 86 87 Raises TypeError if an incompatible object already exists, or if the 88 shape or dtype don't match according to the above rules. 95 if not isinstance(dset, dataset.Dataset): 96 raise TypeError("Incompatible object (%s) already exists" % dset.__class__.__name__) 97 98 if not shape == dset.shape: 99 raise TypeError("Shapes do not match (existing %s vs new %s)" % (dset.shape, shape)) 100fckeditor.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)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}yacc-interrupted.rkt git://github.com/smorin/f4f.arc.git | Racket | 299 lines
14 (lambda (stx) 15 (raise-syntax-error #f "keyword ! used out of context" stx))) 16 18 (lambda (stx) 19 (raise-syntax-error #f "keyword !! used out of context" stx))) 20 22 (lambda (stx) 23 (raise-syntax-error #f "keyword ? used out of context" stx))) 24 44 (keyword? (syntax-e #'kw)) 45 (raise-syntax-error 'split "bad keyword" (car forms))] 46 [(pattern action) 48 [other 49 (raise-syntax-error 'split "bad grammar option or alternate" #'other)]) 50 (values options (reverse alts)))))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;iomanager_kqueue.cpp git://github.com/mozy/mordor.git | C++ | 371 lines
31 close(m_kqfd); 32 MORDOR_THROW_EXCEPTION_FROM_LAST_ERROR_API("pipe"); 33 } 38 rc = kevent(m_kqfd, &event, 1, NULL, 0, NULL); 39 MORDOR_LOG_LEVEL(g_log, rc ? Log::ERROR : Log::VERBOSE) << this << " kevent(" 40 << m_kqfd << ", (" << m_tickleFds[0] << ", EVFILT_READ, EV_ADD)): " << rc 179 << m_kqfd << ", (" << fd << ", " << eventsKey << ", EV_DELETE)): " << rc 180 << " (" << lastError() << ")"; 181 if (rc) 181 if (rc) 182 MORDOR_THROW_EXCEPTION_FROM_LAST_ERROR_API("kevent"); 183 if (dg) 314#ifdef OSX 315 int *err = boost::get_error_info<errinfo_nativeerror>(ex); 316 if (err != NULL && *err == EINPROGRESS) {vc71.mak http://hadesmem.googlecode.com/svn/trunk/ | Makefile | 0 lines
38!IF "$(MSVCDIR)" == "" 39!ERROR Variable MSVCDIR not set. 40!ENDIFkfbxclonemanager.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";mwcc.py git://github.com/cloudant/bigcouch.git | Python | 207 lines
110 versions.append(mwv) 111 except SCons.Util.RegError: 112 pass 115 116 except SCons.Util.RegError: 117 passdbmechanic.py http://dbsprockets.googlecode.com/svn/trunk/ | Python | 162 lines
15from dbsprockets.sprockets import Sprockets 16#from dbsprockets.decorators import crudErrorCatcher, validate 17from tw.api import WidgetBunch 138 # @validate(error_handler=editRecord) 139 #@crudErrorCatcher(errorType=sqlalchemy.exceptions.IntegrityError, error_handler='editRecord') 140 #@crudErrorCatcher(errorType=sqlalchemy.exceptions.ProgrammingError, error_handler='editRecord') 148 # @validate(error_handler=addRecord) 149 #@crudErrorCatcher(errorType=sqlalchemy.exceptions.IntegrityError, error_handler='addRecord') 150 #@crudErrorCatcher(errorType=sqlalchemy.exceptions.ProgrammingError, error_handler='addRecord')BaseServiceRemote.java http://tauruss.googlecode.com/svn/trunk/ | Java | 265 lines
99 } catch (Exception e) { 100 log.error(e); 101 }MembershipRequestServiceHttp.java git://github.com/liferay/liferay-portal.git | Java | 229 lines
89 90 _log.error(systemException, systemException); 91 125 126 _log.error(systemException, systemException); 127 166 167 _log.error(systemException, systemException); 168 205 206 _log.error(systemException, systemException); 207TikaRawMetadataProcessor.java git://github.com/liferay/liferay-portal.git | Java | 255 lines
230 else { 231 _log.error(exception, exception); 232 }mshopt.cxx https://kfem.svn.sourceforge.net/svnroot/kfem | C++ | 209 lines
40 aux=new Pila_trar_link; 41 if (pila==NIL || aux==NIL) ERROR(); 42 aux->set(tr,a); 52 cout<<"a11:"<<a11<<endl; 53 cerr<<"Error in mshopt."<<endl; 54 exit(1); 65 if (a21<0 || a21>2){ 66 cerr<<"Error in mshopt."<<endl; 67 cout<<"a21:"<<a21<<endl; 135 if (crit<=0) { 136 cout<<"Error. criterio negativo o cero"<<endl; 137 cout<<"t1:"<<t1->krit<<endl<<"t2:"<<t2->krit<<endl; 149 if (critp<0) { 150 cout<<"Error. Criterio negativo o cero"<<endl; 151 cout<<"crit1:"<<crit1<<endl<<"crit2:"<<crit2<<endl;StepExecutionTestsWithConversions.cs git://github.com/techtalk/SpecFlow.git | C# | 180 lines
83 [Test] 84 public void ShouldRaiseErrorIfSimpleConvertParamFails() 85 { 92 93 Assert.AreEqual(TestStatus.TestError, GetLastTestStatus()); 94 MockRepository.VerifyAll(); 134 135 Assert.AreEqual(TestStatus.BindingError, GetLastTestStatus()); 136 MockRepository.VerifyAll(); 163 [Test] 164 public void ShouldRaiseParamErrorIfNoneCanConvert() 165 { 175 176 Assert.AreEqual(TestStatus.BindingError, GetLastTestStatus()); 177 MockRepository.VerifyAll();Process.cs https://code.google.com/p/fan/ | C# | 254 lines
143 m_proc.StartInfo.RedirectStandardOutput = true; 144 m_proc.StartInfo.RedirectStandardError = true; 145 m_proc.OutputDataReceived += new System.Diagnostics.DataReceivedEventHandler(outHandler); 145 m_proc.OutputDataReceived += new System.Diagnostics.DataReceivedEventHandler(outHandler); 146 m_proc.ErrorDataReceived += new System.Diagnostics.DataReceivedEventHandler(errHandler); 147 157 m_proc.BeginOutputReadLine(); 158 m_proc.BeginErrorReadLine(); 159servers_controller.php http://skygames.googlecode.com/svn/trunk/ | PHP | 260 lines
167 } else { 168 $this->Session->setFlash(__('Error occured', true)); 169 }XDocsBugReporter.java http://findbugs.googlecode.com/svn/trunk/ | Java | 226 lines
53 54 private static final String ERRORS_ELEMENT_NAME = "Errors"; 55 55 56 private static final String ANALYSIS_ERROR_ELEMENT_NAME = "AnalysisError"; 57 78 @Override 79 public void logError(String message) { 80 bugCollection.addError(message); 80 bugCollection.addError(message); 81 super.logError(message); 82 } 131 Element errorsElement = root.addElement(ERRORS_ELEMENT_NAME); 132 for (AnalysisError analysisError : bugCollection.getErrors()) { 133 errorsElement.addElement(ANALYSIS_ERROR_ELEMENT_NAME).setText(analysisError.getMessage());OpenIdServlet.java https://code.google.com/p/puzzlebazar/ | Java | 191 lines
84 85 String errorMsg = OpenIdServletFilter.DEFAULT_ERROR_MSG; 86 try { 94 if (request.getParameter(relyingParty.getIdentifierParameter()) != null) { 95 request.setAttribute(OpenIdServletFilter.ERROR_MSG_ATTR, errorMsg); 96 } 140 System.err.println("could not be resolved"); 141 errorMsg = OpenIdServletFilter.DEFAULT_ERROR_MSG; 142 } catch (Exception e) { 143 e.printStackTrace(); 144 errorMsg = OpenIdServletFilter.DEFAULT_ERROR_MSG; 145 } 145 } 146 request.setAttribute(OpenIdServletFilter.ERROR_MSG_ATTR, errorMsg); 147rlist.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"); ?>",nsIDOMXULMultSelectCntrlEl.h https://hg01.codeplex.com/kmbrasil | C Header | 0 lines
118#define NS_FORWARD_SAFE_NSIDOMXULMULTISELECTCONTROLELEMENT(_to) \ 119 NS_IMETHOD GetSelType(nsAString & aSelType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelType(aSelType); } \ 120 NS_IMETHOD SetSelType(const nsAString & aSelType) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSelType(aSelType); } \ 120 NS_IMETHOD SetSelType(const nsAString & aSelType) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSelType(aSelType); } \ 121 NS_IMETHOD GetCurrentItem(nsIDOMXULSelectControlItemElement * *aCurrentItem) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCurrentItem(aCurrentItem); } \ 122 NS_IMETHOD SetCurrentItem(nsIDOMXULSelectControlItemElement * aCurrentItem) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCurrentItem(aCurrentItem); } \ 122 NS_IMETHOD SetCurrentItem(nsIDOMXULSelectControlItemElement * aCurrentItem) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCurrentItem(aCurrentItem); } \ 123 NS_IMETHOD GetCurrentIndex(PRInt32 *aCurrentIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCurrentIndex(aCurrentIndex); } \ 124 NS_IMETHOD SetCurrentIndex(PRInt32 aCurrentIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCurrentIndex(aCurrentIndex); } \ 124 NS_IMETHOD SetCurrentIndex(PRInt32 aCurrentIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCurrentIndex(aCurrentIndex); } \ 125 NS_IMETHOD GetSelectedItems(nsIDOMNodeList * *aSelectedItems) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelectedItems(aSelectedItems); } \ 126 NS_IMETHOD AddItemToSelection(nsIDOMXULSelectControlItemElement *item) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddItemToSelection(item); } \ 126 NS_IMETHOD AddItemToSelection(nsIDOMXULSelectControlItemElement *item) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddItemToSelection(item); } \ 127 NS_IMETHOD RemoveItemFromSelection(nsIDOMXULSelectControlItemElement *item) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveItemFromSelection(item); } \ 128 NS_IMETHOD ToggleItemSelection(nsIDOMXULSelectControlItemElement *item) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToggleItemSelection(item); } \nsIControllerCommandTable.h https://hg01.codeplex.com/kmbrasil | C Header | 0 lines
151#define NS_FORWARD_SAFE_NSICONTROLLERCOMMANDTABLE(_to) \ 152 NS_IMETHOD MakeImmutable(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->MakeImmutable(); } \ 153 NS_IMETHOD RegisterCommand(const char *aCommandName, nsIControllerCommand *aCommand) { return !_to ? NS_ERROR_NULL_POINTER : _to->RegisterCommand(aCommandName, aCommand); } \ 153 NS_IMETHOD RegisterCommand(const char *aCommandName, nsIControllerCommand *aCommand) { return !_to ? NS_ERROR_NULL_POINTER : _to->RegisterCommand(aCommandName, aCommand); } \ 154 NS_IMETHOD UnregisterCommand(const char *aCommandName, nsIControllerCommand *aCommand) { return !_to ? NS_ERROR_NULL_POINTER : _to->UnregisterCommand(aCommandName, aCommand); } \ 155 NS_IMETHOD FindCommandHandler(const char *aCommandName, nsIControllerCommand **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->FindCommandHandler(aCommandName, _retval); } \ 155 NS_IMETHOD FindCommandHandler(const char *aCommandName, nsIControllerCommand **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->FindCommandHandler(aCommandName, _retval); } \ 156 NS_IMETHOD IsCommandEnabled(const char *aCommandName, nsISupports *aCommandRefCon, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsCommandEnabled(aCommandName, aCommandRefCon, _retval); } \ 157 NS_IMETHOD UpdateCommandState(const char *aCommandName, nsISupports *aCommandRefCon) { return !_to ? NS_ERROR_NULL_POINTER : _to->UpdateCommandState(aCommandName, aCommandRefCon); } \ 157 NS_IMETHOD UpdateCommandState(const char *aCommandName, nsISupports *aCommandRefCon) { return !_to ? NS_ERROR_NULL_POINTER : _to->UpdateCommandState(aCommandName, aCommandRefCon); } \ 158 NS_IMETHOD SupportsCommand(const char *aCommandName, nsISupports *aCommandRefCon, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->SupportsCommand(aCommandName, aCommandRefCon, _retval); } \ 159 NS_IMETHOD DoCommand(const char *aCommandName, nsISupports *aCommandRefCon) { return !_to ? NS_ERROR_NULL_POINTER : _to->DoCommand(aCommandName, aCommandRefCon); } \ 159 NS_IMETHOD DoCommand(const char *aCommandName, nsISupports *aCommandRefCon) { return !_to ? NS_ERROR_NULL_POINTER : _to->DoCommand(aCommandName, aCommandRefCon); } \ 160 NS_IMETHOD DoCommandParams(const char *aCommandName, nsICommandParams *aParam, nsISupports *aCommandRefCon) { return !_to ? NS_ERROR_NULL_POINTER : _to->DoCommandParams(aCommandName, aParam, aCommandRefCon); } \ 161 NS_IMETHOD GetCommandState(const char *aCommandName, nsICommandParams *aParam, nsISupports *aCommandRefCon) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCommandState(aCommandName, aParam, aCommandRefCon); }main.cpp git://github.com/rhomobile/rhodes.git | C++ | 408 lines
135// This option was never actually used -- dwa 9/22/97 136// cerr<<"\t[-i] : ignore leak errors;"<<endl; 137 cerr<<"\t[-q] : quiet mode;"<<endl;pop3-unit.rkt git://github.com/smorin/f4f.arc.git | Racket | 391 lines
51 52;; -- signals an error otherwise. 53 55 (unless (eq? (communicator-state communicator) 'transaction) 56 ((signal-error make-not-ready-for-transaction error-message) 57 communicator))) 113 [(-err? status) 114 ((signal-error make-username-rejected 115 "username was rejected"))])))) 148 [(-err? status) 149 ((signal-error make-illegal-message-number 150 "not given message ~a" message) 205 [(-err? status) 206 ((signal-error make-cannot-delete-message 207 "no message numbered ~a available to be deleted" message)MsmqTraceListenerDataManageabilityProvider.cs https://entlib.svn.codeplex.com/svn | C# | 210 lines
25 /// processes policy overrides, performing appropriate logging of 26 /// policy processing errors. 27 /// </summary> 157 String.Format(CultureInfo.CurrentCulture, 158 Resources.ExceptionErrorValueNotTimeSpan, 159 policyKey.Name, 174 /// <remarks>Subclasses implementing this method must retrieve all the override values from the registry 175 /// before making modifications to the <paramref name="configurationObject"/> so any error retrieving 176 /// the override values will cancel policy processing.</remarks>RealmTableImpl.java http://mobicents.googlecode.com/svn/trunk/ | Java | 410 lines
204 catch (Exception e) { 205 logger.error("Unable to read Destination-Realm AVP to match realm to request", e); 206 }GenConnection.cs http://pvbeancounter.googlecode.com/svn/trunk/ | C# | 256 lines
54 // SQLite works best when all SQL uses the same connection 55 // This avoids Database is Locked error messages 56 // GenDatabase creates a single Global connection for SQLite use 200 { 201 throw new GenException(GenExceptionType.CannotConnectToDatabase, "GenConnection.Open: Error connecting to the database: " + e.Message, e); 202 }bio_err.c git://github.com/joyent/node.git | C | 156 lines
110 { 111{ERR_REASON(BIO_R_ACCEPT_ERROR) ,"accept error"}, 112{ERR_REASON(BIO_R_BAD_FOPEN_MODE) ,"bad fopen mode"}, 114{ERR_REASON(BIO_R_BROKEN_PIPE) ,"broken pipe"}, 115{ERR_REASON(BIO_R_CONNECT_ERROR) ,"connect error"}, 116{ERR_REASON(BIO_R_EOF_ON_MEMORY_BIO) ,"EOF on memory BIO"}, 116{ERR_REASON(BIO_R_EOF_ON_MEMORY_BIO) ,"EOF on memory BIO"}, 117{ERR_REASON(BIO_R_ERROR_SETTING_NBIO) ,"error setting nbio"}, 118{ERR_REASON(BIO_R_ERROR_SETTING_NBIO_ON_ACCEPTED_SOCKET),"error setting nbio on accepted socket"}, 118{ERR_REASON(BIO_R_ERROR_SETTING_NBIO_ON_ACCEPTED_SOCKET),"error setting nbio on accepted socket"}, 119{ERR_REASON(BIO_R_ERROR_SETTING_NBIO_ON_ACCEPT_SOCKET),"error setting nbio on accept socket"}, 120{ERR_REASON(BIO_R_GETHOSTBYNAME_ADDR_IS_NOT_AF_INET),"gethostbyname addr is not af inet"}, 124{ERR_REASON(BIO_R_KEEPALIVE) ,"keepalive"}, 125{ERR_REASON(BIO_R_NBIO_CONNECT_ERROR) ,"nbio connect error"}, 126{ERR_REASON(BIO_R_NO_ACCEPT_PORT_SPECIFIED),"no accept port specified"},save_xml.cpp https://code.google.com/p/activityedit/ | C++ | 192 lines
131 if (!file.open(QIODevice::WriteOnly | QIODevice::Truncate)) 132 throw FileErrorException(filename); 133 QTextStream stream(&file);AnimationTests.as git://github.com/prefuse/Flare.git | ActionScript | 231 lines
205 assertEquals("tween", t1.id); 206 } catch (err:Error) { 207 fail("id change for non-running tween caused exception."); 213 fail("Allowed id change for running transition"); 214 } catch (e:Error) { } 215 t1.play(); 218 fail("Allowed id change for running transition"); 219 } catch (e:Error) { } 220 t2.play();gst00a.f http://casacore.googlecode.com/svn/trunk/ | FORTRAN Legacy | 174 lines
48* and TT to predict the effects of precession-nutation. If UT1 is 49* used for both purposes, errors of order 100 microarcseconds 50* result.tSpectralIndex.cc http://casacore.googlecode.com/svn/trunk/ | C++ | 173 lines
56 AipsError); 57 AlwaysAssert(near(siModel.index(), 0.0), AipsError); 58 cout << "Passed the default constructor test" << endl; 60 AlwaysAssert(near(siModel.sample(f1), 1.0), AipsError); 61 AlwaysAssert(near(siModel.sample(f2), 1.0), AipsError); 62 71 Vector<Double> p = siPtr->parameters().copy(); 72 AlwaysAssert(near(p(0), 1.0), AipsError); 73 AlwaysAssert(near(siPtr->refFrequency().get("GHz").getValue(), 2.0), 112 AlwaysAssert(near(results(0), 0.5), AipsError); 113 AlwaysAssert(near(results(1), 1.0), AipsError); 114 AlwaysAssert(near(results(2), 2.0), AipsError); 122 AlwaysAssert(rec.isDefined("index"), AipsError); 123 AlwaysAssert(rec.isDefined("error"), AipsError); 124 String type;testing.rst git://github.com/fabpot/Silex.git | ReStructuredText | 222 lines
101 By default, the application behaves in the same way as when using it from a 102 browser. But when an error occurs, it is sometimes easier to get raw 103 exceptions instead of HTML pages. It is rather simple if you tweak the 188 colors="true" 189 convertErrorsToExceptions="true" 190 convertNoticesToExceptions="true"nand_bch.c git://github.com/mirrors/linux-2.6.git | C | 235 lines
34 * @bch: BCH control structure 35 * @errloc: error location array 36 * @eccmask: XOR ecc mask, allows erased pages to be decoded as valid 68/** 69 * nand_bch_correct_data - [NAND Interface] Detect and correct bit error(s) 70 * @mtd: MTD block structure 74 * 75 * Detect and correct bit errors for a data byte block 76 */ 89 if (errloc[i] < (chip->ecc.size*8)) 90 /* error is located in data, correct it */ 91 buf[errloc[i] >> 3] ^= (1 << (errloc[i] & 7)); 91 buf[errloc[i] >> 3] ^= (1 << (errloc[i] & 7)); 92 /* else error in ecc, no action needed */ 93SpellCheckPlugin.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 {JSONTokenizer.as git://github.com/mintdigital/hemlock.git | ActionScript | 547 lines
121 } else { 122 parseError( "Expecting 'true' but found " + possibleTrue ); 123 } 134 } else { 135 parseError( "Expecting 'false' but found " + possibleFalse ); 136 } 148 } else { 149 parseError( "Expecting 'null' but found " + possibleNull ); 150 } 167 // anything we expected 168 parseError( "Unexpected " + ch + " encountered" ); 169 } 180 * @return the JSONToken with the string value if a string could 181 * be read. Throws an error otherwise. 182 */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;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>pCreatePixmap.m git://anongit.freedesktop.org/git/xorg/test/xts.git/ | Objective C | 0 lines
172 default: 173 Log_Err("INTERNAL ERROR: test_type %d not one of GOOD(%d), BAD_LENGTH(%d), TOO_LONG(%d) or JUST_TOO_LONG(%d)\n", 174 test_type, GOOD, BAD_LENGTH, TOO_LONG, JUST_TOO_LONG); 183When a client sends a valid xname protocol request to the X server, 184then the X server does not send back an error, event or reply to the client. 185>>STRATEGY 188Send a valid xname protocol request to the X server. 189Verify that the X server does not send back an error, event or reply. 190Open a connection to the X server using reversed byte sex. 191Send a valid xname protocol request to the X server. 192Verify that the X server does not send back an error, event or reply. 193>>CODE 203contain the request, 204then the X server sends back a BadLength error to the client. 205>>STRATEGYclass.dbcachedquery.php https://code.google.com/p/evedev-kb/ | PHP | 469 lines
119 { 120 DBDebug::recordError("Database error: ".self::$dbconn->id()->error); 121 DBDebug::recordError("SQL: ".$this->sql); 122 } 123 throw new Exception( "SQL error (".self::$dbconn->id()->error ); 124 } 244 { 245 trigger_error('No suitable handler for query found. "'.$ta[0].'"',E_USER_NOTICE); 246 return false; 344 { 345 DBDebug::recordError("Database error: ".self::$dbconn->id()->error); 346 DBDebug::recordError("SQL: ".$this->sql); 347 } 348 throw new Exception( "SQL Execution error: " . self::$dbconn->id()->error . " Query: " . $this->sql ); 349 }c++defs.h git://github.com/plasmasim/sceptic3D.git | C Header | 274 lines
133 except that the C function rpl_func may have a slightly different 134 declaration. A cast is used to silence the "invalid conversion" error 135 that would otherwise occur. */ 176 except that the C function func may have a slightly different declaration. 177 A cast is used to silence the "invalid conversion" error that would 178 otherwise occur. */ 196 are used to silence the "cannot find a match" and "invalid conversion" 197 errors that would otherwise occur. */ 198#if defined __cplusplus && defined GNULIB_NAMESPACEsubqueries.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(); 193TmxTest.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
168 169 set_error_handler(array($this, 'errorHandlerIgnore')); 170 $adapter->setLocale('it'); 170 $adapter->setLocale('it'); 171 restore_error_handler(); 172 $this->assertEquals('it', $adapter->getLocale()); 250 /** 251 * Ignores a raised PHP error when in effect, but throws a flag to indicate an error occurred 252 * 259 */ 260 public function errorHandlerIgnore($errno, $errstr, $errfile, $errline, array $errcontext) 261 { 261 { 262 $this->_errorOccurred = true; 263 }Ibm.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
134 require_once 'Zend/Db/Adapter/Exception.php'; 135 $error = strpos($e->getMessage(), 'driver does not support that attribute'); 136 if ($error) {Displayname.html http://sardine.googlecode.com/svn/trunk/ | HTML | 324 lines
57 <A HREF="../../../../com/googlecode/sardine/model/Creationdate.html" title="class in com.googlecode.sardine.model"><B>PREV CLASS</B></A> 58 <A HREF="../../../../com/googlecode/sardine/model/Error.html" title="class in com.googlecode.sardine.model"><B>NEXT CLASS</B></A></FONT></TD> 59<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 290 <A HREF="../../../../com/googlecode/sardine/model/Creationdate.html" title="class in com.googlecode.sardine.model"><B>PREV CLASS</B></A> 291 <A HREF="../../../../com/googlecode/sardine/model/Error.html" title="class in com.googlecode.sardine.model"><B>NEXT CLASS</B></A></FONT></TD> 292<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">AppStd_headers.i http://pythonocc.googlecode.com/svn/trunk/ | Swig | 197 lines
39#include<CDF_MetaDataDriver.hxx> 40#include<CDF_MetaDataDriverError.hxx> 41#include<CDF_MetaDataDriverFactory.hxx>tests.cpp git://github.com/AdamSpitz/klein.git | C++ | 180 lines
25 printf("%s != %s\n", aMsg, bMsg); 26 error("assertion failure!"); 27 }GwtVersionsPreferencePage.java http://cypal-studio.googlecode.com/svn/trunk/ | Java | 204 lines
134 if (!file.exists()) { 135 MessageDialog.openError(getShell(), "Invalid directory", "The directory doesn't contain '" + Util.getGwtDevLibJarName() + "' file."); 136 } else { 149 Activator.logException(e); 150 MessageDialog.openError(getShell(), "Error Occured", "Could not determine the GWT version."); 151 } catch (Exception e) { 152 Activator.logException(e); 153 MessageDialog.openError(getShell(), "Error Occured", "The '" + Util.getGwtDevLibJarName() + "' file seems to be corrupted"); 154 }Preloader.as http://flowplayer-core.googlecode.com/svn/ | ActionScript | 191 lines
46 var logConfig:LogConfiguration = new LogConfiguration(); 47 logConfig.level = "error"; 48 logConfig.filter = "org.flowplayer.view.Preloader"; 149 log("Launcher instantiated " + _app); 150 } catch (e:Error) { 151 log("error instantiating Launcher " + e + ": " + e.message);solo.rb git://github.com/opscode/chef.git | Ruby | 220 lines
39 :long => "--log_level LEVEL", 40 :description => "Set the log level (debug, info, warn, error, fatal)", 41 :proc => lambda { |l| l.to_sym } 139 end 140 rescue SocketError => error 141 Chef::Application.fatal!("I cannot connect to #{Chef::Config[:json_attribs]}", 2) 141 Chef::Application.fatal!("I cannot connect to #{Chef::Config[:json_attribs]}", 2) 142 rescue Errno::ENOENT => error 143 Chef::Application.fatal!("I cannot find #{Chef::Config[:json_attribs]}", 2) 146 rescue Exception => error 147 Chef::Application.fatal!("Got an unexpected error reading #{Chef::Config[:json_attribs]}: #{error.message}", 2) 148 end 152 json_io.close unless json_io.closed? 153 rescue JSON::ParserError => error 154 Chef::Application.fatal!("Could not parse the provided JSON file (#{Chef::Config[:json_attribs]})!: " + error.message, 2)distribution_construction.cpp http://hadesmem.googlecode.com/svn/trunk/ | C++ | 0 lines
117 using boost::math::beta; 118 beta mybetad0(1, 0.5); // Error beta is a math FUNCTION! 119 119 120 Which produces the error messages: 121 122 [pre 123 error C2146: syntax error : missing ';' before identifier 'mybetad0' 124 warning C4551: function call missing argument list 124 warning C4551: function call missing argument list 125 error C3861: 'mybetad0': identifier not found 126 ] 170 Note that default constructor arguments are only provided for some distributions. 171 So if you wrongly assume a default argument you will get an error message, for example: 172DriverSTL_W_SMDS_Mesh.cpp http://pythonocc.googlecode.com/svn/trunk/ | C++ | 264 lines
59 if ( !myMesh ) { 60 fprintf(stderr, ">> ERROR : Mesh is null \n"); 61 return DRS_FAIL;PearLogListener.php git://github.com/alexgorbatchev/SyntaxHighlighter.git | PHP | 0 lines
125 /** 126 * Logs whether the build succeeded or failed, and any errors that 127 * occured during the build. Also outputs the total build-time. 132 public function buildFinished(BuildEvent $event) { 133 $error = $event->getException(); 134 if ($error === null) { 136 } else { 137 $msg = "Build failed. [reason: " . $error->getMessage() ."]"; 138 }posix_api.cpp http://hadesmem.googlecode.com/svn/trunk/ | C++ | 0 lines
40const char* names[] = { 41 "REG_NOERROR", 42 "REG_NOMATCH", 127 expression->re_nsub = static_cast<c_regex_type*>(expression->guts)->mark_count() - 1; 128 result = static_cast<c_regex_type*>(expression->guts)->error_code(); 129#ifndef BOOST_NO_EXCEPTIONS 130 } 131 catch(const boost::regex_error& be) 132 { 192 if((e) && (e->re_magic == magic_value)) 193 p = static_cast<c_regex_type*>(e->guts)->get_traits().error_string(static_cast< ::boost::regex_constants::error_type>(code)); 194 else 195 { 196 p = re_detail::get_default_error_string(static_cast< ::boost::regex_constants::error_type>(code)); 197 }CSLib_dependencies.i http://pythonocc.googlecode.com/svn/trunk/ | Swig | 195 lines
27#include <Handle_Standard_AbortiveTransaction.hxx> 28#include <Handle_Standard_ConstructionError.hxx> 29#include <Handle_Standard_DimensionError.hxx> 31#include <Handle_Standard_DivideByZero.hxx> 32#include <Handle_Standard_DomainError.hxx> 33#include <Handle_Standard_Failure.hxx> 34#include <Handle_Standard_ImmutableObject.hxx> 35#include <Handle_Standard_LicenseError.hxx> 36#include <Handle_Standard_LicenseNotFound.hxx> 43#include <Handle_Standard_NullValue.hxx> 44#include <Handle_Standard_NumericError.hxx> 45#include <Handle_Standard_OutOfMemory.hxx> 48#include <Handle_Standard_Persistent.hxx> 49#include <Handle_Standard_ProgramError.hxx> 50#include <Handle_Standard_RangeError.hxx>pipe.c git://github.com/joyent/libuv.git | C | 257 lines
60 if (handle->io_watcher.fd >= 0) { 61 uv__set_artificial_error(handle->loop, UV_EINVAL); 62 goto out; 66 if ((pipe_fname = strdup(name)) == NULL) { 67 uv__set_sys_error(handle->loop, ENOMEM); 68 goto out; 74 if ((sockfd = uv__socket(AF_UNIX, SOCK_STREAM, 0)) == -1) { 75 uv__set_sys_error(handle->loop, errno); 76 goto out; 84 /* Convert ENOENT to EACCES for compatibility with Windows. */ 85 uv__set_sys_error(handle->loop, (errno == ENOENT) ? EACCES : errno); 86 goto out; 95out: 96 /* Clean up on error. */ 97 if (status) {javaw.py https://code.google.com/p/waf/ | Python | 475 lines
29import os, re, tempfile, shutil 30from waflib import TaskGen, Task, Utils, Options, Build, Errors, Node, Logs 31from waflib.Configure import conf 229 except Exception: 230 raise Errors.WafError('Could not find the basedir %r for %r' % (self.basedir, self)) 231 return super(jar_create, self).runnable_status()medici.erl git://github.com/evanmiller/ChicagoBoss.git | Erlang | 0 lines
44 45%% @spec start() -> {ok, Pid} | Error:term() 46%% 50 51%% @spec start(StartupOptions::proplist()) -> {ok, Pid} | Error:term() 52%% 276 ?assert(?MODULE:get(<<"putkeep1">>) =:= <<"foo">>), 277 ?assertMatch({error, _}, ?MODULE:putkeep(<<"putkeep1">>, <<"bar">>)), 278 ?assert(?MODULE:get(<<"putkeep1">>) =:= <<"foo">>), % no effect if key already exists before putkeep 301 ok = ?MODULE:out(<<"out1">>), 302 ?assertMatch({error, _}, ?MODULE:get(<<"out1">>)). 303 322 ok = ?MODULE:vanish(), 323 ?assertMatch({error, _}, ?MODULE:get(<<"vanish1">>)). 324sneeze http://casacore.googlecode.com/svn/trunk/ | Shell | 515 lines
56# 0: success 57# 1: initialization error 58# 2: error rebuilding the systemtests.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>FindPCHSupport.cmake git://github.com/ProjectSkyfire/SkyFireEMU.git | CMake | 334 lines
196 IF(NOT CMAKE_BUILD_TYPE) 197 MESSAGE(FATAL_ERROR 198 "This is the ADD_PRECOMPILED_HEADER macro. "ctor.impure.lisp git://github.com/akovalenko/sbcl-win32-threads.git | Lisp | 305 lines
30 (declare (ignore initargs)) 31 (error "Called U-I-F-R-C on ~A" object)) 32 52 (declare (ignore initargs)) 53 (error "Called U-I-F-R-C on ~A" object)) 54 76 (declare (ignore initargs)) 77 (error "Called U-I-F-R-C on ~A" object)) 78 148 (unless (consp (cdr cache)) 149 (error "oops, wanted list cache, got: ~S" cache)) 150 (unless (= count (length (cdr cache))) 150 (unless (= count (length (cdr cache))) 151 (error "oops, wanted ~S elts in cache, got: ~S" count cache))) 152 (tgit.py https://bitbucket.org/mirror/mercurial/ | Python | 343 lines
120 if rev == hex(nullid): 121 raise IOError 122 self.catfilepipe[0].write(rev+'\n') 136 if rev == hex(nullid): 137 raise IOError 138 if name == '.hgsub': 272 line = line.strip() 273 if line.startswith("error:") or line.startswith("fatal:"): 274 raise util.Abort(_('cannot read tags from %s') % self.path)Messaging.js http://transit-widget-tools.googlecode.com/svn/trunk/ | JavaScript | 397 lines
216 * 217 * alert("send message failed, error code: "+errCode);<br> 218 * 221 * @param {Message} msg the message sending failed 222 * @param {String} errcode possible values maybe: "1: No networking", "2: Unable to establish network connection", "3: Incompatible payload", "4: Unknown error". 223 * 273 * Callback method to invoke when Messaging.findMessages completes. <br> 274 * Called asynchronously when the message send to the recipient failed due to mail format error or 275 * mail/smsc server rejected or network error.nsXPCOM.h https://hg01.codeplex.com/kmbrasil | C Header | 0 lines
115 * @return NS_OK for success; 116 * NS_ERROR_NOT_INITIALIZED if static globals were not initialized, 117 * which can happen if XPCOM is reloaded, but did not completly 117 * which can happen if XPCOM is reloaded, but did not completly 118 * shutdown. Other error codes indicate a failure during 119 * initialisation. 172 * @return NS_OK for success; 173 * NS_ERROR_NOT_INITIALIZED if static globals were not initialized, 174 * which can happen if XPCOM is reloaded, but did not completly 174 * which can happen if XPCOM is reloaded, but did not completly 175 * shutdown. Other error codes indicate a failure during 176 * initialisation. 262 * location. Relative paths will be treated as an 263 * error (NS_ERROR_FILE_UNRECOGNIZED_PATH). 264 * |NS_NewNativeLocalFile|'s path must be in thecSQLUtils.pas https://fundementals.svn.sourceforge.net/svnroot/fundementals | Pascal | 462 lines
211{ } 212{ SQL error } 213{ } 214type 215 ESqlError = class(Exception); 216canvas.js git://github.com/mbebenita/Broadway.git | JavaScript | 0 lines
55 } else { 56 error("Unknown shader type: " + script.type); 57 return; 67 if (!gl.getShaderParameter(this.shader, gl.COMPILE_STATUS)) { 68 error("An error occurred compiling the shaders: " + gl.getShaderInfoLog(this.shader)); 69 return; 288 }, 289 checkLastError: function (operation) { 290 var err = this.gl.getError(); 290 var err = this.gl.getError(); 291 if (err != this.gl.NO_ERROR) { 292 var name = this.glNames[err]; 295 if (operation) { 296 console.log("WebGL Error: %s, %s", operation, name); 297 } else {cpu_gov.adb git://github.com/darkestkhan/CPU_Temp_Governor.git | Ada | 193 lines
66 when Core_Meltdown => Ada.Text_IO.Put_Line ("Frequency of " & This & " caused core meltdown."); 67 raise Program_Error; 68 end Freq_Step_Value;server.js git://github.com/bard/mozrepl.git | JavaScript | 225 lines
104 } catch(e) { 105 log('E, MOZREPL : Error : ' + e); 106 } 120 } catch(e) { 121 log('E, MOZREPL : Error : ' + e); 122 }XTEA.java http://h2database.googlecode.com/svn/trunk/ | Java | 173 lines
52 if (len % ALIGN != 0) { 53 DbException.throwInternalError("unaligned len " + len); 54 } 64 if (len % ALIGN != 0) { 65 DbException.throwInternalError("unaligned len " + len); 66 }reg_util.erl git://github.com/2600hz/whistle.git | Erlang | 173 lines
39 40-spec lookup_registration/2 :: (Realm, Username) -> {'ok', json_object()} | {'error', 'not_found'} when 41 Realm :: binary(), 115 case wh_cache:fetch_local(Cache, CacheKey) of 116 {'error', not_found} -> 117 {'ok', UserJObj} = get_auth_user(Name, Realm), 125 126-spec get_auth_user/2 :: (Name, Realm) -> {'ok', json_object()} | {'error', 'no_user_found'} when 127 Name :: binary(), 130 case whapps_util:get_account_by_realm(Realm) of 131 {'error', E} -> 132 ?LOG("failed to lookup realm ~s in accounts: ~p", [Realm, E]), 140 141-spec get_auth_user_in_agg/2 :: (Name, Realm) -> {'ok', json_object()} | {'error', 'no_user_found'} when 142 Name :: binary(),tramp-mips.c git://github.com/mono/mono.git | C | 452 lines
100 } 101 g_print("error: bad patch at 0x%08x\n", code); 102 g_assert_not_reached ();log1p.hpp http://hadesmem.googlecode.com/svn/trunk/ | C++ Header | 0 lines
18#include <boost/math/tools/rational.hpp> 19#include <boost/math/policies/error_handling.hpp> 20#include <boost/math/special_functions/math_fwd.hpp> 80 if(x < -1) 81 return policies::raise_domain_error<T>( 82 function, "log1p(x) requires x > -1, but got x = %1%.", x, pol); 83 if(x == -1) 84 return -policies::raise_overflow_error<T>( 85 function, 0, pol); 113 if(x < -1) 114 return policies::raise_domain_error<T>( 115 function, "log1p(x) requires x > -1, but got x = %1%.", x, pol); 116 if(x == -1) 117 return -policies::raise_overflow_error<T>( 118 function, 0, pol);RWStepDimTol_headers.i http://pythonocc.googlecode.com/svn/trunk/ | Swig | 343 lines
74#include<Handle_Interface_IntVal.hxx> 75#include<Handle_Interface_InterfaceError.hxx> 76#include<Handle_Interface_InterfaceMismatch.hxx>ParserUtils.hs git://github.com/bjpop/language-python.git | Haskell | 295 lines
17import Data.Maybe (isJust) 18import Control.Monad.Error.Class (throwError) 19import Language.Python.Common.AST as AST 35parseError :: Token -> P a 36parseError = throwError . UnexpectedToken 37 79 | length subs == 1 = subscriptToExpr $ head subs 80 | otherwise = error "subscriptsToExpr: empty subscript list" 81 233 check state [] = return () 234 check 5 (arg:_) = spanError arg "an **argument must not be followed by any other arguments" 235 check state (arg:rest) = do 292spanError :: Span a => a -> String -> P () 293spanError x str = throwError $ StrError $ unwords [prettyText $ getSpan x, str] 294-}xmlrpc_client.ml git://github.com/xen-org/xen-api-libs.git | OCaml | 319 lines
133 else begin 134 StunnelDebug.error "get_reusable_stunnel: fresh stunnel failed reusable check; delaying %.2f seconds before reconnecting to %s:%d (attempt %d / %d)" delay host port !attempt_number max_attempts; 135 Thread.delay delay; 138 with e -> 139 StunnelDebug.error "get_reusable_stunnel: fresh stunnel connection failed with exception: %s: delaying %.2f seconds before reconnecting to %s:%d (attempt %d / %d)" (Printexc.to_string e) delay host port !attempt_number max_attempts; 140 Thread.delay delay; 146 | None -> 147 StunnelDebug.error "get_reusable_stunnel: failed to acquire a working stunnel to connect to %s:%d" host port; 148 raise Stunnel_connection_failed 260 Http_client.rpc s request (fun response s -> f (response, s)) 261 with Unix.Unix_error(Unix.ECONNRESET, _, _) -> raise Connection_reset 262 301 with 302 | Unix.Unix_error(Unix.ECONNRESET, _, _) -> raise Connection_reset 303details.php http://lansuite.googlecode.com/svn/trunk/ | PHP | 226 lines
11 12if (!$tournament["tournamentid"]) $func->error(t('Das ausgewählte Turnier existiert nicht'), "index.php?mod=tournament2"); 13else { 88 if ($tournament['status'] == "locked") $status = t('Anmeldung geschlossen'); 89 if ($tournament['status'] == "closed") $status = "<div class=\"tbl_error\">".t('Turnier beendet')."</div>"; 90 if ($tournament['status'] == "process") $status = "<div class=\"tbl_error\">".t('Partien werden gespielt')."</div>"; 117 118 $dsp->AddDoubleRow(t('Coin-Kosten'), "<div class=\"tbl_error\">". str_replace("%IS%", ($cfg['t_coins'] - $team_coin['t_coins'] - $member_coin['t_coins']), str_replace("%COST%", $tournament['coins'], $coin_out)) ."</div>"); 119 } 127 128 ($tournament["defwin_on_time_exceed"] == "1")? $defwin_warning = "<div class=\"tbl_error\">".t('ACHTUNG: Bei Zeitüberschreitung wird das Ergebnis automatisch gelost!')."</div> ".t('Wir bitten euch daher die Spiele direkt zu beginnen und das Ergebnis umgehend zu melden!')."" : $defwin_warning = ""; 129 $dsp->AddFieldsetStart(t('Zeiten') . $defwin_warning); 169 } 170/* // Disquallifiy droped, due to errors 171 if ($auth["type"] > 1 and $tournament['status'] == "process") {multi.c git://github.com/antirez/redis.git | C | 374 lines
81/* Flag the transacation as DIRTY_EXEC so that EXEC will fail. 82 * Should be called every time there is an error while queueing a command. */ 83void flagTransaction(client *c) { 89 if (c->flags & CLIENT_MULTI) { 90 addReplyError(c,"MULTI calls can not be nested"); 91 return; 98 if (!(c->flags & CLIENT_MULTI)) { 99 addReplyError(c,"DISCARD without MULTI"); 100 return; 126 if (!(c->flags & CLIENT_MULTI)) { 127 addReplyError(c,"EXEC without MULTI"); 128 return; 132 * 1) Some WATCHed key was touched. 133 * 2) There was a previous error while queueing commands. 134 * A failed EXEC in the first case returns a multi bulk nil objectNotFoundTest.java http://mobicents.googlecode.com/svn/trunk/ | Java | 303 lines
22 23package org.openxdm.xcap.client.test.error; 24 37import org.openxdm.xcap.client.test.AbstractXDMJunitOldClientTest; 38import org.openxdm.xcap.common.error.NotFoundException; 39import org.openxdm.xcap.common.key.UserAttributeUriKey;nsIDOMWindow.h http://firefox-mac-pdf.googlecode.com/svn/trunk/ | C Header | 357 lines
92 * Set/Get the document scale factor as a multiplier on the default 93 * size. When setting this attribute, a NS_ERROR_NOT_IMPLEMENTED 94 * error may be returned by implementations not supporting 203#define NS_FORWARD_SAFE_NSIDOMWINDOW(_to) \ 204 NS_SCRIPTABLE NS_IMETHOD GetDocument(nsIDOMDocument * *aDocument) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDocument(aDocument); } \ 205 NS_SCRIPTABLE NS_IMETHOD GetParent(nsIDOMWindow * *aParent) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParent(aParent); } \ 205 NS_SCRIPTABLE NS_IMETHOD GetParent(nsIDOMWindow * *aParent) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParent(aParent); } \ 206 NS_SCRIPTABLE NS_IMETHOD GetTop(nsIDOMWindow * *aTop) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTop(aTop); } \ 207 NS_SCRIPTABLE NS_IMETHOD GetScrollbars(nsIDOMBarProp * *aScrollbars) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScrollbars(aScrollbars); } \ 207 NS_SCRIPTABLE NS_IMETHOD GetScrollbars(nsIDOMBarProp * *aScrollbars) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScrollbars(aScrollbars); } \ 208 NS_IMETHOD GetFrames(nsIDOMWindowCollection * *aFrames) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFrames(aFrames); } \ 209 NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \ 209 NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \ 210 NS_SCRIPTABLE NS_IMETHOD SetName(const nsAString & aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetName(aName); } \ 211 NS_IMETHOD GetTextZoom(float *aTextZoom) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTextZoom(aTextZoom); } \unzip.h git://github.com/joyent/node.git | C++ Header | 357 lines
75#define UNZ_EOF (0) 76#define UNZ_PARAMERROR (-102) 77#define UNZ_BADZIPFILE (-103) 77#define UNZ_BADZIPFILE (-103) 78#define UNZ_INTERNALERROR (-104) 79#define UNZ_CRCERROR (-105) 175 uSizeBuf is the size of the szComment buffer. 176 return the number of byte copied or an error code <0 177*/ 256 Open for reading data the current file in the zipfile. 257 If there is no error, the return value is UNZ_OK. 258*/ 312 return <0 with error code if there is an error 313 (UNZ_ERRNO for IO error, or zLib error for uncompress error) 314*/DataListAdapter.cs https://code.google.com/p/appleseedapp/ | C# | 353 lines
50 51 Debug.Assert(this.extender != null, "CSS Friendly adapters internal error", "Null extender instance"); 52 return this.extender;ToolTipsManager.as http://chinesechessjam.googlecode.com/svn/trunk/ | ActionScript | 377 lines
25 * <br> 26 * When the showErrorTip(target:Object, error:String) function is called, if the error String is null and 27 * the target is a UIComponent then the UIComponent.errorString property is used in the error tip. 174 * Called when the validator fires an invalid event. 175 * Shows the error tooltip with the ValidatorResultEvent.message as the error String. 176 */ 283 } 284 } else if ((error != null) && (error != errorTip.text)) { 285 // update the error tooltip text 314 public static function showErrorTip(target:Object, error:String = null):void { 315 var errorTip:IToolTip = createErrorTip(target, error); 316 if (errorTip) { 357 /** 358 * Shows all the error tips - doesn't check to see if an error string is set! 359 */rep-patterns.rkt git://github.com/smorin/f4f.arc.git | Racket | 391 lines
217 (cond [(pred x) (accessor x)] ... 218 [else (raise-type-error 'pattern-attrs "pattern" x)])))])) 219 (mk-get-attrs pat:any pat:var pat:datum pat:literal pat:action pat:headAnXmlResultMessageBuilder.java http://instinct.googlecode.com/svn/trunk/ | Java | 231 lines
123 final Date endTime = nowIgnoringMilliseconds(); 124 expect.that(evaluateXpath(document, "/testsuite/@errors")).isEqualTo("0"); 125 expect.that(evaluateXpath(document, "/testsuite/@failures")).isEqualTo("0"); 142 final Date endTime = nowIgnoringMilliseconds(); 143 expect.that(evaluateXpath(document, "/testsuite/@errors")).isEqualTo("0"); 144 expect.that(evaluateXpath(document, "/testsuite/@failures")).isEqualTo("1"); 177 final Date endTime = nowIgnoringMilliseconds(); 178 expect.that(evaluateXpath(document, "/testsuite/@errors")).isEqualTo("0"); 179 expect.that(evaluateXpath(document, "/testsuite/@failures")).isEqualTo("0");SystemDiagnosticsTraceListenerDataManageabilityProviderFixture.cs https://entlib.svn.codeplex.com/svn | C# | 238 lines
73 configurationObject.TraceOutputOptions = TraceOptions.None; 74 configurationObject.Filter = SourceLevels.Error; 75 80 Assert.AreEqual(TraceOptions.None, configurationObject.TraceOutputOptions); 81 Assert.AreEqual(SourceLevels.Error, configurationObject.Filter); 82 } 90 configurationObject.TraceOutputOptions = TraceOptions.None; 91 configurationObject.Filter = SourceLevels.Error; 92 114 configurationObject.TraceOutputOptions = TraceOptions.None; 115 configurationObject.Filter = SourceLevels.Error; 116 138 configurationObject.TraceOutputOptions = TraceOptions.None; 139 configurationObject.Filter = SourceLevels.Error; 140residuals.lrm.s git://github.com/harrelfe/rms.git | Assembly | 377 lines
52 dimnames=list(if(k > 1) lev2, 53 c("Sum of squared errors", "Expected value|H0", 54 "SD", "Z", "P")))TypeBinaryExpression.cs git://github.com/mono/mono.git | C# | 212 lines
191 ContractUtils.RequiresNotNull(type, "type"); 192 if (type.IsByRef) throw Error.TypeMustNotBeByRef(); 193 205 ContractUtils.RequiresNotNull(type, "type"); 206 if (type.IsByRef) throw Error.TypeMustNotBeByRef(); 207RubyModule_Methods.java git://github.com/rhomobile/rhodes.git | Java | 193 lines
81 protected RubyValue run(RubyValue receiver, RubyArray args, RubyBlock block) { 82 throw new Error("we overided invoke, so this method should never be called");} 83}); 141 protected RubyValue run(RubyValue receiver, RubyArray args, RubyBlock block) { 142 throw new Error("we overided invoke, so this method should never be called");} 143});win32-constants.lisp git://github.com/sbcl/sbcl.git | Lisp | 245 lines
29 (:integer so-type "SO_TYPE") ;get only 30 (:integer so-error "SO_ERROR") ;get only (also clears) 31 (:integer so-dontroute "SO_DONTROUTE" 50 (:integer TRY-AGAIN "TRY_AGAIN" "Non-Authoritative Host not found, or SERVERFAIL.") 51 (:integer NO-RECOVERY "NO_RECOVERY" "Non recoverable errors, FORMERR, REFUSED, NOTIMP.") 52 (:integer NO-DATA "NO_DATA" "Valid name, no data record of requested type.") 63 64 ;; errors 65 (:integer EADDRINUSE "WSAEADDRINUSE") 237 238 (:function wsa-get-last-error ("WSAGetLastError" int)) 239 (:integer IPPROTO_IP "IPPROTO_IP")DataMapper.cs git://github.com/mono/mono.git | C# | 215 lines
120 if (string.IsNullOrEmpty(joinID)) 121 throw Error.BadArgument("S0108: Association name is required to ensure join uniqueness"); 122NativeMethods.vb https://cfx.svn.codeplex.com/svn | Visual Basic | 378 lines
284 ''' specified service control manager database. If the function fails, 285 ''' the return value is an invalid handle. To get extended error 286 ''' information, call GetLastError. 287 ''' </returns> 288 <DllImport("advapi32.dll", CharSet:=CharSet.Auto, SetLastError:=True)> _ 289 Public Shared Function OpenSCManager( _ 308 ''' specified service. If the function fails, the return value is an 309 ''' invalid handle. To get extended error information, call GetLastError. 310 ''' </returns> 310 ''' </returns> 311 <DllImport("advapi32.dll", CharSet:=CharSet.Auto, SetLastError:=True)> _ 312 Public Shared Function OpenService( _ 325 ''' <param name="lpInfo"></param> 326 <DllImport("advapi32.dll", CharSet:=CharSet.Auto, SetLastError:=True)> _ 327 Public Shared Function ChangeServiceConfig2( _Solution1.cpp https://cfx.svn.codeplex.com/svn | C++ | 253 lines
86// to hold the directory name, the function returns 0 and sets the last 87// error to ERROR_INSUFFICIENT_BUFFER. If the function fails, the return 88// value is 0 (zero). To get extended error information, call 88// value is 0 (zero). To get extended error information, call 89// GetLastError. 90// 242 } 243 catch (_com_error &err) 244 { 244 { 245 wprintf(L"Excel throws the error: %s\n", err.ErrorMessage()); 246 wprintf(L"Description: %s\n", (LPCWSTR) err.Description());admin_login.php http://creative-portal.googlecode.com/svn/trunk/ | PHP | 220 lines
33 34$error = ""; 35$login = ""; 58 { 59 $error = $lang_global['nickname_empty']; 60 } 62 { 63 $error = $lang_global['password_empty']; 64 } 145 146$info = ( ! empty( $error ) ) ? '<div class="error">' . $error . '</div>' : '<div class="normal">' . $lang_global['logininfo'] . '</div>'; 147$size = @getimagesize( NV_ROOTDIR . '/images/' . $global_config['site_logo'] ); 175 176$xtpl->assign( 'LOGIN_ERROR_SECURITY', addslashes( sprintf( $lang_global['login_error_security'], NV_GFX_NUM ) ) ); 177MainForm.Designer.cs https://cfx.svn.codeplex.com/svn | C# | 213 lines
167 this.wbcSample.Name = "wbcSample"; 168 this.wbcSample.ScriptErrorsSuppressed = true; 169 this.wbcSample.Size = new System.Drawing.Size(824, 557);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" />