PageRenderTime 716ms queryTime 109ms sortTime 55ms getByIdsTime 81ms findMatchingLines 56ms

100+ results results for 'ERROR repo:ToadJamb/hg' (716 ms)

Not the results you expected?
__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      end
                    
                
nsISHistory.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 = 0
                    
                
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);
                    
                
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	}
                    
                
keys.rb git://github.com/jnunemaker/mongomapper.git | Ruby | 469 lines
                    
120            attrs['_type'] ? attrs['_type'].constantize : self
                    
121          rescue NameError
                    
122            self
                    
                
BshScriptEngine.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) {
                    
                
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*/
                    
                
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 {
                    
                
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                }
                    
                
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( "{" );
                    
                
XcmsAllocNamedColor.m git://anongit.freedesktop.org/git/xorg/test/xts.git/ | Objective C | 0 lines
                    
138 * Turn on buffering and buffer parameter information
                    
139 * in case an error occurs
                    
140 ******/
                    
145	message(fmtstr, fmt_lst, 0);
                    
146	(void)strcpy(fmtstr, "An error occurred during a call to %s\n\n");
                    
147	fmt_lst[0].typ_str = TestName;
                    
161                                                                  
                    
162	bufrdisp(display); /* buffer display struct info for error checking */
                    
163	                  
                    
179
                    
180	    first_error = 0;	/* no errors encountered yet */
                    
181/******
                    
186  	    errflg = 0;
                    
187	    XSetErrorHandler(signal_status);
                    
188            svc_ret_value = XcmsAllocNamedColor(
                    
                
libdivecomputer.c git://github.com/torvalds/subsurface.git | C | 482 lines
                    
24
                    
25static GError *error(const char *fmt, ...)
                    
26{
                    
27	va_list args;
                    
28	GError *error;
                    
29
                    
30	va_start(args, fmt);
                    
31	error = g_error_new_valist(
                    
32		g_quark_from_string("subsurface"),
                    
32		g_quark_from_string("subsurface"),
                    
33		DIVE_ERROR_PARSE, fmt, args);
                    
34	va_end(args);
                    
34	va_end(args);
                    
35	return error;
                    
36}
                    
                
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 {
                    
                
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, but
                    
                
GoogleReader.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()
                    
                
nsICmdLineHandler.h https://hg01.codeplex.com/kmbrasil | C Header | 0 lines
                    
30{ \
                    
31    if (!aDefaultArgs) return NS_ERROR_FAILURE; \
                    
32    *aDefaultArgs = ToNewUnicode(nsDependentCString(macro_default_args)); \
                    
37{ \
                    
38    if (!aChromeUrlForTask) return NS_ERROR_FAILURE; \
                    
39    *aChromeUrlForTask = PL_strdup(macro_chrome_url); \
                    
44{ \
                    
45    if (!aCommandLineArgument) return NS_ERROR_FAILURE; \
                    
46    *aCommandLineArgument = PL_strdup(macro_cmd_line_arg); \
                    
50{ \
                    
51    if (!aPrefNameForStartup) return NS_ERROR_FAILURE; \
                    
52    *aPrefNameForStartup = PL_strdup(macro_pref_name); \
                    
56{ \
                    
57    if (!aHelpText) return NS_ERROR_FAILURE; \
                    
58    *aHelpText = PL_strdup(macro_help_text); \
                    
                
MessageProcessor.java git://github.com/lmco/eurekastreams.git | Java | 337 lines
                    
153     * @throws MessagingException
                    
154     *             On error.
                    
155     * @throws IOException
                    
155     * @throws IOException
                    
156     *             On error.
                    
157     */
                    
264            // notify user on failure
                    
265            // Note: A response is only sent for errors processing the action (which could be due to missing content
                    
266            // from the message). This is because any errors encountered prior represent a bad sender or ill-formed
                    
280     * @throws MessagingException
                    
281     *             On error.
                    
282     */
                    
300     * @throws MessagingException
                    
301     *             On error.
                    
302     */
                    
                
lzma.js git://github.com/mrdoob/three.js.git | JavaScript | 511 lines
                    
505  if ( !decoder.decode(inStream, outStream, outSize) ){
                    
506    throw "Error in data stream";
                    
507  }
                    
                
ValueTypeConverter.cs https://CompositeC1.svn.codeplex.com/svn | C# | 355 lines
                    
48        {
                    
49            Exception conversionError;
                    
50            return TryConvert(value, targetType, out conversionError);
                    
53        /// <exclude />
                    
54        internal static object TryConvert(object value, Type targetType, out Exception conversionError)
                    
55        {
                    
55        {
                    
56            conversionError = null;
                    
57
                    
77
                    
78                object convertedValue = TryConvert(value, genericArgument, out conversionError);
                    
79
                    
142            {
                    
143                return TryConvertStringValue(stringValue, targetType, ref conversionError);
                    
144            }
                    
                
WtWebErrors.c http://aptcl.googlecode.com/svn/trunk/ | C | 542 lines
                    
427    if (Tcl_ListObjReplace(interp, w->web->errorStack,
                    
428        errorSetId, sets - errorSetId, 0, NULL) != TCL_OK) {
                    
429      ok = 0;
                    
466  if (useErrorInfo) {
                    
467    errorInfo = Tcl_GetVar2Ex(interp, "errorInfo", NULL, 0);
                    
468  }
                    
468  }
                    
469  if (!errorInfo || !Tcl_GetCharLength(errorInfo)) {
                    
470    errorInfo = Tcl_GetObjResult(interp);
                    
480
                    
481  if (!WtAddError(errorCode, errorInfo, interp, w)) {
                    
482    ok = 0;
                    
490
                    
491int WtAddError(Tcl_Obj *errorCode, Tcl_Obj *errorInfo, Tcl_Interp *interp,
                    
492    WtContext *w)
                    
                
umfpack_get_symbolic.h http://gkw.googlecode.com/svn/trunk/ | C Header | 340 lines
                    
167
                    
168    Returns UMFPACK_OK if successful, UMFPACK_ERROR_invalid_Symbolic_object
                    
169    if Symbolic is an invalid object.
                    
                
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)
                    
                
GSInterlace.cpp http://fop-miniscribus.googlecode.com/svn/trunk/ | C++ | 429 lines
                    
66    if (!wr) {
                    
67    QMessageBox::warning(0, qApp->tr("Error"),qApp->tr("Window Unable to open action file or dir  %1").arg(loc.toString()));
                    
68    }
                    
75    if (!r) {
                    
76    QMessageBox::warning(0, qApp->tr("Error"),qApp->tr("Linux Unable to open action file or dir  %1").arg(loc.toString()));
                    
77    }
                    
                
get_tv_info https://misterhouse.svn.sourceforge.net/svnroot/misterhouse | Perl | 365 lines
                    
157                                # Do this as quick a possible, so we can use File_Item watch in mh
                    
158    open (OUT1, ">$parms{outfile1}") or die "Error, could not open output file $parms{outfile1}: $!\n";
                    
159    open (OUT2, ">$parms{outfile2}") or die "Error, could not open output file $parms{outfile2}: $!\n";
                    
186    use DB_File;
                    
187    tie (%DBM,  'DB_File', $dbm_file,  O_RDWR|O_CREAT, 0666) or print "\nError, can not open dbm file $dbm_file: $!";
                    
188    tie (%DBM2, 'DB_File', $dbm_file2, O_RDWR|O_CREAT, 0666) or print "\nError, can not open dbm file $dbm_file2: $!";
                    
                
ftp.pm https://misterhouse.svn.sourceforge.net/svnroot/misterhouse | Perl | 395 lines
                    
45	my $scheme = $url->scheme;
                    
46	return HTTP::Response->new(&HTTP::Status::RC_INTERNAL_SERVER_ERROR,
                    
47		       "LWP::Protocol::ftp::request called for '$scheme'");
                    
59    if ($init_failed) {
                    
60	return HTTP::Response->new(&HTTP::Status::RC_INTERNAL_SERVER_ERROR,
                    
61				   $init_failed);
                    
85       $@ =~ s/^Net::FTP: //;
                    
86       return HTTP::Response->new(&HTTP::Status::RC_INTERNAL_SERVER_ERROR, $@);
                    
87    }
                    
171		if ($method ne 'HEAD') {
                    
172		    $response->code(&HTTP::Status::RC_INTERNAL_SERVER_ERROR);
                    
173		    $response->message("FTP close response: " . $ftp->code .
                    
                
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 &raquo; 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, [[]])
                    
129
                    
                
File.as http://buddypress-media.googlecode.com/svn/bp_media/trunk/ | ActionScript | 422 lines
                    
166			// Delegate upload IO errors
                    
167			file._fileRef.addEventListener(IOErrorEvent.IO_ERROR, function(e:IOErrorEvent):void {
                    
168				dispatchEvent(e);
                    
171			// Delegate secuirty errors
                    
172			file._fileRef.addEventListener(SecurityErrorEvent.SECURITY_ERROR, function(e:SecurityErrorEvent):void {
                    
173				dispatchEvent(e);
                    
263			// File load IO error
                    
264			this._fileRef.addEventListener(IOErrorEvent.IO_ERROR, function(e:Event):void {
                    
265				this.dispatchEvent(e);
                    
333			// Delegate upload IO errors
                    
334			urlStream.addEventListener(IOErrorEvent.IO_ERROR, function(e:IOErrorEvent):void {
                    
335				file._chunk = file._chunks; // Cancel upload of all remaining chunks
                    
339			// Delegate secuirty errors
                    
340			urlStream.addEventListener(SecurityErrorEvent.SECURITY_ERROR, function(e:SecurityErrorEvent):void {
                    
341				file._chunk = file._chunks; // Cancel upload of all remaining chunks
                    
                
MefXapModuleTypeLoader.cs https://prism.svn.codeplex.com/svn | C# | 309 lines
                    
75
                    
76        private void RaiseLoadModuleCompleted(ModuleInfo moduleInfo, Exception error)
                    
77        {
                    
77        {
                    
78            this.RaiseLoadModuleCompleted(new LoadModuleCompletedEventArgs(moduleInfo, error));
                    
79        }
                    
219            
                    
220            Exception error = e.Error;
                    
221            if (error == null)
                    
236                {
                    
237                    error = ex;
                    
238                }
                    
242            {
                    
243                this.RaiseLoadModuleCompleted(moduleInfo, error);
                    
244            }
                    
                
Graphic3d_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();
                    
                
fruchterman_reingold.hpp http://hadesmem.googlecode.com/svn/trunk/ | C++ Header | 0 lines
                    
12#ifndef BOOST_GRAPH_USE_MPI
                    
13#error "Parallel BGL files should not be included unless <boost/graph/use_mpi.hpp> has been included"
                    
14#endif
                    
                
nl.po.in git://git.savannah.gnu.org/gsasl.git | Autoconf | 300 lines
                    
24
                    
25#: src/error.c:46
                    
26msgid "Libgsasl success"
                    
28
                    
29#: src/error.c:47
                    
30msgid "SASL mechanism needs more data"
                    
32
                    
33#: src/error.c:48
                    
34msgid "Unknown SASL mechanism"
                    
36
                    
37#: src/error.c:50
                    
38msgid "SASL mechanism called too many times"
                    
40
                    
41#: src/error.c:52
                    
42msgid "SASL function needs larger buffer (internal error)"
                    
                
OWSExceptionReport.java http://geoforge.googlecode.com/svn/trunk/ | Java | 340 lines
                    
24 * report XML document. Exception reports typically contain one or more independent exceptions indicating an independent
                    
25 * error.
                    
26 * <p/>
                    
39    /**
                    
40     * Indicates the exception report's list of web service exceptions. Each exception indicates an independent error.
                    
41     * Initially assigned to a new <code>ArrayList</code>.
                    
119    /**
                    
120     * Indicates this exception report's list of web service exceptions. Each exception indicates an independent error.
                    
121     *
                    
131    /**
                    
132     * Specifies this exception report's list of web service exceptions. Each exception indicates an independent error.
                    
133     *
                    
                
Default.ascx http://pigeoncms.googlecode.com/svn/trunk/ | ASP.NET | 226 lines
                    
24    <h1><%=base.GetLabel("ModuleTitle", "Comments")%></h1>
                    
25    <asp:Label ID="LblErr" runat="server" Text="" CssClass="error"></asp:Label>
                    
26    <asp:Label ID="LblOk" runat="server" Text="" CssClass="success"></asp:Label>
                    
                
mapping.py https://code.google.com/p/mappa/ | Python | 369 lines
                    
70
                    
71    def handle_literal(self, handler, error_handler, subject, predicate_iri, value, datatype, language):
                    
72        """\
                    
74        """
                    
75        error_handler.reject_literal(self.name, value, datatype)
                    
76
                    
76
                    
77    def handle_object(self, handler, error_handler, subject, predicate_iri, obj, is_blank_node):
                    
78        """\
                    
80        """
                    
81        error_handler.reject_nonliteral(self.name, obj)
                    
82
                    
179
                    
180    def handle_object(self, handler, error_handler, subject, predicate_iri, obj, is_blank_node):
                    
181        handler.startAssociation()
                    
                
Patch.java http://mater.googlecode.com/svn/trunk/ | Java | 467 lines
                    
85		//System.out.print("ADD = "+ new Double((610 / e) )+" ; ");
                    
86		//MaterModel.pError("model.getMaxPopDensity = "+ model.getMaxPopDensity() + " model.getMinPopDensity = " + model.getMinPopDensity() + " model.getOverallMaxPopDensity = "+ model.getOverallMaxPopDensity() + " model.getOverallMinPopDensity = "+ model.getOverallMinPopDensity());
                    
87		//MaterModel.pError("**********************");
                    
87		//MaterModel.pError("**********************");
                    
88		//MaterModel.pError("elevation = "+ this.elevation + "elevation / MAX_E = " + this.elevation / MAX_E);
                    
89		//MaterModel.pError("RESULT: "+ e);
                    
90		/*if( e < 0 )
                    
91			MaterModel.pError("BUG: valor de capacidade de suporte de uma c?Šlula inferior a 0!!! elevation is "+this.elevation+ " and isWater "+this.water);*/
                    
92		return e;
                    
105		//System.out.print("ADD = "+ new Double((610 / e) )+" ; ");
                    
106		//MaterModel.pError("model.getMaxPopDensity = "+ model.getMaxPopDensity() + " model.getMinPopDensity = " + model.getMinPopDensity() + " model.getOverallMaxPopDensity = "+ model.getOverallMaxPopDensity() + " model.getOverallMinPopDensity = "+ model.getOverallMinPopDensity());
                    
107		//MaterModel.pError("**********************");
                    
107		//MaterModel.pError("**********************");
                    
108		//MaterModel.pError("elevation = "+ this.elevation + "elevation / MAX_E = " + this.elevation / MAX_E);
                    
109		//MaterModel.pError("RESULT: "+ e);
                    
                
packmime_ranvar.h http://uu-cope.googlecode.com/svn/trunk/ | C Header | 383 lines
                    
219  static const double RATE_SCALE2;  /* Gamma rate parameter of scale^2 */
                    
220  static const double V_ERROR;      /* variance of error */
                    
221};
                    
245  static const double RATE_SCALE2;  /* Gamma rate parameter of scale^2 */
                    
246  static const double V_ERROR;      /* variance of error */
                    
247};
                    
333  static const double RATE_SCALE2_B;  /* Gamma rate param of scale^2 */
                    
334  static const double V_ERROR_B;      /* variance of error */
                    
335
                    
354  static const double RATE_SCALE2_W;  /* Gamma rate param of scale^2 */
                    
355  static const double V_ERROR_W;      /* variance of error */
                    
356
                    
                
slp_database.h https://openslp.svn.sourceforge.net/svnroot/openslp | C++ Header | 217 lines
                    
90/*                                                                         */
                    
91/* Returns: zero on success. Non-zero on error                             */
                    
92/*=========================================================================*/
                    
137/*                                                                         */
                    
138/* Returns: Valid handle.  NULL on error.                                  */
                    
139/*                                                                         */
                    
                
Level0.cpp http://wowtbc.googlecode.com/svn/trunk/ | C++ | 497 lines
                    
242	{
                    
243		RedSystemMessage(m_session, "Internal error: Could not find create info.");
                    
244		return false;
                    
                
liquidwartex.c git://git.savannah.nongnu.org/liquidwar.git | C | 448 lines
                    
173      if (!FLAG_HELP)
                    
174	printf ("ERROR! Too few arguments.\n");
                    
175    }
                    
198	  if (!FLAG_HELP)
                    
199	    printf ("ERROR! Color number must be between 8 and 32");
                    
200	}
                    
207	      if (!FLAG_HELP)
                    
208		printf ("ERROR! Too few arguments.\n");
                    
209	    }
                    
232  if (!success)
                    
233    printf ("ERROR! Unable to read '%s'.\n", filename);
                    
234  return success;
                    
271    {
                    
272      printf ("ERROR! Texture is too small.\n");
                    
273      DST_W = DST_H = 1;
                    
                
prolog.py http://hagoth.googlecode.com/svn/trunk/ | Python | 384 lines
                    
172
                    
173        Raises ValueError if a mapping already exists or the key is not a var.
                    
174        """
                    
175        if not self.is_var(var):
                    
176            raise ValueError("Tried to insert non-var %s into map" % (var,))
                    
177        if var.name in self.vardict:
                    
177        if var.name in self.vardict:
                    
178            raise ValueError("%s is already in the mapping" % (var,))
                    
179
                    
190        if not self.is_var(var):
                    
191            raise ValueError("Got something other than a variable")
                    
192
                    
197        if not self.is_var(var):
                    
198            raise ValueError("Got something other than a variable")
                    
199
                    
                
Xmlable.hs http://hixay.googlecode.com/svn/trunk/ | Haskell | 324 lines
                    
33
                    
34newtype Errors = Errors { errors :: [(Int, String)] } deriving Eq
                    
35instance Monoid Errors where
                    
40        LT -> b
                    
41instance Error Errors where
                    
42    noMsg = mempty
                    
102
                    
103throwErrorX s = get >>= \xs -> throwError $ Errors $ case xs of
                    
104        [] -> [(-1, "There is not enough xml data")]
                    
105        ((n,x):_) -> [(n, s ++ " at " ++ show (map snd $ takeWhile ((==n) . fst) xs) ++ ". Position = " ++ show n)]
                    
106bindX m s = m `catchError` (throwError . Errors . map (second $ (s++) . (" -> "++)) . errors)
                    
107
                    
116        getEnv [(_, Attr n _)] = XdcAttr n; getEnv [(_, Val _)] = XdcVal; getEnv [(_, ElemB n _)] = XdcElem n []
                    
117        getEnv x =  error $ "Error in list parsing (getEnv). Param: " ++ show x
                    
118
                    
                
FileDatastore.tex https://code.google.com/p/opensees-websocket/ | LaTeX | 252 lines
                    
92these arrays. If the files could not be opened, or there is not enough
                    
93memory for the arrays an error message is printed and the program
                    
94is terminated. \\
                    
114the time of this last commit are the same. If they are different, an
                    
115error message is printed and $-1$ is returned. A check is then made to
                    
116see if the component base relations have been updated for this current domain
                    
122needed to be updated. A warning message and a negative number is
                    
123printed if an error occurs. \\
                    
124
                    
127The object first obtains from the Domain relation the information for
                    
128{\em commitTag}. If no information exists, an error message is printed
                    
129and a $-1$ is returned. A check is then made to see if the domain
                    
138with current time and load factor. A warning message and a negative
                    
139number is printed if an error occurs. \\
                    
140
                    
                
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&nbsp;throwable,
                    
128          int&nbsp;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>
                    
214
                    
                
HTMLParser.py git://github.com/aptana/Pydev.git | Python | 384 lines
                    
48
                    
49class HTMLParseError(Exception):
                    
50    """Exception raised for all parse errors."""
                    
113
                    
114    def error(self, message):
                    
115        raise HTMLParseError(message, self.getpos())
                    
165                    if end:
                    
166                        self.error("EOF in middle of construct")
                    
167                    break
                    
194                    if end and match.group() == rawdata[i:]:
                    
195                        self.error("EOF in middle of entity or char ref")
                    
196                    # incomplete
                    
276                offset = offset + len(self.__starttag_text)
                    
277            self.error("junk characters in start tag: %s"
                    
278                       % `rawdata[k:endpos][:20]`)
                    
                
DesTest.cs https://singularity.svn.codeplex.com/svn | C# | 309 lines
                    
76                if (Util.CompareArraySpans(message, 0, roundtrip_clear, 0, 8) != 0) {
                    
77                    Console.WriteLine("DES ERROR: DES implementation '{0}' FAILED an encrypt/decrypt roundtrip test.", des.GetType().Name);
                    
78                    Console.WriteLine("    key:                " + Util.ByteArrayToStringHex(key));
                    
                
ftcglyph.h http://libgdx.googlecode.com/svn/trunk/ | C++ Header | 330 lines
                    
223  /* can be used as @FTC_Cache_InitFunc */
                    
224  FT_LOCAL( FT_Error )
                    
225  FTC_GCache_Init( FTC_GCache  cache );
                    
254  /* convenience function; use it instead of FTC_Manager_Register_Cache */
                    
255  FT_LOCAL( FT_Error )
                    
256  FTC_GCache_New( FTC_Manager       manager,
                    
260#ifndef FTC_INLINE
                    
261  FT_LOCAL( FT_Error )
                    
262  FTC_GCache_Lookup( FTC_GCache   cache,
                    
280#define FTC_GCACHE_LOOKUP_CMP( cache, famcmp, nodecmp, hash,                \
                    
281                               gindex, query, node, error )                 \
                    
282  FT_BEGIN_STMNT                                                            \
                    
291    FTC_MRULIST_LOOKUP_CMP( &_gcache->families, _gquery, _fcompare,         \
                    
292                            _mrunode, error );                              \
                    
293    _gquery->family = FTC_FAMILY( _mrunode );                               \
                    
                
FileUtility.cs https://scsfcontrib.svn.codeplex.com/svn | C# | 379 lines
                    
114			{
                    
115				//  it is a unc path, so decorate the end with a back-slash (to correct misconfigurations, defend against trivial errors)
                    
116				return AppendTerminalBackslash( path );
                    
                
Features.java http://jjil.googlecode.com/svn/trunk/ | Java | 377 lines
                    
110                    Length = Delta.length();
                    
111                } catch (jjil.core.Error ex) {
                    
112                }
                    
168                        Length = Delta.length();
                    
169                    } catch (jjil.core.Error ex) {
                    
170                    }
                    
226                        Length = Delta.length();
                    
227                    } catch (jjil.core.Error ex) {
                    
228                    }
                    
                
cookie.php http://skygames.googlecode.com/svn/trunk/ | PHP | 485 lines
                    
184 * You must use this method before any output is sent to the browser.
                    
185 * Failure to do so will result in header already sent errors.
                    
186 *
                    
267 * You must use this method before any output is sent to the browser.
                    
268 * Failure to do so will result in header already sent errors.
                    
269 *
                    
299 * You must use this method before any output is sent to the browser.
                    
300 * Failure to do so will result in header already sent errors.
                    
301 *
                    
                
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;
                    
                
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);
                    
                
usertypes.c git://github.com/vrai/Fudge-C.git | C | 313 lines
                    
199
                    
200void fatalFudgeError ( FudgeStatus status, const char * context );
                    
201AddressDetails * constructAddressDetails ( AddressStatus status,
                    
218    if ( ( status = Fudge_init ( ) ) )
                    
219        fatalFudgeError ( status, "Failed to initialise Fudge library" );
                    
220
                    
226                                                 FudgeType_coerceAddressDetails ) ) )
                    
227        fatalFudgeError ( status, "Failed to register AddressDetails type" );
                    
228
                    
234    if ( ( status = FudgeMsg_create ( &message ) ) )
                    
235        fatalFudgeError ( status, "Failed to create Fudge message" );
                    
236
                    
294{
                    
295    fprintf ( stderr, "FATAL ERROR: %s : %s\n", context, FudgeStatus_strerror ( status ) );
                    
296    exit ( 1 );
                    
                
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 a
                    
                
buildcfg.h https://bitbucket.org/knoss/pcmanager/ | C++ Header | 427 lines
                    
28#ifdef _WINDOWS_
                    
29#error "include buildcfg.h before include all other files"
                    
30#endif
                    
                
SynHighlighterManager.pas http://gedemin.googlecode.com/svn/trunk/ | Pascal | 480 lines
                    
71      component palette, it will function normally, except that when all is
                    
72      done, Delphi will disply small window with title "Error" and message
                    
73      "Operation aborted". Purely cosmetic issue for which there is no obvious
                    
                
OgreShadowCameraSetupPlaneOptimal.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		}
                    
                
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)
                    
                
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();
                    
                
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']);
                    
356
                    
                
XtGrabKey.m git://anongit.freedesktop.org/git/xorg/test/xts.git/ | Objective C | 0 lines
                    
93	XSendEvent(XtDisplay(labelw_msg), XtWindow(labelw_msg), False, KeyReleaseMask, &event);
                    
94	tet_infoline("ERROR: Timed out waiting for input");
                    
95	tet_result(TET_UNRESOLVED);
                    
133	 if (event.xkey.window != window) {
                    
134		sprintf(ebuf, "ERROR: Key did not go to correct widget");
                    
135		tet_infoline(ebuf);
                    
144	 if (event.xkey.x >= 0) {
                    
145		sprintf(ebuf, "ERROR: KeyRelease was not left of window");
                    
146		tet_infoline(ebuf);
                    
195	XChangeKeyboardControl(XtDisplay(topLevel), KBAutoRepeatMode, &kbvalues);
                    
196	tet_infoline("PREP: Set up the XtToolkitError handler");
                    
197	app_ctext = XtWidgetToApplicationContext(topLevel);
                    
197	app_ctext = XtWidgetToApplicationContext(topLevel);
                    
198	XtAppSetErrorMsgHandler(app_ctext, xt_handler);
                    
199	tet_infoline("PREP: Set up widget tree of depth eight (8) return panedw widget");
                    
                
dedesql.class.php http://pj-photohost.googlecode.com/svn/trunk/ | PHP | 605 lines
                    
3{
                    
4	exit("Request Error!");
                    
5}
                    
248		{
                    
249			$this->DisplayError(mysql_error()." <br />Error sql: <font color='red'>".$this->queryString."</font>");
                    
250		}
                    
430	{
                    
431		$errorTrackFile = dirname(__FILE__).'/../data/mysql_error_trace.inc';
                    
432		if( file_exists(dirname(__FILE__).'/../data/mysql_error_trace.php') )
                    
445		
                    
446		$savemsg = 'Page: '.$this->GetCurUrl()."\r\nError: ".$msg;
                    
447		//??MySql????
                    
596		fputs(fopen($log_file,'a+'),"$userIP||$getUrl||$db_string||$error\r\n");
                    
597		exit("<font size='5' color='red'>Safe Alert: Request Error step 2!</font>");
                    
598	}
                    
                
I_sound.c https://doomlegacy.svn.sourceforge.net/svnroot/doomlegacy | C | 570 lines
                    
105    if(spl==NULL)
                    
106        I_Error("Raw2Sample : no more free mem");
                    
107    spl->bits = 8;
                    
344    {
                    
345        sprintf (err,"Sound init error : %s\n",allegro_error);
                    
346        CONS_Error (err);
                    
374 *  Loads a standard MIDI file from memory, returning a pointer to
                    
375 *  a MIDI structure, *  or NULL on error.
                    
376 *  It is the load_midi from Allegro modified to load it from memory
                    
529        {
                    
530            CONS_Printf("Cannot convert mus to mid, converterror :%d\n",e);
                    
531            return 0;
                    
                
TextTable.cs https://EffiProz.svn.codeplex.com/svn | C# | 439 lines
                    
175                // source and cache or have an empty source and null cache.
                    
176                throw Error.error(t, ErrorCode.TEXT_FILE, 0, new Object[] {
                    
177                t.Message, linenumber
                    
262            {
                    
263                throw Error.error(ErrorCode.TEXT_SOURCE_EXISTS, dataSourceNew);
                    
264            }
                    
302
                    
303            throw Error.error(ErrorCode.TEXT_TABLE_HEADER);
                    
304        }
                    
328            {
                    
329                throw Error.error(ErrorCode.TEXT_TABLE_UNKNOWN_DATA_SOURCE);
                    
330            }
                    
333            {
                    
334                throw Error.error(ErrorCode.DATA_IS_READONLY);
                    
335            }
                    
                
Handle.pm http://dwarvis.googlecode.com/svn/trunk/ | Perl | 566 lines
                    
85Wait until the filehandle is readable or writable (and return true) or
                    
86until an error condition happens (and return false).
                    
87
                    
                
util.py https://code.google.com/p/nubox/ | Python | 395 lines
                    
30        item_typecode = TYPE_TO_TYPECODE[item_type]
                    
31    except KeyError:
                    
32        item_typecode = OBJECT_TYPECODES[0]
                    
104            isatomic = False
                    
105    except TypeError:
                    
106        isiterable = False
                    
169    if len(slices) != len(shape):
                    
170        raise ValueError("number of slices must match shape")
                    
171    nd_indices = []
                    
223    if ln < 2:
                    
224        raise ValueError('at least 2 breakpoints required')
                    
225    breakids = []
                    
254#    if len(colors) != 240:
                    
255#        raise ValueError("Array has to be of length 240.")
                    
256#    init = ''
                    
                
s_account.lua http://mta-venux.googlecode.com/svn/trunk/ | Lua | 331 lines
                    
75				outputChatBox("Username or password is invalid! You only have "..(3-attempts).." attempts left!",thePlayer, 255,0,0 )
                    
76				--return outputDebugString("ERROR 1: Failed to retrieve account for user: ".. getPlayerName(thePlayer) .."   function: attemptLogin", 3)
                    
77			end
                    
86	if ( username ~= "" and password ~= "" ) then
                    
87		local success, error = exports.sql:query_free("INSERT INTO `accounts` VALUES('', '".. tostring(username) .."', '".. md5( tostring( password ) ) .."', '".. getPlayerSerial(thePlayer) .."', '0')")
                    
88			if ( error ) then
                    
88			if ( error ) then
                    
89				return outputDebugString( error )
                    
90			else
                    
109				if ( q == false ) then
                    
110						outputDebugString("Error: This player doesnt have any characters.", 3) -- output info message.
                    
111						outputChatBox("* You do not have any characters yet, please create one to play.", thePlayer, 180, 100, 0 )
                    
134	else
                    
135		return outputDebugString("ERROR 5: setupCharacterSelect could not be started, first IF failed.", 2)
                    
136	end
                    
                
libip6tc.c http://xpkit.googlecode.com/svn/trunk/xpkit/ | C | 443 lines
                    
5 * Chains go INPUT, FORWARD, OUTPUT then user chains.
                    
6 * Each user chain starts with an ERROR node.
                    
7 * Every chain ends with an unconditional jump: a RETURN for user chains,
                    
59
                    
60#define ERROR_TARGET		IP6T_ERROR_TARGET
                    
61#define NUMHOOKS		NF_IP6_NUMHOOKS
                    
93#define TC_COMMIT		ip6tc_commit
                    
94#define TC_STRERROR		ip6tc_strerror
                    
95
                    
201			printf("verdict=%u\n", pos);
                    
202	} else if (strcmp(t->u.user.name, IP6T_ERROR_TARGET) == 0)
                    
203		printf("error=`%s'\n", t->data);
                    
435
                    
436	/* Final entry must be error node */
                    
437	assert(strcmp(GET_TARGET(index2entry(h, h->new_number-1))
                    
                
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);
                    
403
                    
                
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";
                    
32
                    
                
nsIController.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}
                    
                
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 */
                    
262
                    
                
all-index-J.html http://gmaps-utility-library-flash.googlecode.com/svn/trunk/ | HTML | 134 lines
                    
71<tr>
                    
72<td colspan="2" class="idxrow"><a onclick="javascript:loadClassListFrame('com/google/maps/extras/arcgislink/json/class-list.html');" href="com/google/maps/extras/arcgislink/json/JSONParseError.html">JSONParseError</a> &mdash; 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) &mdash; 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}
                    
                
hosts.py git://github.com/openstack/nova.git | Python | 316 lines
                    
156            result = self.api.set_host_maintenance(context, host_name, mode)
                    
157        except NotImplementedError:
                    
158            msg = _("Virt driver does not implement host maintenance mode.")
                    
180                    enabled=enabled)
                    
181        except NotImplementedError:
                    
182            msg = _("Virt driver does not implement host disabled status.")
                    
198                    action=action)
                    
199        except NotImplementedError:
                    
200            msg = _("Virt driver does not implement host power management.")
                    
                
TerranTest.cpp http://bwapi.googlecode.com/svn/ | C++ | 201 lines
                    
56  this->addTestCase(new BuildTest(UnitTypes::Terran_Academy));
                    
57//  Lan-low latency makes it to here without error
                    
58  this->addTestCase(new CancelTrainTest(UnitTypes::Terran_Marine,UnitTypes::Terran_Medic,UnitTypes::Terran_Firebat));
                    
                
hosts.c http://snake-os.googlecode.com/svn/trunk/ | C | 537 lines
                    
61 *
                    
62 *	Returns zero if unsuccessful or an error if the requested
                    
63 *	transition is illegal.
                    
209	error = device_add(&shost->shost_gendev);
                    
210	if (error)
                    
211		goto out;
                    
252 out:
                    
253	return error;
                    
254}
                    
300            !sht->eh_host_reset_handler) {
                    
301		printk(KERN_ERR "ERROR: SCSI host `%s' has no error handling\n"
                    
302				"ERROR: This is not a safe way to run your "
                    
303				        "SCSI host\n"
                    
304				"ERROR: The error handling must be added to "
                    
305				"this driver\n", sht->proc_name);
                    
                
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		}
                    
                
vc71.mak http://hadesmem.googlecode.com/svn/trunk/ | Makefile | 0 lines
                    
38!IF "$(MSVCDIR)" == ""
                    
39!ERROR Variable MSVCDIR not set.
                    
40!ENDIF
                    
                
main.jsp http://webgoat.googlecode.com/svn/trunk/ | JavaServer Pages | 301 lines
                    
2	import="org.owasp.webgoat.session.*, org.owasp.webgoat.lessons.Category, org.owasp.webgoat.lessons.AbstractLesson, org.owasp.webgoat.util.*, java.util.*" 
                    
3	errorPage=""  %>
                    
4<%
                    
                
yuv4mpeg.c git://github.com/opdenkamp/xbmc.git | C | 402 lines
                    
107        if (yuv4_generate_header(s, buf2) < 0) {
                    
108            av_log(s, AV_LOG_ERROR, "Error. YUV4MPEG stream header write failed.\n");
                    
109            return AVERROR(EIO);
                    
154    if (s->nb_streams != 1)
                    
155        return AVERROR(EIO);
                    
156
                    
157    if (s->streams[0]->codec->pix_fmt == PIX_FMT_YUV411P) {
                    
158        av_log(s, AV_LOG_ERROR, "Warning: generating rarely used 4:1:1 YUV stream, some mjpegtools might not work.\n");
                    
159    }
                    
163             (s->streams[0]->codec->pix_fmt != PIX_FMT_YUV444P)) {
                    
164        av_log(s, AV_LOG_ERROR, "ERROR: yuv4mpeg only handles yuv444p, yuv422p, yuv420p, yuv411p and gray pixel formats. Use -pix_fmt to select one.\n");
                    
165        return AVERROR(EIO);
                    
241            else if (strncmp("444alpha", tokstart, 8)==0) {
                    
242                av_log(s, AV_LOG_ERROR, "Cannot handle 4:4:4:4 YUV4MPEG stream.\n");
                    
243                return -1;
                    
                
nsISAXContentHandler.cs https://bitbucket.org/geckofx/geckofx-2.0/ | C# | 257 lines
                    
64        /// There is an apparent contradiction between the documentation for
                    
65        /// this method and the documentation for ErrorHandler.fatalError().
                    
66        /// Until this ambiguity is resolved in a future major release,
                    
68        /// will or will not be invoked when the parser has reported a
                    
69        /// fatalError() or thrown an exception.
                    
70        ///
                    
73        /// invoke this method until it has either abandoned parsing (because
                    
74        /// of an unrecoverable error) or reached the end of input.
                    
75        /// </summary>
                    
                
PortletUtil.cs https://docuart.svn.codeplex.com/svn | C# | 259 lines
                    
38                                    "Hata OluÅŸtu", ExceptionUtil.ParseExceptions(ex), DateTime.Now.ToShortDateString(),
                    
39                                    "/Images/Common/Error.gif", "1", "", "", ""
                    
40                                });
                    
                
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        end
                    
                
krp_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        end
                    
                
fckeditor.js http://fckeditor-for-wordpress.googlecode.com/svn/trunk/ | JavaScript | 214 lines
                    
45	// Events
                    
46	this.OnError		= null ;	// function( source, errorNumber, errorDescription )
                    
47}
                    
159
                    
160FCKeditor.prototype._ThrowError = function( errorNumber, errorDescription )
                    
161{
                    
162	this.ErrorNumber		= errorNumber ;
                    
163	this.ErrorDescription	= errorDescription ;
                    
164
                    
167		document.write( '<div style="COLOR: #ff0000">' ) ;
                    
168		document.write( '[ FCKeditor Error ' + this.ErrorNumber + ': ' + this.ErrorDescription + ' ]' ) ;
                    
169		document.write( '</div>' ) ;
                    
172	if ( typeof( this.OnError ) == 'function' )
                    
173		this.OnError( this, errorNumber, errorDescription ) ;
                    
174}
                    
                
test_connection.py https://bitbucket.org/pypy/pypy/ | Python | 200 lines
                    
36        except multiprocessing.BufferTooShort as e:
                    
37            assert isinstance(e, multiprocessing.ProcessError)
                    
38            assert e.args == ("data",)
                    
62        assert rhandle.poll() == False
                    
63        raises(IOError, whandle.poll)
                    
64
                    
130            client.connect(('127.0.0.1', serverSocket.getsockname()[1]))
                    
131        except socket.error as e:
                    
132            assert e.args[0] in (errno.EINPROGRESS, errno.EWOULDBLOCK)
                    
157            w_connections = self.w_connections
                    
158        except AttributeError:
                    
159            return
                    
170
                    
171        raises(IOError, _multiprocessing.Connection, -1)
                    
172        raises(IOError, _multiprocessing.Connection, -15)
                    
                
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}
                    
                
DriverSTL_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;
                    
                
tests.cpp git://github.com/AdamSpitz/klein.git | C++ | 180 lines
                    
25    printf("%s != %s\n", aMsg, bMsg);
                    
26    error("assertion failure!");
                    
27  }
                    
                
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:
                    
172
                    
                
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>
                    
                
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) {
                    
                
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				}
                    
                
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      }
                    
                
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) {
                    
                
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 Try
                    
                
admin.css http://creative-portal.googlecode.com/svn/trunk/ | CSS | 758 lines
                    
632
                    
633div.quote blockquote.error,#middle_column_r div.info span {
                    
634	color: #cb0000
                    
                
erlang_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;
                    
                
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>
                    
                
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
                    
303
                    
                
rlist.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 MemoryError
                    
                
test_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"); ?>",
                    
                
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);
                    
                
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    }
                    
                
ex-direct.c git://github.com/Henry/EuLisp.git | C | 203 lines
                    
23extern LispRef mop_class_bindings[];
                    
24extern LispRef i_error_bindings[];
                    
25extern LispRef i_param_bindings[];
                    
107
                    
108  eul_allocate_static_string(str_2918, "compile time error condition: ", 30);
                    
109  eul_allocate_static_string(str_2919, "bad directive syntax", 20);
                    
110  /* Byte-vector with size: 26 is_init: 0 index: 32 binding: (method-G002782) */
                    
111  static const void *G002916[] = {I(ab,24,00,00),B(stream2 ,9),I(23,00,00,00),B(ex_direct ,29),I(24,00,00,00),B(format ,4),I(3c,02,2a,24),B(stream2 ,9),I(1d,24,00,00),B(mop_access ,8),I(3c,02,2a,24),B(i_param ,56),I(34,00,00,00),I(00,00,00,10),I(86,32,00,00),I(00,00,00,2a),I(24,00,00,00),B(i_error ,5),I(23,00,00,00),B(ex_direct ,30),I(23,00,00,00),B(ex_direct ,31),I(47,00,00,24),B(boot ,13),I(3d,04,02,45),I(02,00,00,00)};
                    
112
                    
113  /* Byte-vector with size: 77 is_init: 0 index: 34 binding: expand-directive */
                    
114  static const void *G002921[] = {I(aa,46,01,1b),I(48,00,00,84),I(24,00,00,00),B(mop_class ,22),I(24,00,00,00),B(mop_class ,22),I(24,00,00,00),B(boot1 ,40),I(3c,03,24,00),B(boot1 ,26),I(3c,00,24,00),B(boot1 ,26),I(3c,00,23,00),B(ex_direct ,11),I(1f,03,24,00),B(mop_class ,16),I(24,00,00,00),B(mop_class ,63),I(1f,05,1f,05),I(24,00,00,00),B(mop_gf ,16),I(3c,06,1b,8a),I(03,02,84,86),I(86,24,00,00),B(boot1 ,40),I(3c,03,24,00),B(boot1 ,26),I(3c,00,1f,03),I(8a,04,02,1c),I(1c,24,00,00),B(boot ,8),I(3c,02,1f,04),I(1f,04,23,00),B(ex_direct ,33),I(23,00,00,00),B(ex_direct ,32),I(3b,02,1f,03),I(24,00,00,00),B(mop_meth ,3),I(3c,04,1f,06),I(1c,24,00,00),B(mop_meth ,5),I(3c,02,1f,07),I(8a,03,02,84),I(24,00,00,00),B(i_error ,5),I(86,24,00,00),B(boot1 ,40),I(3c,03,24,00),B(boot1 ,26),I(3c,00,1f,0a),I(8a,04,02,1c),I(1c,24,00,00),B(boot ,8),I(3c,02,1f,04),I(1f,04,23,00),B(ex_direct ,33),I(23,00,00,00),B(ex_direct ,28),I(3b,02,1f,03),I(24,00,00,00),B(mop_meth ,3),I(3c,04,1f,0d),I(1c,24,00,00),B(mop_meth ,5),I(3c,02,1f,0e),I(24,00,00,00),B(dynamic ,5),I(3c,01,2a,47),I(00,00,24,00),B(ex_direct ,5),I(24,00,00,00),B(ex_direct ,5),I(3c,02,83,24),B(dynamic ,6),I(3c,01,2a,1b),I(45,14,00,00)};
                    
115
                    
144  object_class(str_2919) = eul_static_string_class;
                    
145  eul_intern_keyword(key_2920,"ct-error-value");
                    
146  eul_allocate_bytevector( G002917,G002916);
                    
                
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 views
                    
                
sites.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/prokhin_alexey/ldc2/ | D | 0 lines
                    
65{
                    
66    bool hadErrors = false;
                    
67    if (a.length > 1)
                    
91                stridelo = 1; 
                    
92                hadErrors=true;
                    
93            }
                    
102                if (lo > hi) {
                    
103                    hadErrors = true;
                    
104                }
                    
107            if (stridehi > 6) {
                    
108                hadErrors = true;
                    
109                stridehi = 6;
                    
134    }
                    
135    if (hadErrors)
                    
136        throw new Exception("invalid UTF-8 sequence",__FILE__,__LINE__);
                    
                
RunwayWidget.as http://simile-widgets.googlecode.com/svn/ | ActionScript | 322 lines
                    
167                ExternalInterface.addCallback("getSlideCount", function():int { return _runway.slideCount; });
                    
168            } catch (e:Error) {
                    
169                trace("Error adding callbacks");
                    
                
residuals.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")))
                    
                
RWStepAP203_headers.i http://pythonocc.googlecode.com/svn/trunk/ | Swig | 313 lines
                    
59#include<Handle_Interface_IntVal.hxx>
                    
60#include<Handle_Interface_InterfaceError.hxx>
                    
61#include<Handle_Interface_InterfaceMismatch.hxx>
                    
                
step4.php https://code.google.com/p/oasychev-moodle-plugins/ | PHP | 349 lines
                    
55if (empty($idcourse)) {
                    
56    print_error('courseidnotfound', 'error');
                    
57} elseif (!($DB->get_record('course', array('id' => $idcourse), 'id'))) {
                    
57} elseif (!($DB->get_record('course', array('id' => $idcourse), 'id'))) {
                    
58    print_error('invalidcourseid', 'error', '', $idcourse);
                    
59}
                    
62    if (empty($idcourse) || empty($module) || empty($instances)) {
                    
63        print_error('invalidqueryparam', 'error');
                    
64    }
                    
134    if ($course->id != $cm->course) {
                    
135        print_error(get_string('instances_have_equel_course', 'block_bulk_edit_mod'));
                    
136    }
                    
161} else {
                    
162    print_error('noformdesc');
                    
163}
                    
                
unzip.h http://wagic.googlecode.com/svn/trunk/ | C++ Header | 357 lines
                    
73#define UNZ_EOF                         (0)
                    
74#define UNZ_PARAMERROR                  (-102)
                    
75#define UNZ_BADZIPFILE                  (-103)
                    
75#define UNZ_BADZIPFILE                  (-103)
                    
76#define UNZ_INTERNALERROR               (-104)
                    
77#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*/
                    
                
canvas.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 {
                    
                
BaseServiceRemote.java http://tauruss.googlecode.com/svn/trunk/ | Java | 265 lines
                    
99			} catch (Exception e) {
                    
100				log.error(e);
                    
101			}
                    
                
mwcc.py git://github.com/cloudant/bigcouch.git | Python | 207 lines
                    
110                    versions.append(mwv)
                    
111                except SCons.Util.RegError:
                    
112                    pass
                    
115
                    
116        except SCons.Util.RegError:
                    
117            pass
                    
                
dbmechanic.py http://dbsprockets.googlecode.com/svn/trunk/ | Python | 162 lines
                    
15from dbsprockets.sprockets import Sprockets
                    
16#from dbsprockets.decorators import crudErrorCatcher, validate
                    
17from tw.api import WidgetBunch
                    
138    # @validate(error_handler=editRecord)
                    
139    #@crudErrorCatcher(errorType=sqlalchemy.exceptions.IntegrityError, error_handler='editRecord')
                    
140    #@crudErrorCatcher(errorType=sqlalchemy.exceptions.ProgrammingError, error_handler='editRecord')
                    
148    # @validate(error_handler=addRecord)
                    
149    #@crudErrorCatcher(errorType=sqlalchemy.exceptions.IntegrityError, error_handler='addRecord')
                    
150    #@crudErrorCatcher(errorType=sqlalchemy.exceptions.ProgrammingError, error_handler='addRecord')
                    
                
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);
                    
207
                    
                
TikaRawMetadataProcessor.java git://github.com/liferay/liferay-portal.git | Java | 255 lines
                    
230				else {
                    
231					_log.error(exception, exception);
                    
232				}
                    
                
ns-address.tcl http://uu-cope.googlecode.com/svn/trunk/ | TCL | 391 lines
                    
94#               set-address-format command explained above.
                    
95#               expand-port-field-bits checks and raises error in the foll. 
                    
96#		cases
                    
99#                 * if requested portsize is less than equal to existing 
                    
100#		    portsize, and incase of no errors sets port field with 
                    
101# 		    bits as specified.
                    
102#
                    
103# Errors: 	* if # of bits specified less than 0.
                    
104#               * if bit positions clash (contiguous # of requested free bits 
                    
153	} else {
                    
154		error "ns-address.tcl:set-address-format: Unknown address format $opt"
                    
155	}
                    
241	if {$bit_num <= 0 } {
                    
242		error "$prog : \# bits less than 1"
                    
243	}
                    
                
details.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") {
                    
                
NotFoundTest.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;
                    
                
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 object
                    
                
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); } \
                    
                
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		 */
                    
                
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;
                    
                
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();
                    
159
                    
                
servers_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());
                    
                
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();
                    
                
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);
                    
147
                    
                
g_i_l_0231.html http://hadesmem.googlecode.com/svn/trunk/ | HTML | 0 lines
                    
61<a name="l00028"></a>00028 <span class="preprocessor">#include "../dynamic_image/dynamic_image_all.hpp"</span>
                    
62<a name="l00029"></a>00029 <span class="preprocessor">#include "<a class="code" href="io__error_8hpp.html" title="Handle input-output errors.">io_error.hpp</a>"</span>
                    
63<a name="l00030"></a>00030 
                    
113<a name="l00080"></a>00080         <span class="keywordflow">if</span> (!construct_matched(im,detail::jpeg_type_format_checker(_cinfo.out_color_space))) {
                    
114<a name="l00081"></a>00081             io_error(<span class="stringliteral">"jpeg_reader_dynamic::read_image(): no matching image type between those of the given any_image and that of the file"</span>);
                    
115<a name="l00082"></a>00082         } <span class="keywordflow">else</span> {
                    
                
NativeMethods.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( _
                    
                
wspy_dissector.py http://cwoodruf-sfu-cmpt.googlecode.com/svn/trunk/ | Python | 444 lines
                    
155      return self.__st[name]
                    
156    #raise KeyError
                    
157
                    
                
advi.sty git://git.savannah.nongnu.org/skribilo.git | TeX | 417 lines
                    
37  \expandafter \@firstoftwo \else \expandafter \@secondoftwo \fi}
                    
38\def \advi@error #1{\PackageError {Advi}{#1}{Type <RETURN> to proceed.}}
                    
39\def \advi@warning #1{\PackageWarning {Advi}{#1}}
                    
39\def \advi@warning #1{\PackageWarning {Advi}{#1}}
                    
40\def \advi@undefinedenv {\advi@error {Environment \@currenvir\space undefined.
                    
41Maybe you mean \@currenvir ing}}
                    
174       {\advi@global \def \advi@bgfit{ fit=#1}}
                    
175       {\advi@error {Ill formed background fit=#1}}%
                    
176   \fi}
                    
368       \advi@special@ {html:<a hdvi="#2">}\else
                    
369   \advi@error {Incorect anchor mode #1}\fi \fi\endgroup}
                    
370  {\advi@special@ {html:</a>}}
                    
                
dsdcg.f http://ua-fwlis.googlecode.com/svn/trunk/ | FORTRAN Legacy | 277 lines
                    
61C         routines.  For this case, the user must supply the "exact"
                    
62C         solution or a very accurate approximation (one with an error
                    
63C         much less than TOL) through a common block,
                    
84C ERR    :OUT      Double Precision.
                    
85C         Error estimate of error in final approximate solution, as
                    
86C         defined by ITOL.
                    
87C IERR   :OUT      Integer.
                    
88C         Return error flag.
                    
89C           IERR = 0 => All went well.
                    
91C           IERR = 2 => Method failed to converge in ITMAX steps.
                    
92C           IERR = 3 => Error in user input.
                    
93C                       Check input values of N, ITOL.
                    
93C                       Check input values of N, ITOL.
                    
94C           IERR = 4 => User error tolerance set too tight.
                    
95C                       Reset to 500*D1MACH(3).  Iteration proceeded.
                    
                
YVFK.F http://ua-fwlis.googlecode.com/svn/trunk/ | FORTRAN Legacy | 465 lines
                    
323*		 		    FUNCTION IS AT THE MIDDLE OF THE PARALLEL PLATES. WE NEED TO MAKE SURE
                    
324*				    THAT THE RELATIVE ERROR BOUND IS SATISFIED AT LEAST 3 TIMES
                    
325*					LATER COMMENT: NOTE THAT THIS IS POSSIBLY TAKEN CARE OF BY ONLY SUMMING
                    
395*		 		    FUNCTION IS AT THE MIDDLE OF THE PARALLEL PLATES. WE NEED TO MAKE SURE
                    
396*				    THAT THE RELATIVE ERROR BOUND IS SATISFIED AT LEAST 3 TIMES
                    
397*					LATER COMMENT: NOTE THAT THIS IS POSSIBLY TAKEN CARE OF BY ONLY SUMMING
                    
                
result.py http://nltk.googlecode.com/svn/trunk/ | Python | 343 lines
                    
18from nltk_contrib.tiger.index import IndexNodeId
                    
19from nltk_contrib.tiger.query.exceptions import MissingFeatureError
                    
20from nltk_contrib.tiger.utils.parallel import multiprocessing
                    
232        else:
                    
233            raise MissingFeatureError, "Missing feature: disjoint constraint sets. Please file a bug report."
                    
234        self._reset_stats()
                    
245            return self._ncache[node_id]
                    
246        except KeyError:
                    
247            self.node_cache_misses += 1
                    
                
EventLog.pm http://libwin32.googlecode.com/svn/trunk/ | Perl | 474 lines
                    
26	EVENTLOG_END_PAIRED_EVENT
                    
27	EVENTLOG_ERROR_TYPE
                    
28	EVENTLOG_FORWARDS_READ
                    
43    ($constname = $AUTOLOAD) =~ s/.*:://;
                    
44    # reset $! to zero to reset any current errors.
                    
45    local $! = 0;
                    
334
                    
335=item C<EVENTLOG_ERROR_TYPE>
                    
336
                    
336
                    
337An Error event is being logged.
                    
338
                    
                
AnXmlResultMessageBuilder.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;
                    
140
                    
                
Events.java http://gwtquery.googlecode.com/svn/trunk/ | Java | 363 lines
                    
244      dispatchEvent(document.createScrollEvent());
                    
245    if ((eventbits | Event.ONERROR) == Event.ONERROR)
                    
246      dispatchEvent(document.createErrorEvent());
                    
                
Flowplayer.as http://flowplayer-core.googlecode.com/svn/ | ActionScript | 332 lines
                    
21    import org.flowplayer.model.ClipEvent;
                    
22import org.flowplayer.model.PlayerError;
                    
23	import org.flowplayer.controller.ResourceLoader;	
                    
65			canvas:StyleableSprite, 
                    
66			errorHandler:ErrorHandler, 
                    
67			config:Config, 
                    
110                addCallback("addClip", function(clip:Object, index:int = -1):void { addClip(_config.createClip(clip), index); });
                    
111				addCallback("showError", showError);
                    
112
                    
135			} catch (e:Error) {
                    
136				handleError(PlayerError.INIT_FAILED, "Unable to add callback to ExternalInterface");
                    
137			}
                    
291                throw e;
                    
292//				handleError(PlayerError.PLUGIN_INVOKE_FAILED, "Error when invoking method '" + methodName + "', on plugin '" + pluginName + "'");
                    
293			}
                    
                
FoxProIntellisenseProvider.cs https://VFPX.svn.codeplex.com/svn | C# | 377 lines
                    
12using FoxPro.CodeDom;
                    
13using ErrorHandler = Microsoft.VisualStudio.ErrorHandler;
                    
14using VSConstants = Microsoft.VisualStudio.VSConstants;
                    
100                    object propValue;
                    
101                    ErrorHandler.ThrowOnFailure(hostProject.GetHostProperty((uint)HOSTPROPID.HOSTPROPID_HIERARCHY, out propValue));
                    
102                    IVsHierarchy hierarchy = propValue as IVsHierarchy;
                    
110                    propValue = null;
                    
111                    ErrorHandler.ThrowOnFailure(hierarchy.GetProperty(itemId, (int)__VSHPROPID.VSHPROPID_ExtObject, out propValue));
                    
112                    EnvDTE.ProjectItem projectItem = null;
                    
238
                    
239        public int GetExternalErrorReporter(out IVsReportExternalErrors ppErrorReporter) {
                    
240            // TODO: Handle the error reporter
                    
240            // TODO: Handle the error reporter
                    
241            ppErrorReporter = null;
                    
242            return VSConstants.E_NOTIMPL;
                    
                
scripts.py https://bitbucket.org/plurk/solace/ | Python | 386 lines
                    
19from distutils.cmd import Command
                    
20from distutils.errors import DistutilsOptionError, DistutilsSetupError
                    
21from random import randrange, choice, random, shuffle
                    
50        if not str(self.port).isdigit():
                    
51            raise DistutilsOptionError('port has to be numeric')
                    
52
                    
161        if self.data_set_size not in ('small', 'medium', 'large'):
                    
162            raise DistutilsOptionError('invalid value for data-set-size')
                    
163
                    
                
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 = []
                    
                
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);
                    
                
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();
                    
193
                    
                
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 ) ) );
                    
177
                    
                
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());
                    
                
MainForm.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);
                    
                
subqueries.py https://bitbucket.org/mirror/django/ | Python | 368 lines
                    
5from django.contrib.contenttypes import generic
                    
6from django.core.exceptions import FieldError
                    
7from django.db.models.sql.constants import *
                    
205            if not direct or m2m:
                    
206                raise FieldError('Cannot update model field %r (only non-relations and foreign keys permitted).' % field)
                    
207            values_seq.append((field, model, val))
                    
240            self.related_updates[model].append((column, value, placeholder))
                    
241        except KeyError:
                    
242            self.related_updates[model] = [(column, value, placeholder)]
                    
                
CHANGELOG.html http://help-the-death.googlecode.com/svn/trunk/ | HTML | 350 lines
                    
77 * Javascript code refactoring!  Less mess!
                    
78 * Bugfix - range was including element 42, which is really the 43rd element, so there was an error happening when today happens exactly 43 days after the beginning date (caught this by chance, surprised it wasn't reported before)
                    
79</pre>
                    
109 * patch applied from mjroghelia to fix ie ssl iframe issue (84)
                    
110 * xhtml error fixed - &amp;nbsp; replaced with #160;
                    
111</pre>
                    
136  * Bugfix - was showing wrong day selected when selecting Mar 23, 2008.  (Day light savings time issue).  Fixed with test case.
                    
137  * Added CSS style to show red border around the embedded calendar_date_select div's with errors.
                    
138  * Callbacks were broken with 1.9.0.  Fixed, added test cases.
                    
158        * Don't focus a hidden element
                    
159        * Navigate down to child input element if exists (in case a div tag is passed in).  Resolves problems when input control is wrapped with a error div.  Test cases
                    
160        * Allow specific year ranges (pass in an array)
                    
225  * Calendar &quot;flicker&quot; fixed when displaying popup window.
                    
226  * JS error 106 being thrown - fixed
                    
227  * Bug fixes relating to calendar date select deciding whether to display above or below an element on a page
                    
                
TmxTest.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&nbsp;<A HREF="../../../../com/googlecode/sardine/model/Creationdate.html" title="class in com.googlecode.sardine.model"><B>PREV CLASS</B></A>&nbsp;
                    
58&nbsp;<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&nbsp;<A HREF="../../../../com/googlecode/sardine/model/Creationdate.html" title="class in com.googlecode.sardine.model"><B>PREV CLASS</B></A>&nbsp;
                    
291&nbsp;<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">
                    
                
gem.fish git://github.com/cardmagic/lucash.git | Fish | 197 lines
                    
40complete $common_opt -l config-file --description "Use this config file instead of default" -x
                    
41complete $common_opt -l backtrace --description "Show stack backtrace on errors"
                    
42complete $common_opt -l debug --description "Turn on Ruby debugging"
                    
                
interp_locale.py https://bitbucket.org/pypy/pypy/ | Python | 367 lines
                    
3
                    
4from pypy.interpreter.error import OperationError, oefmt
                    
5from pypy.interpreter.gateway import unwrap_spec
                    
10
                    
11W_Error = _new_exception('Error', W_Exception, 'locale error')
                    
12
                    
15def make_error(space, msg):
                    
16    return OperationError(space.gettypeobject(W_Error.typedef), space.wrap(msg))
                    
17
                    
18def rewrap_error(space, e):
                    
19    return OperationError(space.gettypeobject(W_Error.typedef),
                    
20                          space.wrap(e.message))
                    
328            errno = rposix.get_saved_errno()
                    
329            raise OperationError(space.w_OSError, space.wrap(errno))
                    
330        return space.wrap(rffi.charp2str(dirname))
                    
                
_collections.py https://bitbucket.org/pypy/pypy/ | Python | 435 lines
                    
12    from threading import _get_ident as _thread_ident
                    
13except ImportError:
                    
14    def _thread_ident():
                    
39            if maxlen < 0:
                    
40                raise ValueError("maxlen must be non-negative")
                    
41        self._maxlen = maxlen
                    
98        if self.left is self.right and self.leftndx > self.rightndx:
                    
99            raise IndexError("pop from an empty deque")
                    
100        x = self.right[self.rightndx]
                    
119        if self.left is self.right and self.leftndx > self.rightndx:
                    
120            raise IndexError("pop from an empty deque")
                    
121        x = self.left[self.leftndx]
                    
155            i += 1
                    
156            raise ValueError("deque.remove(x): x not in deque")
                    
157        finally:
                    
                
RectangularShape.java http://loon-simple.googlecode.com/svn/trunk/ | Java | 422 lines
                    
407	 * @return a clone of this instance.
                    
408	 * @exception OutOfMemoryError
                    
409	 *                if there is not enough memory.
                    
417			// this shouldn't happen, since we are Cloneable
                    
418			throw new InternalError();
                    
419		}
                    
                
idt.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";
                    
                
kfbxclonemanager.h http://monoxna.googlecode.com/svn/trunk/ | C Header | 173 lines
                    
26 WITHOUT LIMITING THE FOREGOING, AUTODESK DOES NOT WARRANT THAT THE OPERATION
                    
27 OF THE DATA WILL BE UNINTERRUPTED OR ERROR FREE. 
                    
28 
                    
                
notes.php http://buddypress-media.googlecode.com/svn/bp_media/trunk/ | PHP | 242 lines
                    
9-Instead of dumping raw HTML to the PHP output buffer, we render our template code to a separate render buffer. This
                    
10allows objects further down the pipeline to abort the rendering process if they hit an error.
                    
11
                    
218
                    
219    a) The create function should abort the create process and pass a BPM error object back to the AJAX handler
                    
220
                    
220
                    
221    b) The AJAX handler should parse the error object into
                    
222	1) The failed field names
                    
                
namespace_dsl_test.rb git://github.com/capistrano/capistrano.git | Ruby | 311 lines
                    
70
                    
71  def test_defining_task_without_block_should_raise_error
                    
72    assert_raises(ArgumentError) do
                    
76
                    
77  def test_defining_task_that_shadows_existing_method_should_raise_error
                    
78    assert_raises(ArgumentError) do
                    
82
                    
83  def test_defining_task_that_shadows_existing_namespace_should_raise_error
                    
84    @config.namespace(:outer) {}
                    
84    @config.namespace(:outer) {}
                    
85    assert_raises(ArgumentError) do
                    
86      @config.task(:outer) { puts "foo" }
                    
89
                    
90  def test_defining_namespace_that_shadows_existing_method_should_raise_error
                    
91    assert_raises(ArgumentError) do
                    
                
ValidationModel.cs https://entlib.svn.codeplex.com/svn | C# | 254 lines
                    
144
                    
145            var elementWithError = lookup.GetElementById(validationResult.ElementId);
                    
146            if (elementWithError != null)
                    
147            {
                    
148                if (!(elementWithError is SectionViewModel))
                    
149                {
                    
149                {
                    
150                    elementWithError.ContainingSection.ExpandSection();
                    
151                }
                    
151                }
                    
152                elementWithError.PropertiesShown = true;
                    
153                elementWithError.Select();
                    
                
 

Source

Language