100+ results results for 'ERROR repo:nbargnesi/idea' (403 ms)
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)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); } \KhorosToMatLab.old git://github.com/aludnam/MATLAB.git | Perl | 452 lines
278 print "elseif nargin ==2\n Inputs=varargin{1}; arglist=varargin{2};\n"; 279 print "else error('Usage: [out1,..] = k$fname(Inputs,arglist).');\nend\n"; 280 } 285 print "elseif nargin ==1\n arglist=varargin{1};\n"; 286 print "else error('Usage: [out1,..] = k$fname(arglist).');\nend\n"; 287 } 287 } 288print "if size(arglist,2)~=2\n error('arglist must be of form {''ParameterTag1'',value1;''ParameterTag2'',value2}')\n end\n"; 289 342 if (nextinput > length(Inputs)) 343 error(['Input ' narglist{jj,1} ' has no corresponding input!']); 344 end 348 if (nextoutput > nargout) 349 error(['Output nr. ' narglist{jj,1} ' is not present in the assignment list of outputs !']); 350 endnsISHistory.h http://firefox-mac-pdf.googlecode.com/svn/trunk/ | C Header | 313 lines
94 * the index is obtained successfully. 95 * <code>NS_ERROR_FAILURE</code> Error in obtaining 96 * history entry for the given index. 112 * @throws <code>NS_SUCCESS_LOSS_OF_INSIGNIFICANT_DATA</code> Purge was vetod. 113 * @throws <code>NS_ERROR_FAILURE</code> numEntries is 114 * invalid or out of bounds with the size of history. 206#define NS_FORWARD_SAFE_NSISHISTORY(_to) \ 207 NS_SCRIPTABLE NS_IMETHOD GetCount(PRInt32 *aCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCount(aCount); } \ 208 NS_SCRIPTABLE NS_IMETHOD GetIndex(PRInt32 *aIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIndex(aIndex); } \ 208 NS_SCRIPTABLE NS_IMETHOD GetIndex(PRInt32 *aIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIndex(aIndex); } \ 209 NS_SCRIPTABLE NS_IMETHOD GetRequestedIndex(PRInt32 *aRequestedIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRequestedIndex(aRequestedIndex); } \ 210 NS_SCRIPTABLE NS_IMETHOD GetMaxLength(PRInt32 *aMaxLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMaxLength(aMaxLength); } \ 210 NS_SCRIPTABLE NS_IMETHOD GetMaxLength(PRInt32 *aMaxLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMaxLength(aMaxLength); } \ 211 NS_SCRIPTABLE NS_IMETHOD SetMaxLength(PRInt32 aMaxLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMaxLength(aMaxLength); } \ 212 NS_SCRIPTABLE NS_IMETHOD GetEntryAtIndex(PRInt32 index, PRBool modifyIndex, nsIHistoryEntry **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEntryAtIndex(index, modifyIndex, _retval); } \ErrorData.html http://xformsdb.googlecode.com/svn/trunk/ | HTML | 342 lines
96<P> 97Contains information about an error, for error pages. 98 The information contained in this instance is meaningless if not used 98 The information contained in this instance is meaningless if not used 99 in the context of an error page. To indicate a JSP is an error page, 100 the page author must set the isErrorPage attribute of the page directive 107 <DD>2.0</DD> 108<DT><B>See Also:</B><DD><A HREF="../../../javax/servlet/jsp/PageContext.html#getErrorData()"><CODE>PageContext.getErrorData()</CODE></A></DL> 109<HR> 126<TR BGCOLOR="white" CLASS="TableRowColor"> 127<TD><CODE><B><A HREF="../../../javax/servlet/jsp/ErrorData.html#ErrorData(java.lang.Throwable, int, java.lang.String, java.lang.String)">ErrorData</A></B>(java.lang.Throwable throwable, 128 int statusCode, 212<P> 213<DT><B>Parameters:</B><DD><CODE>throwable</CODE> - The Throwable that is the cause of the error<DD><CODE>statusCode</CODE> - The status code of the error<DD><CODE>uri</CODE> - The request URI<DD><CODE>servletName</CODE> - The name of the servlet invoked</DL> 214CGIHTTPServer.py https://bitbucket.org/pypy/pypy/ | Python | 378 lines
148 if not (self.have_fork or self.have_popen2 or self.have_popen3): 149 self.send_error(403, "CGI script is not a Python script (%r)" % 150 scriptname) 152 if not self.is_executable(scriptfile): 153 self.send_error(403, "CGI script is not executable (%r)" % 154 scriptname) 247 os.setuid(nobody) 248 except os.error: 249 pass 253 except: 254 self.server.handle_error(self.request, self.client_address) 255 os._exit(127) 272 nbytes = int(length) 273 except (TypeError, ValueError): 274 nbytes = 0XcmsAllocNamedColor.m git://anongit.freedesktop.org/git/xorg/test/xts.git/ | Objective C | 0 lines
138 * Turn on buffering and buffer parameter information 139 * in case an error occurs 140 ******/ 145 message(fmtstr, fmt_lst, 0); 146 (void)strcpy(fmtstr, "An error occurred during a call to %s\n\n"); 147 fmt_lst[0].typ_str = TestName; 161 162 bufrdisp(display); /* buffer display struct info for error checking */ 163 179 180 first_error = 0; /* no errors encountered yet */ 181/****** 186 errflg = 0; 187 XSetErrorHandler(signal_status); 188 svc_ret_value = XcmsAllocNamedColor(libdivecomputer.c git://github.com/torvalds/subsurface.git | C | 482 lines
24 25static GError *error(const char *fmt, ...) 26{ 27 va_list args; 28 GError *error; 29 30 va_start(args, fmt); 31 error = g_error_new_valist( 32 g_quark_from_string("subsurface"), 32 g_quark_from_string("subsurface"), 33 DIVE_ERROR_PARSE, fmt, args); 34 va_end(args); 34 va_end(args); 35 return error; 36}JavaAction.java https://svn.apache.org/repos/asf/incubator/isis/ | Java | 0 lines
120 if (parameters.length != paramCount) { 121 LOG.error(actionMethod + " requires " + paramCount + " parameters, not " + parameters.length); 122 } 175 if (parameterSet.length != paramCount) { 176 LOG.error(actionMethod + " requires " + paramCount + " parameters, not " + parameterSet.length); 177 }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 */PHPParserTester.java https://jedit.svn.sourceforge.net/svnroot/jedit | Java | 350 lines
59 checkPHP("$link= mysql_connect($this->mysqlHost, $this->mysqlUser, $this->mysqlPassword)\n" + 60 "or $errMsg= 'Could not connect: ' . mysql_error();"); 61 checkPHP("function method(array $array) {\n}"); 136 checkPHP("unset($this->blockvariables[$block][$varname]);"); 137 checkPHP("new IT_Error(\"The block '$block' was not found in the template.\", __FILE__, __LINE__);"); 138 checkPHP("for ($i=156, $j=0; $i<512; $i++, $j++) $v_checksum += ord(substr($v_binary_data_last,$j,1));"); 182 checkPHP("$ol = new Overlib();"); 183 checkPHP("$risultato = mysql_query($sql) or\n die(mysql_error());"); 184 checkHTML("\n\n\n\n <?php print \"Hello world\" ?>"); 263 } 264 catch (Error e) 265 { 325 326 public void parseError(PHPParseErrorEvent e) 327 {SpellCheckPlugin.java https://jedit.svn.sourceforge.net/svnroot/jedit | Java | 414 lines
160 { 161 Log.log(Log.ERROR, SpellCheckPlugin.class, "Error spell checking (Aspell)."); 162 Log.log(Log.ERROR, SpellCheckPlugin.class, e); 235 { 236 Log.log(Log.ERROR, SpellCheckPlugin.class, "Error spell checking (Aspell)."); 237 Log.log(Log.ERROR, SpellCheckPlugin.class, e); 282 private static 283 ErrorListSpellChecker getErrorListSpellChecker() 284 { 291 if( _errorListSpellChecker == null ) 292 _errorListSpellChecker = new ErrorListSpellChecker( aspellExeFilename, aspellCommandLine ); 293 else 297 _errorListSpellChecker.stop(); 298 _errorListSpellChecker = new ErrorListSpellChecker( aspellExeFilename, aspellCommandLine ); 299 }doc.py https://bitbucket.org/mirror/django/ | Python | 347 lines
122 view_func = getattr(__import__(mod, '', '', ['']), func) 123 except (ImportError, AttributeError): 124 raise Http404 249def missing_docutils_page(request): 250 """Display an error message for people without docutils""" 251 return render_to_response('admin_doc/missing_docutils.html') 323 else: 324 raise TypeError, "%s does not appear to be a urlpattern object" % p 325 return viewssites.py https://bitbucket.org/mirror/django/ | Python | 350 lines
16 17ERROR_MESSAGE = ugettext_lazy("Please enter a correct username and password. Note that both fields are case-sensitive.") 18LOGIN_FORM_KEY = 'this_is_the_login_form' 158 admin_obj = self._registry[model] 159 except KeyError: 160 raise http.Http404("This model exists but has not been registered with the admin site.") 232 if user is None: 233 message = ERROR_MESSAGE 234 if u'@' in username: 265 else: 266 return self.display_login_form(request, ERROR_MESSAGE) 267 login = never_cache(login) 337 'post_data': post_data, 338 'error_message': error_message, 339 'root_path': self.root_path,CompositeDependencyHandler.cs https://hg01.codeplex.com/clientdependency | C# | 0 lines
98 //retry up to 5 times... this is only here due to a bug found in another website that was returning a blank 99 //result. To date, it can't be replicated in VS, but we'll leave it here for error handling support... can't hurt 100 for (int i = 0; i < 5; i++) 105 106 ClientDependencySettings.Instance.Logger.Error(string.Format("No bytes were returned, this is attempt {0}. Fileset: {1}, Type: {2}, Version: {3}", i, fileset, type, version), null); 107 } 225 { 226 ClientDependencySettings.Instance.Logger.Error("ClientDependency handler path is null", new Exception()); 227 return;mwcc.py git://github.com/cloudant/bigcouch.git | Python | 207 lines
110 versions.append(mwv) 111 except SCons.Util.RegError: 112 pass 115 116 except SCons.Util.RegError: 117 passdbmechanic.py http://dbsprockets.googlecode.com/svn/trunk/ | Python | 162 lines
15from dbsprockets.sprockets import Sprockets 16#from dbsprockets.decorators import crudErrorCatcher, validate 17from tw.api import WidgetBunch 138 # @validate(error_handler=editRecord) 139 #@crudErrorCatcher(errorType=sqlalchemy.exceptions.IntegrityError, error_handler='editRecord') 140 #@crudErrorCatcher(errorType=sqlalchemy.exceptions.ProgrammingError, error_handler='editRecord') 148 # @validate(error_handler=addRecord) 149 #@crudErrorCatcher(errorType=sqlalchemy.exceptions.IntegrityError, error_handler='addRecord') 150 #@crudErrorCatcher(errorType=sqlalchemy.exceptions.ProgrammingError, error_handler='addRecord')BaseServiceRemote.java http://tauruss.googlecode.com/svn/trunk/ | Java | 265 lines
99 } catch (Exception e) { 100 log.error(e); 101 }MembershipRequestServiceHttp.java git://github.com/liferay/liferay-portal.git | Java | 229 lines
89 90 _log.error(systemException, systemException); 91 125 126 _log.error(systemException, systemException); 127 166 167 _log.error(systemException, systemException); 168 205 206 _log.error(systemException, systemException); 207TikaRawMetadataProcessor.java git://github.com/liferay/liferay-portal.git | Java | 255 lines
230 else { 231 _log.error(exception, exception); 232 }javaw.py https://code.google.com/p/waf/ | Python | 475 lines
29import os, re, tempfile, shutil 30from waflib import TaskGen, Task, Utils, Options, Build, Errors, Node, Logs 31from waflib.Configure import conf 229 except Exception: 230 raise Errors.WafError('Could not find the basedir %r for %r' % (self.basedir, self)) 231 return super(jar_create, self).runnable_status()medici.erl git://github.com/evanmiller/ChicagoBoss.git | Erlang | 0 lines
44 45%% @spec start() -> {ok, Pid} | Error:term() 46%% 50 51%% @spec start(StartupOptions::proplist()) -> {ok, Pid} | Error:term() 52%% 276 ?assert(?MODULE:get(<<"putkeep1">>) =:= <<"foo">>), 277 ?assertMatch({error, _}, ?MODULE:putkeep(<<"putkeep1">>, <<"bar">>)), 278 ?assert(?MODULE:get(<<"putkeep1">>) =:= <<"foo">>), % no effect if key already exists before putkeep 301 ok = ?MODULE:out(<<"out1">>), 302 ?assertMatch({error, _}, ?MODULE:get(<<"out1">>)). 303 322 ok = ?MODULE:vanish(), 323 ?assertMatch({error, _}, ?MODULE:get(<<"vanish1">>)). 324ExpatReaderWrapper.java http://androjena.googlecode.com/svn/trunk/ | Java | 425 lines
30import org.xml.sax.EntityResolver; 31import org.xml.sax.ErrorHandler; 32import org.xml.sax.InputSource; 95 if (mapping == null) 96 throwException("internal error"); 97 if (mapping.next == null) 293 @Override 294 public ErrorHandler getErrorHandler() { 295 return expatReader.getErrorHandler(); 350 @Override 351 public void setErrorHandler(ErrorHandler handler) { 352 expatReader.setErrorHandler(handler);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)]tests.py https://bitbucket.org/mirror/django/ | Python | 346 lines
22 import decimal 23except ImportError: 24 from django.utils import _decimal as decimalBuildLogger.html http://xformsdb.googlecode.com/svn/trunk/ | HTML | 312 lines
128<CODE> void</CODE></FONT></TD> 129<TD><CODE><B><A HREF="../../../../org/apache/tools/ant/BuildLogger.html#setErrorPrintStream(java.io.PrintStream)">setErrorPrintStream</A></B>(java.io.PrintStream err)</CODE> 130 131<BR> 132 Sets the output stream to which this logger is to send error messages.</TD> 133</TR> 237 238<A NAME="setErrorPrintStream(java.io.PrintStream)"><!-- --></A><H3> 239setErrorPrintStream</H3> 240<PRE> 241public void <B>setErrorPrintStream</B>(java.io.PrintStream err)</PRE> 242<DL> 242<DL> 243<DD>Sets the output stream to which this logger is to send error messages. 244<P>options.py https://bitbucket.org/mirror/django/ | Python | 285 lines
57 if meta_attrs != {}: 58 raise TypeError, "'class Meta' got invalid attribute(s): %s" % ','.join(meta_attrs.keys()) 59 else: 99 def get_field(self, name, many_to_many=True): 100 "Returns the requested field by name. Raises FieldDoesNotExist on error." 101 to_search = many_to_many and (self.fields + self.many_to_many) or self.fields 109 if model is None: 110 raise ReferenceError("Model no longer available in %s" % self) 111 return model._default_manager 130 return self._all_related_objects 131 except AttributeError: 132 rel_objs = [] 164 return self._all_related_many_to_many_objects 165 except AttributeError: 166 rel_objs = []SubversionResolver.cs https://sourceserversharp.svn.codeplex.com/svn | C# | 0 lines
135 psi.RedirectStandardOutput = true; 136 psi.RedirectStandardError = true; 137 psi.RedirectStandardInput = true; 155 156 // Check if the volume exists; if not 'svn status' returns "svn: Error resolving case of 'q:\q'" 157 string root = Path.GetPathRoot(file.Key); 181 p.StandardInput.Close(); 182 p.ErrorDataReceived += new DataReceivedEventHandler(svnStatus_ErrorDataReceived); 183 p.OutputDataReceived += new DataReceivedEventHandler(svnStatus_OutputDataReceived); 184 _svnStatusOutput = new StringBuilder(); 185 _receivedError = false; 186 p.BeginErrorReadLine(); 191 _svnStatusOutput = null; 192 //string errs = p.StandardError.ReadToEnd(); 193suspend.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)resman.py http://migrid.googlecode.com/svn/trunk/ | Python | 299 lines
66 if not validate_status: 67 return (accepted, returnvalues.CLIENT_ERROR) 68context.ipp http://hadesmem.googlecode.com/svn/trunk/ | C++ Header | 0 lines
203 { 204 ec = boost::system::error_code(::ERR_get_error(), 205 boost::asio::error::get_ssl_category()); 305 { 306 ec = boost::system::error_code(::ERR_get_error(), 307 boost::asio::error::get_ssl_category()); 344 { 345 ec = boost::system::error_code(::ERR_get_error(), 346 boost::asio::error::get_ssl_category()); 384 { 385 ec = boost::system::error_code(::ERR_get_error(), 386 boost::asio::error::get_ssl_category()); 423 { 424 ec = boost::system::error_code(::ERR_get_error(), 425 boost::asio::error::get_ssl_category());headers.html http://hadesmem.googlecode.com/svn/trunk/ | HTML | 0 lines
56 57div.admonition, div.attention, div.caution, div.danger, div.error, 58div.hint, div.important, div.note, div.tip, div.warning { 69div.attention p.admonition-title, div.caution p.admonition-title, 70div.danger p.admonition-title, div.error p.admonition-title, 71div.warning p.admonition-title {bodycontent-inc.php http://ebpls.googlecode.com/svn/trunk/ | PHP | 444 lines
2/*Modification History: 32008.04.25: Change constants to strings to remove PHP errors in log lines 99+ line 461?? 4*/keys.rb git://github.com/jnunemaker/mongomapper.git | Ruby | 469 lines
120 attrs['_type'] ? attrs['_type'].constantize : self 121 rescue NameError 122 selfBshScriptEngine.java http://beanshell2.googlecode.com/svn/trunk/ | Java | 381 lines
92 // explicit parsing error 93 throw new ScriptException(e.toString(), e.getErrorSourceFile(), e.getErrorLineNumber()); 94 } catch (TargetError e) { 96 // set it as the cause ? 97 ScriptException se = new ScriptException(e.toString(), e.getErrorSourceFile(), e.getErrorLineNumber()); 98 se.initCause(e.getTarget()); 198 private ScriptException constructScriptException(final EvalError e) { 199 return new ScriptException(e.getMessage(), e.getErrorSourceFile(), e.getErrorLineNumber()); 200 } 270 // set it as the cause ? 271 ScriptException se = new ScriptException(e.toString(), e.getErrorSourceFile(), e.getErrorLineNumber()); 272 se.initCause(e.getTarget()); 275 // The script couldn't be evaluated properly 276 throw new ScriptException(e.toString(), e.getErrorSourceFile(), e.getErrorLineNumber()); 277 } catch (InterpreterError e) {Daemon.pm git://github.com/kraih/mojo.git | Perl | 542 lines
95 my $req = $tx->req; 96 if (my $error = $req->error) { $self->_debug($id, $error->{message}) } 97 110 $tx->res->headers->connection('close') 111 if ($c->{requests} || 1) >= $self->max_requests || $req->error; 112 156 # Close connection if necessary 157 return $self->_remove($id) if $tx->error || !$tx->keep_alive; 158 204 $stream->on(close => sub { $self && $self->_close($id) }); 205 $stream->on(error => 206 sub { $self && $self->app->log->error(pop) && $self->_close($id) });edit_expando.jsp git://github.com/liferay/liferay-portal.git | JavaServer Pages | 294 lines
70 71 <liferay-ui:error exception="<%= ColumnNameException.class %>" message="please-enter-a-valid-name" /> 72 <liferay-ui:error exception="<%= ColumnTypeException.class %>" message="please-select-a-valid-type" /> 72 <liferay-ui:error exception="<%= ColumnTypeException.class %>" message="please-select-a-valid-type" /> 73 <liferay-ui:error exception="<%= DuplicateColumnNameException.class %>" message="please-enter-a-unique-name" /> 74 <liferay-ui:error exception="<%= ValueDataException.class %>" message="please-enter-a-valid-value" />install.php https://code.google.com/p/osclass/ | PHP | 253 lines
21 22error_reporting(E_ERROR | E_CORE_ERROR | E_COMPILE_ERROR | E_PARSE); 23 41require_once LIB_PATH . 'osclass/helpers/hDefines.php'; 42require_once LIB_PATH . 'osclass/helpers/hErrors.php'; 43require_once LIB_PATH . 'osclass/helpers/hLocale.php'; 86 $message = __("Looks like you've already installed OSClass. To reinstall please clear your old database tables first."); 87 osc_die('OSClass » Error', $message) ; 88} 219 } elseif($step == 3) { 220 if( !isset($error["error"]) ) { 221 display_target(); 222 } else { 223 display_database_error($error, ($step - 1)); 224 }test_weakset.py https://bitbucket.org/pypy/pypy/ | Python | 382 lines
53 def test_new_or_init(self): 54 self.assertRaises(TypeError, WeakSet, [], 2) 55 65 self.assertEqual(c in self.s, c in self.d) 66 # 1 is not weakref'able, but that TypeError is caught by __contains__ 67 self.assertNotIn(1, self.s) 78 self.assertEqual(type(u), WeakSet) 79 self.assertRaises(TypeError, self.s.union, [[]]) 80 for C in set, frozenset, dict.fromkeys, list, tuple: 114 self.assertEqual(type(i), WeakSet) 115 self.assertRaises(TypeError, self.s.difference, [[]]) 116 127 self.assertEqual(type(i), WeakSet) 128 self.assertRaises(TypeError, self.s.symmetric_difference, [[]]) 129File.as http://buddypress-media.googlecode.com/svn/bp_media/trunk/ | ActionScript | 422 lines
166 // Delegate upload IO errors 167 file._fileRef.addEventListener(IOErrorEvent.IO_ERROR, function(e:IOErrorEvent):void { 168 dispatchEvent(e); 171 // Delegate secuirty errors 172 file._fileRef.addEventListener(SecurityErrorEvent.SECURITY_ERROR, function(e:SecurityErrorEvent):void { 173 dispatchEvent(e); 263 // File load IO error 264 this._fileRef.addEventListener(IOErrorEvent.IO_ERROR, function(e:Event):void { 265 this.dispatchEvent(e); 333 // Delegate upload IO errors 334 urlStream.addEventListener(IOErrorEvent.IO_ERROR, function(e:IOErrorEvent):void { 335 file._chunk = file._chunks; // Cancel upload of all remaining chunks 339 // Delegate secuirty errors 340 urlStream.addEventListener(SecurityErrorEvent.SECURITY_ERROR, function(e:SecurityErrorEvent):void { 341 file._chunk = file._chunks; // Cancel upload of all remaining chunksMefXapModuleTypeLoader.cs https://prism.svn.codeplex.com/svn | C# | 309 lines
75 76 private void RaiseLoadModuleCompleted(ModuleInfo moduleInfo, Exception error) 77 { 77 { 78 this.RaiseLoadModuleCompleted(new LoadModuleCompletedEventArgs(moduleInfo, error)); 79 } 219 220 Exception error = e.Error; 221 if (error == null) 236 { 237 error = ex; 238 } 242 { 243 this.RaiseLoadModuleCompleted(moduleInfo, error); 244 }models.py https://bitbucket.org/mirror/django/ | Python | 118 lines
1""" 226. A test to check that the model validator works can correctly identify errors in a model. 3""" 6 7class FieldErrors(models.Model): 8 charfield = models.CharField() 69 70error_log = """invalid_models.fielderrors: "charfield": CharFields require a "maxlength" attribute. 71invalid_models.fielderrors: "floatfield": FloatFields require a "decimal_places" attribute. 71invalid_models.fielderrors: "floatfield": FloatFields require a "decimal_places" attribute. 72invalid_models.fielderrors: "floatfield": FloatFields require a "max_digits" attribute. 73invalid_models.fielderrors: "filefield": FileFields require an "upload_to" attribute. 73invalid_models.fielderrors: "filefield": FileFields require an "upload_to" attribute. 74invalid_models.fielderrors: "prepopulate": prepopulate_from should be a list or tuple. 75invalid_models.fielderrors: "choices": "choices" should be either a tuple or list.securepyro.py http://migrid.googlecode.com/svn/trunk/ | Python | 240 lines
140 if not os.path.isfile(key_path): 141 raise ValueError("No such server key: %s" % key_path) 142 if not os.path.isfile(cert_path): 142 if not os.path.isfile(cert_path): 143 raise ValueError("No such server certificate: %s" % cert_path) 144 # requires m2crypto module, concatenated ssl key/cert and cacertREADME.markdown git://github.com/geofflane/grails-constraints.git | Markdown | 316 lines
761. false 772. A String which is used as the error message to show the user 783. A Collection with first element being message code, and following elements being message parameters 842. The target object being validated 853. The validation errors collection 86 87e.g. 88 def validate = { thePropertyValue, theTargetObject, errorsListYouProbablyWontEverNeed -> 89 return null != thePropertyValue && theTargetObject.rocks() 123### defaultMessageCode property (optional) ### 124The defaultMessageCode property defines the default key that will be used to look up the error message 125in the *grails-app/i18n/messages.properties* files. 132### failureCode property (optional) ### 133The failureCode property defines a key that can be used to lookup error messages in the *grails-app/i18n/messages.properties* files. 134The value of this property is appended to the end of the Class.property name that the Constraint is applied to.surfaces.c https://quake.svn.sourceforge.net/svnroot/quake | C | 463 lines
94 if (!front || !back) 95 Sys_Error ("SubdivideFace: didn't split the polygon"); 96 *prevptr = back; 286 if (hv->num == MAX_MAP_VERTS) 287 Sys_Error ("GetVertex: MAX_MAP_VERTS"); 288 hvert_p++; 291 if (bsp->numvertexes == MAX_MAP_VERTS) 292 Sys_Error ("numvertexes == MAX_MAP_VERTS"); 293 318 if (!f->contents[0]) 319 Sys_Error ("GetEdge: 0 contents"); 320 334 if (bsp->numedges == MAX_MAP_EDGES) 335 Sys_Error ("numedges == MAX_MAP_EDGES"); 336 edge.v[0] = v1;qfplist.c https://quake.svn.sourceforge.net/svnroot/quake | C | 496 lines
210 if (pl->pos >= pl->end) { 211 pl->error = "Reached end of string while parsing quoted string"; 212 return NULL; 340 if (key->type != QFString) { 341 pl->error = "Key is not a string"; 342 PL_FreeItem (key); 346 if (pl->ptr[pl->pos] != '=') { 347 pl->error = "Unexpected character (expected '=')"; 348 PL_FreeItem (key); 367 } else if (pl->ptr[pl->pos] != '}') { 368 pl->error = "Unexpected character (wanted ';' or '}')"; 369 PL_FreeItem (key); 489 } else { 490 if (pl && pl->error && pl->error[0]) 491 Sys_Error ("%d,%d: %s", pl->line, pl->pos, pl->error);dateformat.py https://bitbucket.org/mirror/django/ | Python | 258 lines
49 "Swatch Internet time" 50 raise NotImplementedError 51WebsiteServiceHttp.java git://github.com/liferay/liferay-portal.git | Java | 273 lines
90 91 _log.error(systemException, systemException); 92 126 127 _log.error(systemException, systemException); 128 166 167 _log.error(systemException, systemException); 168 208 209 _log.error(systemException, systemException); 210 249 250 _log.error(systemException, systemException); 251gib_buffer.c https://quake.svn.sourceforge.net/svnroot/quake | C | 339 lines
170 "-----------------\n" 171 "|GIB Parse Error|\n" 172 "-----------------\n" 172 "-----------------\n" 173 "Parse error while adding text to GIB buffer.\n" 174 "Line %u: %s\n", 174 "Line %u: %s\n", 175 GIB_Buffer_Get_Line_Num (str, GIB_Parse_ErrorPos ()), 176 GIB_Parse_ErrorMsg () 202 "-----------------\n" 203 "|GIB Parse Error|\n" 204 "-----------------\n" 204 "-----------------\n" 205 "Parse error while inserting text into GIB buffer.\n" 206 "Line %u: %s\n",base.py https://bitbucket.org/mirror/django/ | Python | 231 lines
35 dot = middleware_path.rindex('.') 36 except ValueError: 37 raise exceptions.ImproperlyConfigured, '%s isn\'t a middleware module' % middleware_path 40 mod = import_module(mw_module) 41 except ImportError, e: 42 raise exceptions.ImproperlyConfigured, 'Error importing middleware %s: "%s"' % (mw_module, e) 44 mw_class = getattr(mod, mw_classname) 45 except AttributeError: 46 raise exceptions.ImproperlyConfigured, 'Middleware module "%s" does not define a "%s" class' % (mw_module, mw_classname) 70 request = self.request_class(request_env) 71 except UnicodeDecodeError: 72 response = http.HttpResponseBadRequest() 126 127 # Complain if the view returned None (a common error). 128 if response is None:pinet.h git://github.com/tito/Movid.git | C Header | 400 lines
45// 46// BSD-compatible socket error codes for Win32 47// 278 279 void error(ippeerinfo& peer, int code, const char* defmsg); 280 bool dopoll(int* i, int timeout); 331 332 void error(int code, const char* msg); 333 void open();export_import.jsp git://github.com/liferay/liferay-portal.git | JavaServer Pages | 248 lines
88 <liferay-ui:error exception="<%= LARTypeException.class %>" message="please-import-a-lar-file-of-the-correct-type" /> 89 <liferay-ui:error exception="<%= LayoutImportException.class %>" message="an-unexpected-error-occurred-while-importing-your-file" /> 90 93 <% 94 LocaleException le = (LocaleException)errorException; 95 %> 99 100 <liferay-ui:error exception="<%= NoSuchLayoutException.class %>" message="an-error-occurred-because-the-live-group-does-not-have-the-current-page" /> 101 <liferay-ui:error exception="<%= PortletIdException.class %>" message="please-import-a-lar-file-for-the-current-portlet" /> 102 103 <liferay-ui:error exception="<%= PortletDataException.class %>"> 104 134 <% 135 String errorMessageKey = StringPool.BLANK; 136EditCompanyAction.java git://github.com/liferay/liferay-portal.git | Java | 288 lines
30import com.liferay.portal.WebsiteURLException; 31import com.liferay.portal.kernel.servlet.SessionErrors; 32import com.liferay.portal.kernel.util.Constants; 80 81 if (!SessionErrors.isEmpty(actionRequest)) { 82 setForward( 94 if (e instanceof PrincipalException) { 95 SessionErrors.add(actionRequest, e.getClass()); 96 96 97 setForward(actionRequest, "portlet.portal_settings.error"); 98 } 116 117 SessionErrors.add( 118 actionRequest,gen_aircraft.ml git://github.com/pchickey/paparazzi-linux-release.git | OCaml | 280 lines
49 let other_name = Hashtbl.find ids id in 50 failwith (sprintf "Error: A/C Id '%s' duplicated in %s (%s and %s)" id conf_xml name other_name) 51 end; 53 let other_id = Hashtbl.find names name in 54 failwith (sprintf "Error: A/C name '%s' duplicated in %s (ids %s and %s)" name conf_xml id other_id) 55 end;d_sprite.c https://quake.svn.sourceforge.net/svnroot/quake | C | 419 lines
125 else if (snext < 8) 126 snext = 8; // prevent round-off error on <0 127 // steps from 134 else if (tnext < 8) 135 tnext = 8; // guard against round-off error on 136 // <0 steps 153 else if (snext < 8) 154 snext = 8; // prevent round-off error on <0 steps 155 // from from causing overstepping & 161 else if (tnext < 8) 162 tnext = 8; // guard against round-off error on 163 // <0 stepsRendererImpl.java git://github.com/liferay/liferay-portal.git | Java | 425 lines
172 catch (Exception e) { 173 _log.error(e, e); 174Updater.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( "{" );configuration.jsp git://github.com/liferay/liferay-portal.git | JavaServer Pages | 272 lines
103 104 <liferay-ui:error key="emailFromAddress" message="please-enter-a-valid-email-address" /> 105 <liferay-ui:error key="emailFromName" message="please-enter-a-valid-name" /> 105 <liferay-ui:error key="emailFromName" message="please-enter-a-valid-name" /> 106 <liferay-ui:error key="emailArticleAddedBody" message="please-enter-a-valid-body" /> 107 <liferay-ui:error key="emailArticleAddedSubject" message="please-enter-a-valid-subject" /> 107 <liferay-ui:error key="emailArticleAddedSubject" message="please-enter-a-valid-subject" /> 108 <liferay-ui:error key="emailArticleApprovalDeniedBody" message="please-enter-a-valid-body" /> 109 <liferay-ui:error key="emailArticleApprovalDeniedSubject" message="please-enter-a-valid-subject" /> 109 <liferay-ui:error key="emailArticleApprovalDeniedSubject" message="please-enter-a-valid-subject" /> 110 <liferay-ui:error key="emailArticleApprovalGrantedBody" message="please-enter-a-valid-body" /> 111 <liferay-ui:error key="emailArticleApprovalGrantedSubject" message="please-enter-a-valid-subject" /> 111 <liferay-ui:error key="emailArticleApprovalGrantedSubject" message="please-enter-a-valid-subject" /> 112 <liferay-ui:error key="emailArticleApprovalRequestedBody" message="please-enter-a-valid-body" /> 113 <liferay-ui:error key="emailArticleApprovalRequestedSubject" message="please-enter-a-valid-subject" />runtests.py https://bitbucket.org/mirror/django/ | Python | 202 lines
59 def runTest(self): 60 from django.core.management.validation import get_validation_errors 61 from django.db.models.loading import load_app 68 69 # Make sure sys.stdout is not a tty so that we get errors without 70 # coloring attached (makes matching the results easier). We restore 74 sys.stdout = s 75 count = get_validation_errors(s, module) 76 sys.stdout = orig_stdout 77 s.seek(0) 78 error_log = s.read() 79 actual = error_log.split('\n') 79 actual = error_log.split('\n') 80 expected = module.model_errors.split('\n') 81appengine_config.py https://code.google.com/p/pageforest/ | Python | 228 lines
64# the web UI when an exception occurs. (Tracebacks are always logged 65# at the ERROR level as well.) 66PollsQuestionServiceHttp.java git://github.com/liferay/liferay-portal.git | Java | 235 lines
95 catch (com.liferay.portal.kernel.exception.SystemException se) { 96 _log.error(se, se); 97 128 catch (com.liferay.portal.kernel.exception.SystemException se) { 129 _log.error(se, se); 130 165 catch (com.liferay.portal.kernel.exception.SystemException se) { 166 _log.error(se, se); 167 210 catch (com.liferay.portal.kernel.exception.SystemException se) { 211 _log.error(se, se); 212BaseMetadataPanel.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 {DataTxTests.java http://hypergraphdb.googlecode.com/svn/trunk/ | Java | 0 lines
28 29 private ArrayList<Throwable> errors = new ArrayList<Throwable>(); 30 194 t.printStackTrace(System.err); 195 errors.add(t); 196 } 209 } 210 assertEquals(errors.size(), 0); 211 verifyData();home.php http://n-13news.googlecode.com/svn/trunk/ | PHP | 164 lines
60if(ini_get("register_globals")){ 61 echo "<div class=\"error-warning\">"; 62 echo $langmsg['home'][3]; 69 echo "<form method=\"post\" action=\"?\">"; 70 echo "<div class=\"error-warning\">"; 71 echo $langmsg['home'][4] . "<br /><br />" . $langmsg['home'][21]; 79 if(!@unlink("install/index.php")){ 80 echo "<span class=error>"; 81 echo $langmsg['home'][5];test_node_stream.py https://bitbucket.org/Stiivi/brewery/ | Python | 221 lines
49 50 self.assertRaises(KeyError, self.stream.connect, "sample", "unknown") 51 52 node = Node() 53 self.assertRaises(KeyError, self.stream.add, node, "sample") 54 194 195 self.assertRaisesRegexp(StreamRuntimeError, "This is fail node", stream.run) 196 200 stream.run() 201 except StreamRuntimeError, e: 202 handle = StringIO.StringIO() 219 220 self.assertRaises(StreamRuntimeError, stream.run) 221CultureHelperHttpModule.cs https://hg01.codeplex.com/mojoportal | C# | 169 lines
19 { 20 application.Error += new EventHandler(this.Error); 21 application.BeginRequest += new EventHandler(BeginRequest); 51 // culture, but you should make sure that the resource file for the default culture 52 // has no missing keys or runtime errors could occur 53 87 { 88 log.Info("swallowed error in culture helper", ex); 89 } 91 { 92 log.Info("swallowed error in culture helper", ex); 93 } 120 //can happen in medium trust 121 log.Error(ex); 122 }pack.c https://gnukeyring.svn.sourceforge.net/svnroot/gnukeyring | C | 243 lines
35 * 36 * ``May display a fatal error message if any of the following 37 * occur: [] You don t have write access to the database. [] 47 * 48 * TODO: Better error checking that e.g. we're not running past the 49 * end of the record. Display an error dialog rather than crashing. 159 errOut: 160 UI_ReportSysError2(ID_KeyDatabaseAlert, err, __FUNCTION__); 161 return err; 170 if (!recHandle) { 171 UI_ReportSysError2(ID_KeyDatabaseAlert, DmGetLastErr(), 172 __FUNCTION__); 194 fail: 195 UI_ReportSysError2(ID_KeyDatabaseAlert, err, __FUNCTION__); 196}mel-b-ccl.el git://github.com/wanderlust/flim.git | Emacs Lisp | 481 lines
260 (write-repeat r4)) 261 ;; error: BB=B 262 ((write (r4 & 255)) 472 (base64-ccl-decode-string string) 473 (error "Invalid encoded-text %s" string))) 474Result.scala git://github.com/etorreborre/specs2.git | Scala | 333 lines
37 case Failure(_, _, _, _) => args.failureColor("x") 38 case Error(_, _) => args.errorColor ("!") 39 case Pending(_) => args.pendingColor("*") 59 case Failure(_, _, _, _) => "failure" 60 case Error(_, _) => "error" 61 case Pending(_) => "pending" 71 case Failure(m, e, st, d) => Failure(msg, e, st, d) 72 case Error(m, st) => Error(msg, st) 73 case Skipped(m, e) => Skipped(msg, e) 134 case (Success(msg1), Error(msg2, st1)) => m2.updateMessage(msg1+"; "+msg2) 135 case (Error(msg1, st1), Error(msg2, st2)) => Error(msg1+"; "+msg2, st1) 136 case (Error(msg1, st1), Failure(msg2, e2, st2, d2)) => Error(msg1+"; "+msg2, st1) 162 case (Failure(msg1, e1, st1, d1), Failure(msg2, e2, st2, d2)) => Failure(msg1+"; "+msg2, e1+"; "+e2, st1, NoDetails()) 163 case (Error(msg1, st1), Error(msg2, st2)) => Error(msg1+"; "+msg2, st1) 164 case (Error(msg1, st1), Failure(msg2, e2, st2, d2)) => Error(msg1+"; "+msg2, st1)installer.php git://github.com/pyrocms/pyrocms.git | PHP | 475 lines
176 { 177 $this->form_validation->set_message('test_db_connection', lang('db_failure') . mysql_error()); 178 return false; 354 // Let's tell them why the install failed 355 $this->session->set_flashdata('message', $this->lang->line('error_'.$install['code']) . $install['message']); 356XtGrabKey.m git://anongit.freedesktop.org/git/xorg/test/xts.git/ | Objective C | 0 lines
93 XSendEvent(XtDisplay(labelw_msg), XtWindow(labelw_msg), False, KeyReleaseMask, &event); 94 tet_infoline("ERROR: Timed out waiting for input"); 95 tet_result(TET_UNRESOLVED); 133 if (event.xkey.window != window) { 134 sprintf(ebuf, "ERROR: Key did not go to correct widget"); 135 tet_infoline(ebuf); 144 if (event.xkey.x >= 0) { 145 sprintf(ebuf, "ERROR: KeyRelease was not left of window"); 146 tet_infoline(ebuf); 195 XChangeKeyboardControl(XtDisplay(topLevel), KBAutoRepeatMode, &kbvalues); 196 tet_infoline("PREP: Set up the XtToolkitError handler"); 197 app_ctext = XtWidgetToApplicationContext(topLevel); 197 app_ctext = XtWidgetToApplicationContext(topLevel); 198 XtAppSetErrorMsgHandler(app_ctext, xt_handler); 199 tet_infoline("PREP: Set up widget tree of depth eight (8) return panedw widget");browser.class.php https://bitbucket.org/chamilo/chamilo-app-internship-organizer-dev/ | PHP | 257 lines
42 $this->display_header(); 43 $this->display_error_message(Translation :: get('NotAllowed')); 44 $this->display_footer();Template.js git://github.com/movabletype/movabletype.git | JavaScript | 410 lines
78 if( end < 0 ) 79 throw "Template parsing error: Unable to find matching end token (" + this.endToken + ")."; 80 219 if ( !this.templates.hasOwnProperty( name ) ) { 220 log.error( "Template name " + name + " does not exist!" ); 221 return; 228 } catch( e ) { 229 var error = "Error while processing template:" + name + " - " + e.message; 230 log.error( error ); 230 log.error( error ); 231 throw error; 232 } 337 if( !params ) 338 throw "Template Filter Error: substr() requires at least one parameter"; 339global_settings.py https://bitbucket.org/mirror/django/ | Python | 299 lines
17 18# People who get code error notifications. 19# In the format (('Full Name', 'email@domain.com'), ('Full Name', 'anotheremail@domain.com')) 87 88# E-mail address that error messages come from. 89SERVER_EMAIL = 'root@localhost'urlresolvers.py https://bitbucket.org/mirror/django/ | Python | 204 lines
75 self.current_arg += 1 76 except IndexError: 77 # The arg wasn't passed in. 110 return self.func, args, kwargs 111 except AttributeError: 112 self.func = self.get_callback() 118 return getattr(__import__(mod_name, '', '', ['']), func_name) 119 except ImportError, e: 120 raise ViewDoesNotExist, "Could not import %s. Error was: %s" % (mod_name, str(e)) 120 raise ViewDoesNotExist, "Could not import %s. Error was: %s" % (mod_name, str(e)) 121 except AttributeError, e: 122 raise ViewDoesNotExist, "Tried %s in module %s. Error was: %s" % (func_name, mod_name, str(e)) 176 return getattr(__import__(mod_name, '', '', ['']), func_name), {} 177 except (ImportError, AttributeError), e: 178 raise ViewDoesNotExist, "Tried %s. Error was: %s" % (callback, str(e))smarty.py http://marave.googlecode.com/svn/trunk/ | Python | 1018 lines
99 return unichr(int(text[2:-1])) 100 except ValueError: 101 pass 105 text = unichr(htmlentitydefs.name2codepoint[text[1:-1]]) 106 except KeyError: 107 passmain.py http://marave.googlecode.com/svn/trunk/ | Python | 1512 lines
43 SOUND=True 44except ImportError: 45 try: 47 SOUND=True 48 except ImportError: 49 pass 56 from editor.highlight.SyntaxHighlighter import srchiliteqt 57except ImportError: 58 srchiliteqt = None 133 self.ui.langBox.addItem(l) 134 except ImportError: 135 self.ui.langBox.setEnabled(False) 337 self.setViewport(QtOpenGL.QGLWidget()) 338 except ImportError: 339 print 'Qt OpenGL support not available'feed.cljs git://github.com/fmw/vix.git | ClojureScript | 399 lines
94 (create-document-list-events language feed-name)) 95 (ui/render-template main-el tpl/list-documents-error)))))) 96 104 (create-feed-list-events)) 105 (ui/render-template main-el tpl/list-feeds-error)))) 106 172 slug-label-el (dom/getElement "default-slug-format-select-label") 173 err #(ui/display-error status-el % slug-el slug-label-el) 174 invalid-tokens (get-invalid-tokens slug)] 188 (err default-slug-has-consecutive-dashes-or-slashes-err) 189 :else (ui/remove-error status-el slug-el slug-label-el)))) 190 197 dsfs-el (dom/getElement "default-slug-format-select") 198 err #(ui/display-error status-el % name-el name-label-el)] 199soyutils.js git://github.com/fmw/vix.git | JavaScript | 880 lines
100 * 101 * Calling this with null, undefined, or empty arguments is an error. 102 *MenuRenderer.java http://krank.googlecode.com/svn/trunk/ | Java | 836 lines
140 throw new ConverterException 141 (MessageUtils.getExceptionMessage(MessageUtils.CONVERSION_ERROR_MESSAGE_ID, 142 params)); 214 throw new NullPointerException( 215 MessageUtils.getExceptionMessageString(MessageUtils.NULL_PARAMETERS_ERROR_MESSAGE_ID, 216 "context")); 219 throw new NullPointerException( 220 MessageUtils.getExceptionMessageString(MessageUtils.NULL_PARAMETERS_ERROR_MESSAGE_ID, 221 "component")); 297 throw new NullPointerException( 298 MessageUtils.getExceptionMessageString(MessageUtils.NULL_PARAMETERS_ERROR_MESSAGE_ID, 299 "context")); 302 throw new NullPointerException( 303 MessageUtils.getExceptionMessageString(MessageUtils.NULL_PARAMETERS_ERROR_MESSAGE_ID, 304 "component"));CrudControllerBase.java http://krank.googlecode.com/svn/trunk/ | Java | 573 lines
240 } catch (Exception ex) { 241 logger.error("Unable to create entity",ex); 242 throw new RuntimeException(ex);GenericDaoJpaWithoutJpaTemplate.java http://krank.googlecode.com/svn/trunk/ | Java | 752 lines
114 if (!hasId(entity)) { 115 // TODO: the error reporting could be deferred (the entity has an ID 116 // that is in the db but not in the entity manager)sessions.py http://sulley.googlecode.com/svn/trunk/ | Python | 1096 lines
173 else: 174 raise sex.error("INVALID PROTOCOL SPECIFIED: %s" % self.proto) 175 336 if not self.targets: 337 raise sex.error("NO TARGETS SPECIFIED IN SESSION") 338 339 if not self.edges_from(self.root.id): 340 raise sex.error("NO REQUESTS SPECIFIED IN SESSION") 341blocks.py http://sulley.googlecode.com/svn/trunk/ | Python | 825 lines
76 if not self.block_stack: 77 raise sex.error("BLOCK STACK OUT OF SYNC") 78 91 if item.name in self.names.keys(): 92 raise sex.error("BLOCK NAME ALREADY EXISTS: %s" % item.name) 93 110 if self.block_stack: 111 raise sex.error("UNCLOSED BLOCK: %s" % self.block_stack[-1].name) 112SOIL.c http://phoenixgl.googlecode.com/svn/trunk/ | C | 2035 lines
15 16#define SOIL_CHECK_FOR_GL_ERRORS 0 17 43 44/* error reporting */ 45char *result_string_pointer = "SOIL initialized"; 184 /* no direct uploading of the image as a DDS file */ 185 /* error check */ 186 if( (fake_HDR_format != SOIL_HDR_RGBE) && 297 unsigned int tex_id; 298 /* error checking */ 299 if( (x_pos_file == NULL) || 488 unsigned int tex_id; 489 /* error checking */ 490 if( (x_pos_buffer == NULL) ||DBI.pm git://github.com/mschilli/log4perl.git | Perl | 646 lines
43 44 $self->{SQL} = $p{sql}; #save for error msg later on 45 78 DBI->connect(@params{qw(datasource username password)}, 79 {PrintError => 0, $params{attrs} ? %{$params{attrs}} : ()}) 80 or croak "Log4perl: $DBI::errstr"; 138 139 my $errstr = "[no error]"; 140 153 # missing parameters or some such). Abort. 154 croak "Log4perl: DBI appender error: '$errstr'"; 155 } 163 ($self->{reconnect_attempts} == 1 ? "" : "s") . 164 " (last error error was [$errstr]"; 165 }File.pm git://github.com/mschilli/log4perl.git | Perl | 590 lines
338 # by close() internally before close() gets to it, it'll 339 # result in a weird (but benign) error that we don't want to 340 # expose to the user. 344 if( $Log::Log4perl::CHATTY_DESTROY_METHODS ) { 345 warn "$$: pipe closed with ECHILD error -- guess that's ok"; 346 }LDAPConfigurator.pm git://github.com/mschilli/log4perl.git | Perl | 790 lines
62 if ( $mesg->code ) { 63 die $mesg->error; 64 } 75 76 #DEBUG where are errors here? 77 #if ($result->code) { 77 #if ($result->code) { 78 # die $mesg->error; 79 #} 432 my $value = subst($child->getAttribute('value')); 433 if ($value =~ /^(all|debug|info|warn|error|fatal|off|null)^/) { 434 $value = uc $value; 498 499 }elsif ($tag_name eq 'errorHandler'){ 500 die "errorHandlers not supported yet";Config.pm git://github.com/mschilli/log4perl.git | Perl | 1219 lines
19our $CONFIG_INTEGRITY_CHECK = 1; 20our $CONFIG_INTEGRITY_ERROR = undef; 21 325 warn "Log::Log4perl configuration looks suspicious: ", 326 "$CONFIG_INTEGRITY_ERROR"; 327 } 338 if(! $LOGGERS_DEFINED) { 339 $CONFIG_INTEGRITY_ERROR = "No loggers defined"; 340 return 0; 343 if(scalar keys %Log::Log4perl::Logger::APPENDER_BY_NAME == 0) { 344 $CONFIG_INTEGRITY_ERROR = "No appenders defined"; 345 return 0; 366 } else { 367 die "ERROR: you didn't tell me how to " . 368 "implement your appender '$appname'"Appender.pm git://github.com/mschilli/log4perl.git | Perl | 738 lines
62 63 $@ and die "ERROR: can't load appenderclass '$appenderclass'\n$@"; 64 print "Appender class $appenderclass loaded OK ($@)\n" if _INTERNAL_DEBUG; 128 $self->{level} = ($level =~ /^(\d+)$/) ? $level : 129 # Take advantage of &to_priority's error reporting 130 Log::Log4perl::Level::to_priority($level);FAQ.pm git://github.com/mschilli/log4perl.git | Perl | 2682 lines
21When it comes to logging, people typically think: "Aha. Writing out 22debug and error messages. Debug is lower than error. Easy. I'm gonna 23write my own." Writing a logging module is like a rite of passage for 45 DEBUG "A low-level message"; 46 ERROR "Won't make it until level gets increased to ERROR"; 47 118 my $logger = get_logger("Bar::Twix"); 119 $logger->error("Oh my, a dreadful error!"); 120 $logger->warn("Oh my, a dreadful warning!"); 140 141 log4perl.logger = ERROR, FileApp 142 181 my $logger = get_logger("Bar::Twix"); 182 $logger->error("Oh my, a dreadful error!"); 183Log4perl.pm git://github.com/mschilli/log4perl.git | Perl | 2967 lines
130 # Define DEBUG, INFO, etc. routines in caller's package 131 for(qw(TRACE DEBUG INFO WARN ERROR FATAL ALWAYS)) { 132 my $level = $_;query_server_spec.rb git://github.com/cloudant/bigcouch.git | Ruby | 824 lines
94 rj = JSON.parse("[#{resp.chomp}]")[0] 95 rescue JSON::ParserError 96 puts "JSON ERROR (dump under trace mode)" 449 }, 450 "error" => { 451 "js" => <<-JS, 452 function() { 453 throw(["error","error_key","testing"]); 454 } 457 fun(A, B) -> 458 throw([<<"error">>,<<"error_key">>,<<"testing">>]) 459 end. 464 function() { 465 throw(["fatal","error_key","testing"]); 466 }couch_file.erl git://github.com/cloudant/bigcouch.git | Erlang | 625 lines
56 case Error of 57 {error, eacces} -> {file_permission_error, Filepath}; 58 _ -> Error 235 236init_status_error(ReturnPid, Ref, Error) -> 237 ReturnPid ! {Ref, self(), Error}, 406 % error reading second header. It's ok, but log it. 407 ?LOG_INFO("Secondary header corruption (error: ~p). Using primary header.", [Error]), 408 {ok, Header1} 414 % log corrupt primary header. It's ok since the secondary is still good. 415 ?LOG_INFO("Primary header corruption (error: ~p). Using secondary header.", [Error]), 416 {ok, Header2}; 418 % error reading secondary header too 419 % return the error, no need to log anything as the caller will be responsible for dealing with the error. 420 Errorcouch_httpd_show.erl git://github.com/cloudant/bigcouch.git | Erlang | 404 lines
68handle_doc_show_req(Req, _Db, _DDoc) -> 69 send_error(Req, 404, <<"show_error">>, <<"Invalid path.">>). 70 124handle_doc_update_req(Req, _Db, _DDoc) -> 125 send_error(Req, 404, <<"update_error">>, <<"Invalid path.">>). 126 165handle_view_list_req(#httpd{method='GET'}=Req, _Db, _DDoc) -> 166 send_error(Req, 404, <<"list_error">>, <<"Invalid path.">>); 167 184handle_view_list_req(#httpd{method='POST'}=Req, _Db, _DDoc) -> 185 send_error(Req, 404, <<"list_error">>, <<"Invalid path.">>); 186 335 throw:Error -> 336 send_chunked_error(Resp, Error), 337 throw({already_sent, Resp, Error})couch_view_group.erl git://github.com/cloudant/bigcouch.git | Erlang | 647 lines
48 Error -> 49 ?LOG_DEBUG("request_group Error ~p", [Error]), 50 throw(Error) 57 Error -> 58 throw(Error) 59 end. 79 Error -> 80 Error 81 end. 89 true -> 90 ReturnPid ! {Ref, self(), {error, invalid_view_seq}}, 91 couch_db:close(Db), 385 end; 386 {error, Reason} = Error -> 387 ?LOG_ERROR("Failed to open view file '~s': ~s", [couch_httpd_view.erl git://github.com/cloudant/bigcouch.git | Erlang | 777 lines
26 start_json_response/2, start_json_response/3, end_json_response/1, 27 send_chunked_error/2]). 28 250 251% query_parse_error could be removed 252% we wouldn't need to pass the view type, it'd just parse params. 252% we wouldn't need to pass the view type, it'd just parse params. 253% I'm not sure what to do about the error handling, but 254% it might simplify things to have a parse_view_params function 277 {reduce, _, _} -> 278 % we can simplify code if we just drop this error message. 279 Msg = <<"Multi-key fetchs for reduce " 280 "view must include `group=true`">>, 281 throw({query_parse_error, Msg}); 282 _ ->couch_view.erl git://github.com/cloudant/bigcouch.git | Erlang | 480 lines
37 Pid; 38 Error -> 39 throw(Error) 47 Pid; 48 Error -> 49 throw(Error) 50 end; 51 Error -> 52 throw(Error) 138 end; 139 Error -> 140 Error 222 end; 223 Error -> 224 Errorcouch_rep.erl git://github.com/cloudant/bigcouch.git | Erlang | 932 lines
91 {ok, {cancelled, ?l2b(BaseId)}}; 92 {error, _} = Error -> 93 Error 134 throw:Error -> 135 {stop, Error} 136 end. 273 {noreply, State}; 274handle_info({'EXIT', _Pid, {Err, Reason}}, State) when Err == source_error; 275 Err == target_error -> 294terminate(Reason, #state{listeners = Listeners, init_args=[RepId | _]} = State) -> 295 [gen_server:reply(L, {error, Reason}) || L <- Listeners], 296 terminate_cleanup(State). 313 Pid; 314 {error, running} -> 315 %% this error occurs if multiple replicators are racingcouch_db_updater.erl git://github.com/cloudant/bigcouch.git | Erlang | 984 lines
98 #db{compactor_pid=Pid}=Db) when Pid /= nil -> 99 {reply, {error, purge_during_compaction}, Db}; 100handle_call({purge_docs, IdRevs}, _From, Db) -> 266handle_info({'DOWN', Ref, _, _, Reason}, #db{fd_monitor=Ref, name=Name} = Db) -> 267 ?LOG_ERROR("DB ~s shutting down - Fd ~p", [Name, Reason]), 268 {stop, normal, Db}.couch_db.erl git://github.com/cloudant/bigcouch.git | Erlang | 1207 lines
46 {ok, Fd}; 47 {error, enoent} -> 48 % couldn't find file. is there a compact version? This can happen if 55 {ok, Fd}; 56 {error, enoent} -> 57 {not_found, no_db_file} 58 end; 59 Error -> 60 Error 67% this is for opening a database for internal purposes like the replicator 68% or the view indexer. it never throws a reader error. 69open_int(DbName, Options) -> 80 catch 81 throw:Error -> 82 close(Db),couch_httpd_rewrite.erl git://github.com/cloudant/bigcouch.git | Erlang | 463 lines
69%% default all methods match a rule. (method is equal to "*" by default). Then 70%% It will try to match the path to one rule. If no rule match, then a 404 error 71%% is displayed. 126 undefined -> 127 couch_httpd:send_error(Req, 404, <<"rewrite_error">>, 128 <<"Invalid path.">>); 129 Bin when is_binary(Bin) -> 130 couch_httpd:send_error(Req, 400, <<"rewrite_error">>, 131 <<"Rewrite rules are a String. They must be a JSON Array.">>); 195%% @doc Try to find a rule matching current url. If none is found 196%% 404 error not_found is raised 197try_bind_path([], _Method, _PathParts, _QueryList) -> 396 undefined -> 397 throw({error, invalid_rewrite_target}); 398 To ->couch_httpd.erl git://github.com/cloudant/bigcouch.git | Erlang | 1014 lines
27-export([start_json_response/2, start_json_response/3, end_json_response/1]). 28-export([send_response/4,send_method_not_allowed/2,send_error/4, send_redirect/2,send_chunked_error/2]). 29-export([send_json/2,send_json/3,send_json/4,last_chunk/1,parse_multipart_request/3]). 281 throw:Error -> 282 ?LOG_DEBUG("Minor error in HTTP request: ~p",[Error]), 283 ?LOG_DEBUG("Stacktrace: ~p",[erlang:get_stacktrace()]), 289 error:function_clause -> 290 ?LOG_ERROR("function_clause error in HTTP request",[]), 291 ?LOG_INFO("Stacktrace: ~p",[erlang:get_stacktrace()]), 293 Tag:Error -> 294 ?LOG_ERROR("Uncaught error in HTTP request: ~p",[{Tag, Error}]), 295 ?LOG_INFO("Stacktrace: ~p",[erlang:get_stacktrace()]), 295 ?LOG_INFO("Stacktrace: ~p",[erlang:get_stacktrace()]), 296 send_error(HttpReq, Error) 297 end,couch_replication_manager.erl git://github.com/cloudant/bigcouch.git | Erlang | 630 lines
94 {<<"_replication_id">>, ?l2b(BaseId)}]), 95 ok = gen_server:call(?MODULE, {rep_error, RepId, Error}, infinity) 96 end. 151 152handle_call({rep_error, RepId, Error}, _From, State) -> 153 {reply, ok, replication_error(State, RepId, Error)}; 327 328rep_db_update_error(Error, DocId) -> 329 case Error of 476 true = ets:insert(?REP_TO_STATE, {RepId, NewRepState}), 477 ?LOG_ERROR("Error in replication `~s` (triggered by document `~s`): ~s" 478 "~nRestarting replication in ~p seconds.", 478 "~nRestarting replication in ~p seconds.", 479 [pp_rep_id(RepId), DocId, to_binary(error_reason(Error)), Wait]), 480 Server = self(),show_documents.js git://github.com/cloudant/bigcouch.git | JavaScript | 462 lines
63 }), 64 "render-error" : stringFun(function(doc, req) { 65 return noSuchVariable; 190 191 // show error 192 var xhr = CouchDB.request("GET", "/test_suite_db/_design/template/_show/"); 204 205 // // error stacktraces 206 // xhr = CouchDB.request("GET", "/test_suite_db/_design/template/_show/render-error/"+docid); 206 // xhr = CouchDB.request("GET", "/test_suite_db/_design/template/_show/render-error/"+docid); 207 // T(JSON.parse(xhr.responseText).error == "render_error"); 208 220 var resp = JSON.parse(xhr.responseText); 221 T(resp.error == "not_found"); 222list_views.js git://github.com/cloudant/bigcouch.git | JavaScript | 475 lines
147 }), 148 rowError : stringFun(function(head, req) { 149 send("head"); 150 var row = getRow(); 151 send(fooBarBam); // intentional error 152 return "tail"; 344 T(xhr.status == 400); 345 T(/query_parse_error/.test(xhr.responseText)); 346 346 347 var xhr = CouchDB.request("GET", "/test_suite_db/_design/lists/_list/rowError/basicView"); 348 T(/ReferenceError/.test(xhr.responseText));futon.js git://github.com/cloudant/bigcouch.git | JavaScript | 535 lines
36 }, 37 error : function(code, error, reason) { 38 $.futon.session.sidebar(); 54 }, 55 error : function(status, error, reason) { 56 $.futon.session.sidebar(); 87 success : function() { 88 doLogin(data.name, data.password, function(errors) { 89 if(!$.isEmptyObject(errors)) { 89 if(!$.isEmptyObject(errors)) { 90 callback(errors); 91 return; 93 doSignup(data.name, null, function(errors) { 94 if (errors && errors.name && errors.name.indexOf && errors.name.indexOf("taken") == -1) { 95 callback(errors);futon.browse.js git://github.com/cloudant/bigcouch.git | JavaScript | 1289 lines
30 $.couch.db(data.name).create({ 31 error: function(status, id, reason) { callback({name: reason}) }, 32 success: function(resp) { 65 }, 66 error : function() {} 67 }); 217 submit: function(data, callback) { 218 var errors = {}; 219 var secObj = { 242 } else { 243 errors[key + "_names"] = "The " + key + 244 " names must be an array of strings"; 406 db.openDoc("_design/" + designDocId, { 407 error: function(status, error, reason) { 408 if (status == 40couch.js git://github.com/cloudant/bigcouch.git | JavaScript | 473 lines
32 this.last_req = this.request("PUT", this.uri); 33 CouchDB.maybeThrowError(this.last_req); 34 return JSON.parse(this.last_req.responseText); 42 } 43 CouchDB.maybeThrowError(this.last_req); 44 return JSON.parse(this.last_req.responseText); 55 {body: JSON.stringify(doc)}); 56 CouchDB.maybeThrowError(this.last_req); 57 var result = JSON.parse(this.last_req.responseText); 68 } 69 CouchDB.maybeThrowError(this.last_req); 70 return JSON.parse(this.last_req.responseText); 76 + "?rev=" + doc._rev); 77 CouchDB.maybeThrowError(this.last_req); 78 var result = JSON.parse(this.last_req.responseText);jquery.couch.js git://github.com/cloudant/bigcouch.git | JavaScript | 705 lines
78 } else if (options.error) { 79 options.error(req.status, resp.error, resp.reason); 80 } else { 80 } else { 81 alert("An error occurred getting session info: " + resp.reason); 82 } 136 } else if (options.error) { 137 options.error(req.status, resp.error, resp.reason); 138 } else { 156 } else if (options.error) { 157 options.error(req.status, resp.error, resp.reason); 158 } else { 412 } else if (options.error) { 413 options.error(req.status, resp.error, resp.reason); 414 } else {http.c git://github.com/cloudant/bigcouch.git | C | 638 lines
132 { 133 JS_ReportError(cx, "Failed to create CouchHTTP instance."); 134 goto error; 143 { 144 JS_ReportError(cx, "Failed to set private CouchHTTP data."); 145 goto error; 150 151error: 152 if(http) free(http); 179 if(!http) { 180 JS_ReportError(cx, "Invalid CouchHTTP instance."); 181 goto done; 184 if(JSVAL_IS_VOID(mth)) { 185 JS_ReportError(cx, "You must specify a method."); 186 goto done;vc.py git://github.com/cloudant/bigcouch.git | Python | 456 lines
68 69class BatchFileExecutionError(VisualCException): 70 pass 119 host = _ARCH_TO_CANONICAL[host_platform.lower()] 120 except KeyError, e: 121 msg = "Unrecognized host architecture %s" 121 msg = "Unrecognized host architecture %s" 122 raise ValueError(msg % repr(host_platform)) 123 125 target = _ARCH_TO_CANONICAL[target_platform.lower()] 126 except KeyError, e: 127 raise ValueError("Unrecognized target architecture %s" % target_platform) 156 if not len(t) == 2: 157 raise ValueError("Unrecognized version %s (%s)" % (msvc_version,msvc_version_numeric)) 158 try:vs.py git://github.com/cloudant/bigcouch.git | Python | 499 lines
30 31import SCons.Errors 32import SCons.Util 87 comps = read_reg(key) 88 except WindowsError, e: 89 debug('find_vs_dir_by_reg(): no VS registry key %s' % repr(key)) 123 return self._cache['batch_file'] 124 except KeyError: 125 batch_file = self.find_batch_file() 132 return self._cache['executable'] 133 except KeyError: 134 executable = self.find_executable() 389 msg = "Visual Studio version %s is not supported" % repr(msvs) 390 raise SCons.Errors.UserError(msg) 391 get_installed_visual_studios()msi.py git://github.com/cloudant/bigcouch.git | Python | 527 lines
71 return id_set[id][s] 72 except KeyError: 73 # no we did not so initialize with the id 219 except KeyError, e: 220 raise SCons.Errors.UserError( '"%s" package field for MSI is missing.' % e.args[0] ) 221intelc.py git://github.com/cloudant/bigcouch.git | Python | 482 lines
55# Exceptions for this tool 56class IntelCError(SCons.Errors.InternalError): 57 pass 57 pass 58class MissingRegistryError(IntelCError): # missing registry entry 59 pass 59 pass 60class MissingDirError(IntelCError): # dir not found 61 pass 61 pass 62class NoRegistryModuleError(IntelCError): # can't read registry at all 63 pass 331 topdir = get_intel_compiler_top(version, abi) 332 except (SCons.Util.RegError, IntelCError): 333 topdir = None__init__.py git://github.com/cloudant/bigcouch.git | Python | 681 lines
114 if str(e)!="No module named %s"%self.name: 115 raise SCons.Errors.EnvironmentError(e) 116 try: 124 return importer.load_module(self.name) 125 except ImportError, e: 126 pass 144 if str(e)!="No module named %s"%self.name: 145 raise SCons.Errors.EnvironmentError(e) 146 try: 153 m = "No tool named '%s': %s" % (self.name, e) 154 raise SCons.Errors.EnvironmentError(m) 155 except ImportError, e: 156 m = "No tool named '%s': %s" % (self.name, e) 157 raise SCons.Errors.EnvironmentError(m) 158LaTeX.py git://github.com/cloudant/bigcouch.git | Python | 384 lines
54 save = env['ENV'][var] 55 except KeyError: 56 save = _null 63 env.PrependENVPath(var, [os.path.abspath(p) for p in str(env[var]).split(os.pathsep)]) 64 except KeyError: 65 pass 86 path = env['ENV'][self.variable] 87 except KeyError: 88 return () 208 argument=None) ) 209 # To prevent "dict is not hashable error" 210 return tuple(di.items()) 265 sub_path = path[include[0]] 266 except (IndexError, KeyError): 267 sub_path = ()FS.py git://github.com/cloudant/bigcouch.git | Python | 3142 lines
60 61class EntryProxyAttributeError(AttributeError): 62 """ 202 if not duplicate in Valid_Duplicates: 203 raise SCons.Errors.InternalError("The argument of set_duplicate " 204 "should be in Valid_Duplicates") 230 break 231 except (IOError, OSError): 232 # An OSError indicates something happened like a permissions 348 del node._memo['stat'] 349 except (AttributeError, KeyError): 350 pass 351 if result: 352 raise TypeError(errorfmt % node.abspath) 353__init__.py git://github.com/cloudant/bigcouch.git | Python | 1328 lines
141 f = getattr(self, field) 142 except AttributeError: 143 f = None 264 executor = self.executor 265 except AttributeError: 266 if not create: 350 msg = "Explicit dependency `%s' not found, needed by target `%s'." 351 raise SCons.Errors.StopError(msg % (d, self)) 352 if self.implicit is not None: 355 msg = "Implicit dependency `%s' not found, needed by target `%s'." 356 raise SCons.Errors.StopError(msg % (i, self)) 357 self.binfo = self.get_binfo() 372 self.get_executor()(self, **kw) 373 except SCons.Errors.BuildError, e: 374 e.node = self_scons_sets.py git://github.com/cloudant/bigcouch.git | Python | 563 lines
72 if self.__class__ is BaseSet: 73 raise TypeError("BaseSet is an abstract class. " 74 "Use Set or ImmutableSet.") 111 def __cmp__(self, other): 112 raise TypeError("can't compare sets using cmp()") 113 117 # give the expected result when y is a sequence of mixed types, not 118 # raising a pointless TypeError just because y contains a Set, or x is 119 # a Set and y contain's a non-set ("in" invokes only __eq__). 126 # *also* implements __cmp__: if, e.g., __eq__ returns NotImplemented, 127 # Python tries __cmp__ next, and the __cmp__ here then raises TypeError. 128 172 # we did "union = __or__" instead, then Set().union(3) would return 173 # NotImplemented instead of raising TypeError (albeit that *why* it 174 # raises TypeError as-is is also a bit subtle)._scons_subprocess.py git://github.com/cloudant/bigcouch.git | Python | 1281 lines
70stdin, stdout and stderr specify the executed programs' standard 71input, standard output and standard error file handles, respectively. 72Valid values are PIPE, an existing file descriptor (a positive 122 exit code was zero then return, otherwise raise 123 CalledProcessError. The CalledProcessError object will have the 124 return code in the returncode attribute. 139example, when trying to execute a non-existent file. Applications 140should prepare for OSErrors. 141 362# Exception classes used by this module. 363class CalledProcessError(Exception): 364 """This exception is raised when a process run by check_call() returns 392 class pywintypes(object): 393 error = IOError 394 except ImportError:Main.py git://github.com/cloudant/bigcouch.git | Python | 1334 lines
255 256 buildError = SCons.Errors.convert_to_BuildError(e) 257 if not buildError.node: 267 268 if (buildError.exc_info[2] and buildError.exc_info[1] and 269 not isinstance( 270 buildError.exc_info[1], 271 (EnvironmentError, SCons.Errors.StopError, 272 SCons.Errors.UserError))): 327 raise SCons.Errors.UserError(errstr % (pathstr)) 328 except SCons.Errors.UserError, e: 329 print e 329 print e 330 except (IOError, OSError), e: 331 print "scons: Could not remove '%s':" % pathstr, e.strerrorSConsOptions.py git://github.com/cloudant/bigcouch.git | Python | 939 lines
42 43OptionValueError = optparse.OptionValueError 44SUPPRESS_HELP = optparse.SUPPRESS_HELP 149 except ValueError: 150 raise SCons.Errors.UserError("An integer is required: %s"%repr(value)) 151 elif name == 'duplicate': 174 except ValueError: 175 raise SCons.Errors.UserError("An integer is required: %s"%repr(value)) 176 elif name == 'md5_chunksize': 179 except ValueError: 180 raise SCons.Errors.UserError("An integer is required: %s"%repr(value)) 181 elif name == 'warn': 211 fmt = "option %s: nargs='?' is incompatible with short options" 212 raise SCons.Errors.UserError(fmt % self._short_opts[0]) 213SConscript.py git://github.com/cloudant/bigcouch.git | Python | 640 lines
113 retval[export] = loc[export] 114 except KeyError: 115 retval[export] = glob[export] 116 except KeyError, x: 117 raise SCons.Errors.UserError("Export of non-existent variable '%s'"%x) 118 148 except KeyError, x: 149 raise SCons.Errors.UserError("Return of non-existent variable '%s'"%x) 150 229 fs.chdir(ldir, change_os_dir=sconscript_chdir) 230 except OSError: 231 # There was no local directory, so we should be 338 # We did not find any exec of an SConscript file: what?! 339 raise SCons.Errors.InternalError("could not find SConscript stack frame") 340 node.creator = traceback.extract_stack(tb)[0]Util.py git://github.com/cloudant/bigcouch.git | Python | 1492 lines
42try: unicode 43except NameError: UnicodeType = None 44else: UnicodeType = unicode 156 sys.stdout.write(unicode(text)) 157 except IOError: 158 # Stdout might be connected to a pipe that has been closed 161 # then SCons is currently shutdown. We therefore ignore 162 # IOError's here so that SCons can continue and shutdown 163 # properly so that the .sconsign is correctly written 416def to_String_for_signature(obj, to_String_for_subst=to_String_for_subst, 417 AttributeError=AttributeError): 418 try: 419 f = obj.for_signature 420 except AttributeError: 421 return to_String_for_subst(obj)Environment.py git://github.com/cloudant/bigcouch.git | Python | 2318 lines
47import SCons.Defaults 48import SCons.Errors 49import SCons.Memoize 75 76# Pull UserError into the global name space for the benefit of 77# Environment().SourceSignatures(), which has some import statements 78# which seem to mess up its ability to reference SCons directly. 79UserError = SCons.Errors.UserError 80 149 del bd[k] 150 except KeyError: 151 bd = BuilderDict(kwbd, env) 154 if not SCons.Builder.is_a_Builder(v): 155 raise SCons.Errors.UserError('%s is not a Builder.' % repr(v)) 156 bd.update(value)Builder.py git://github.com/cloudant/bigcouch.git | Python | 877 lines
105from SCons.Debug import logInstanceCreation 106from SCons.Errors import InternalError, UserError 107import SCons.Executor 163 #return ext 164 raise UserError("While building `%s': " 165 "Cannot deduce file extension from source files: %s" 244 if 'action' in kw: 245 raise UserError("You must not specify both an action and a generator.") 246 kw['action'] = SCons.Action.CommandGeneratorAction(kw['generator'], {}) 281 282def _node_errors(builder, env, tlist, slist): 283 """Validate that the lists of target and source nodes are 283 """Validate that the lists of target and source nodes are 284 legal for this builder and environment. Raise errors or 285 issue warnings as appropriate.Taskmaster.py git://github.com/cloudant/bigcouch.git | Python | 1017 lines
56 57import SCons.Errors 58import SCons.Node 238 raise SCons.Errors.ExplicitExit(self.targets[0], exc_value.code) 239 except SCons.Errors.UserError: 240 raise 240 raise 241 except SCons.Errors.BuildError: 242 raise 243 except Exception, e: 244 buildError = SCons.Errors.convert_to_BuildError(e) 245 buildError.node = self.targets[0] 381 except EnvironmentError, e: 382 raise SCons.Errors.BuildError(node=t, errstr=e.strerror, filename=e.filename) 383Action.py git://github.com/cloudant/bigcouch.git | Python | 1241 lines
179 180 except AttributeError: 181 # Test if obj is a function object. 213 return pickle.dumps(obj) 214 except (pickle.PicklingError, TypeError): 215 # This is weird, but it seems that nested classes 217 # always be a PicklingError, but some Python 218 # versions seem to return TypeError. Just do 219 # the best we can. 331 else: 332 raise SCons.Errors.UserError( 333 'Invalid command display variable type. ' 339 and kw.get('cmdstr', _null) is not _null: 340 raise SCons.Errors.UserError( 341 'Cannot have both strfunction and cmdstr args to Action()')Subst.py git://github.com/cloudant/bigcouch.git | Python | 904 lines
33 34import SCons.Errors 35 44 45AllowableExceptions = (IndexError, NameError) 46 54 if target: 55 raise SCons.Errors.BuildError(target[0], msg) 56 else: 56 else: 57 raise SCons.Errors.UserError(msg) 58 156 e = obj.escape 157 except AttributeError: 158 return objSConf.py git://github.com/cloudant/bigcouch.git | Python | 1030 lines
128# some error definitions 129class SConfError(SCons.Errors.UserError): 130 def __init__(self,msg): 132 133class ConfigureDryRunError(SConfError): 134 """Raised when a file or directory needs to be updated during a Configure 227 raise 228 elif issubclass(exc_type, SCons.Errors.BuildError): 229 # we ignore Build Errors (occurs, when a test doesn't pass) 269 if T: Trace(': changed %s' % changed) 270 cached_error = cached_error or bi.result 271 else: 298 self.display_cached_string(binfo) 299 raise SCons.Errors.BuildError # will be 'caught' in self.failed 300 elif is_up_to_date:Job.py git://github.com/cloudant/bigcouch.git | Python | 435 lines
38 39import SCons.Errors 40 93 self.num_jobs = num 94 except NameError: 95 pass 151 self.old_sighup = signal.signal(signal.SIGHUP, handler) 152 except AttributeError: 153 pass 204 try: 205 raise SCons.Errors.BuildError( 206 task.targets[0], errstr=interrupt_msg) 255 if self.interrupted(): 256 raise SCons.Errors.BuildError( 257 task.targets[0], errstr=interrupt_msg)Defaults.py git://github.com/cloudant/bigcouch.git | Python | 480 lines
116 shared = src.attributes.shared 117 except AttributeError: 118 shared = None 119 if not shared: 120 raise SCons.Errors.UserError("Source file: %s is static and is not compatible with shared target: %s" % (src, target[0])) 121 222 os.makedirs(str(entry)) 223 except os.error, e: 224 p = str(entry) 227 and os.path.isdir(str(entry)): 228 pass # not an error if already exists 229 else:Conftest.py git://github.com/cloudant/bigcouch.git | Python | 793 lines
47# file extention. Must return an empty string for 48# success, an error message for failure. 49# For reliable test results building should be done just 56# the file extention. Must return an empty string for 57# success, an error message for failure. 58# For reliable test results compiling should be done just 110LogInputFiles = 1 # Set that to log the input files in case of a failed test 111LogErrorMessages = 1 # Set that to log Conftest-generated error messages 112 130 "text" may be used to specify the code to be build. 131 Returns an empty string for success, an error message for failure. 132 """ 255 sure $CFLAGS, $CPPFLAGS and $LIBS are set correctly. 256 Returns an empty string for success, an error message for failure. 257 """Executor.py git://github.com/cloudant/bigcouch.git | Python | 633 lines
226 import SCons.Errors 227 raise SCons.Errors.UserError("Executor must have an action.") 228 action = [action] 316 cwd = self.batches[0].targets[0].cwd 317 except (IndexError, AttributeError): 318 cwd = None 340 status = act(*args, **kw) 341 if isinstance(status, SCons.Errors.BuildError): 342 status.executor = self 345 msg = "Error %s" % status 346 raise SCons.Errors.BuildError( 347 errstr=msg, 391 msg = "Source `%s' not found, needed by target `%s'." 392 raise SCons.Errors.StopError(msg % (s, self.batches[0].targets[0])) 393sconsign.py git://github.com/cloudant/bigcouch.git | Python | 513 lines
236 timestamp = entry.timestamp 237 except AttributeError: 238 timestamp = None 362 db = self.dbm.open(fname, "r") 363 except (IOError, OSError), e: 364 print_e = e 370 db = self.dbm.open(os.path.splitext(fname)[0], "r") 371 except (IOError, OSError): 372 # That didn't work either. See if the file name 376 open(fname, "r") 377 except (IOError, OSError), e: 378 # Nope, that file doesn't even exist, so report that 410 fp = open(name, 'rb') 411 except (IOError, OSError), e: 412 sys.stderr.write("sconsign: %s\n" % (e))scons-time.py git://github.com/cloudant/bigcouch.git | Python | 1544 lines
47 sorted 48except NameError: 49 # Pre-2.4 Python has no sorted() function. 89 result = os.path.realpath(result) 90 except AttributeError: 91 # Python 2.1 has no os.path.realpath() method. 92 pass 93 except TypeError: 94 try: 212 return self.min_x 213 except AttributeError: 214 try: 215 self.min_x = min(self.get_all_x_values()) 216 except ValueError: 217 self.min_x = 0AtompubClient.as http://cmisspaces.googlecode.com/svn/trunk/ | ActionScript | 1193 lines
356 _client.listener.onData = onData; 357 _client.listener.onError = onError; 358 _client.listener.onStatus = onStatus; 359 _client.addEventListener(IOErrorEvent.IO_ERROR, onIOError); 360 _client.addEventListener(SecurityErrorEvent.SECURITY_ERROR, onSecurityError); 361 } 385 386 protected function onError(e:ErrorEvent):void { 387 //trace("AtompubClient onError()"); 395 /* socket event handlers */ 396 protected function onIOError(e:IOErrorEvent):void { 397 //trace("AtompubClient onIOError()"); 401 402 protected function onSecurityError(e:SecurityErrorEvent):void { 403 //trace("AtompubClient onSecurityError()");_Super_ObjectService.as http://cmisspaces.googlecode.com/svn/trunk/ | ActionScript | 495 lines
124 } 125 catch (e: Error) 126 {CMISSpacesAirViewBase.as http://cmisspaces.googlecode.com/svn/trunk/ | ActionScript | 827 lines
48 49 // create html content dialog (keep after first use to avoid recreation errors with 50 // tinymce and webkit html air control)timthumb.php http://timthumb.googlecode.com/svn/trunk/ | PHP | 1245 lines
42if(! defined('CURL_TIMEOUT') ) define ('CURL_TIMEOUT', 20); // Timeout duration for Curl. This only applies if you have Curl installed and aren't using PHP's default URL fetching mechanism. 43if(! defined('WAIT_BETWEEN_FETCH_ERRORS') ) define ('WAIT_BETWEEN_FETCH_ERRORS', 3600); //Time to wait between errors fetching remote file 44 52if(! defined('NOT_FOUND_IMAGE') ) define ('NOT_FOUND_IMAGE', ''); // Image to serve if any 404 occurs 53if(! defined('ERROR_IMAGE') ) define ('ERROR_IMAGE', ''); // Image to serve if an error occurs instead of showing error message 54if(! defined('PNG_IS_TRANSPARENT') ) define ('PNG_IS_TRANSPARENT', FALSE); //42 Define if a png image should have a transparent background color. Use False value if you want to display a custom coloured canvas_colour 147 protected $docRoot = ""; 148 protected $lastURLError = false; 149 protected $localImage = ""; 154 protected $cachefile = ''; 155 protected $errors = array(); 156 protected $toDeletes = array(); 172 } 173 $tim->handleErrors(); 174 if(FILE_CACHE_ENABLED && $tim->tryServerCache()){gproc_tests.erl git://github.com/esl/gproc.git | Erlang | 842 lines
58 after 3000 -> 59 error(timeout) 60 end. 269 after 10000 -> 270 erlang:error(timeout) 271 end. 284 after 10000 -> 285 erlang:error(timeout) 286 end. 404 ?assertEqual(undefined, gproc:where(From)), 405 ?assertError(badarg, gproc:give_away(From, Me)). 406gproc_dist_tests.erl git://github.com/esl/gproc.git | Erlang | 500 lines
116 case code:ensure_loaded(gen_leader) of 117 {error, nofile} -> 118 false; 155 after 1000 -> 156 erlang:error({timeout, [flush_down, Ref]}) 157 end. 245 {'DOWN', Ref, _, _, Reason} -> 246 erlang:error(Reason); 247 Other -> 247 Other -> 248 erlang:error({received,Other}) 249 end), 281 {'DOWN', Ref, _, _, Reason} -> 282 erlang:error(Reason); 283 Other ->gproc_dist.erl git://github.com/esl/gproc.git | Erlang | 992 lines
108reg_or_locate(_, _, _) -> 109 ?THROW_GPROC_ERROR(badarg). 110 123reg(_, _) -> 124 ?THROW_GPROC_ERROR(badarg). 125 128reg_shared(_, _) -> 129 ?THROW_GPROC_ERROR(badarg). 130 135monitor(_, _) -> 136 ?THROW_GPROC_ERROR(badarg). 137 140demonitor(_, _) -> 141 ?THROW_GPROC_ERROR(badarg). 142tricky_file_input.php git://github.com/Datawalke/Coordino.git | PHP | 492 lines
109 var $errorStyles = array( 110 'div' => 'pick_file_wrapper_error', 111 'input' => 'pick_file_error', 116 /** 117 * Array that contains the errors found inside the _findErrors() method. 118 */ 234 /** 235 * Displays a regular file element if the program fails with errors and is requested. 236 */ 242 name="<?=$this->options['input']['name']?>" 243 class="<?=$this->errorStyles['input']?>" 244 onchange="<?=$this->options['input']['submitOnChange']?>" 325 /** 326 * This method finds any errors, and set the errors array with them. 327 */users_controller.php git://github.com/Datawalke/Coordino.git | PHP | 569 lines
77 $this->Email->send(); 78 $this->Session->setFlash('Go check your email!', 'error'); 79 }else { 79 }else { 80 $this->Session->setFlash('No user has that email address.', 'error'); 81 } 102 if($this->Auth->user('public_key') != $public_key) { 103 $this->Session->setFlash('Those are not your settings to change.', 'error'); 104 $this->redirect('/'); 121 $this->User->save($this->data); 122 $this->Session->setFlash('Settings updated!', 'error'); 123 }elseif(empty($this->data['User']['old_password'])) { 127 $this->User->save($this->data); 128 $this->Session->setFlash('Settings updated, except password.', 'error'); 129 }else {posts_controller.php git://github.com/Datawalke/Coordino.git | PHP | 632 lines
34 public function afterFilter() { 35 $this->Session->delete('errors'); 36 } 39 if(!$this->isAdmin($this->Auth->user('id'))) { 40 $this->Session->setFlash(__('You do not have permission to access that..',true), 'error'); 41 $this->redirect('/'); 43 $this->Post->delete($id); 44 $this->Session->setFlash(__('Post deleted',true), 'error'); 45 $this->redirect('/'); 152 $errors = array( 153 'errors' => $validationErrors, 154 'data' => $data 155 ); 156 $this->Session->write(array('errors' => $errors)); 157 $this->redirect($redirectUrl);phpthumb.bmp.php git://github.com/Datawalke/Coordino.git | PHP | 878 lines
110 if ($thisfile_bmp_header_raw['identifier'] != 'BM') { 111 $ThisFileInfo['error'][] = 'Expecting "BM" at offset '.intval(@$ThisFileInfo['avdataoffset']).', found "'.$thisfile_bmp_header_raw['identifier'].'"'; 112 unset($ThisFileInfo['fileformat']); 150 } else { 151 $ThisFileInfo['error'][] = 'Unknown BMP subtype (or not a BMP file)'; 152 unset($ThisFileInfo['fileformat']);phpthumb.class.php git://github.com/Datawalke/Coordino.git | PHP | 3948 lines
43 var $goto = null; // GO TO url after processing 44 var $err = null; // default ERRor image filename 45 var $xto = null; // extract eXif Thumbnail Only 82 83 // * Error message configuration 84 var $config_error_image_width = 400; 85 var $config_error_image_height = 100; 86 var $config_error_message_image_default = ''; 87 var $config_error_bgcolor = 'CCCCFF'; 87 var $config_error_bgcolor = 'CCCCFF'; 88 var $config_error_textcolor = 'FF0000'; 89 var $config_error_fontsize = 1; 89 var $config_error_fontsize = 1; 90 var $config_error_die_on_error = false; 91 var $config_error_silent_die_on_error = false;phpthumb.gif.php git://github.com/Datawalke/Coordino.git | PHP | 1173 lines
19// available, in which case it will attempt to output JPEG using GD functions 20// * added @ error-suppression to two lines where it checks: if ($this->m_img->m_bTrans) 21// otherwise warnings are generated if error_reporting == E_ALL 294 295 if ($Code == $this->Next[$Code]) // Circular table entry, big GIF Error! 296 return -1;phpThumb.php git://github.com/Datawalke/Coordino.git | PHP | 613 lines
35$phpThumb->DebugTimingMessage('phpThumb.php start', __FILE__, __LINE__, $starttime); 36$phpThumb->SetParameter('config_error_die_on_error', true); 37 96 } elseif ($_GET['hash'] != md5(str_replace('&hash='.$_GET['hash'], '', $_SERVER['QUERY_STRING']).$PHPTHUMB_CONFIG['high_security_password'])) { 97 $phpThumb->ErrorImage('ERROR: invalid hash'); 98 } 137 } else { 138 $phpThumb->ErrorImage('ERROR: "'.$SourceFilename.'" cannot be read'); 139 } 198 mysql_close($cid); 199 $phpThumb->ErrorImage('Error in MySQL query: "'.mysql_error($cid).'"'); 200 } 202 mysql_close($cid); 203 $phpThumb->ErrorImage('cannot select MySQL database: "'.mysql_error($cid).'"'); 204 }parsehtml.php git://github.com/Datawalke/Coordino.git | PHP | 618 lines
251 /** TODO **/ 252 #trigger_error('this might need some work', E_USER_NOTICE); 253 $pos = strpos($this->html, '>'); 582# testcase / example 583error_reporting(E_ALL); 584acl.php git://github.com/Datawalke/Coordino.git | PHP | 602 lines
75 $out = "--------------------------------------------------\n"; 76 $out .= __("Error: Your current Cake configuration is set to", true) . "\n"; 77 $out .= __("an ACL implementation other than DB. Please change", true) . "\n"; 147 } elseif (is_string($data)) { 148 $this->error(__('/ can not be used as an alias!', true), __("\t/ is the root, please supply a sub alias", true)); 149 } 173 if (!$this->Acl->{$class}->delete($nodeId)) { 174 $this->error(__("Node Not Deleted", true), sprintf(__("There was an error deleting the %s. Check that the node exists", true), $class) . ".\n"); 175 } 198 if (!$this->Acl->{$class}->save($data)) { 199 $this->out(__("Error in setting new parent. Please make sure the parent node exists, and is not a descendant of the node specified.", true), true); 200 } else { 219 if (empty($nodes)) { 220 $this->error( 221 sprintf(__("Supplied Node '%s' not found", true), $this->args[1]),cake.php git://github.com/Datawalke/Coordino.git | PHP | 666 lines
50/** 51 * Standard error stream. 52 * 148 if (function_exists('ini_set')) { 149 ini_set('display_errors', '1'); 150 ini_set('error_reporting', E_ALL & ~E_DEPRECATED & ~E_STRICT); 150 ini_set('error_reporting', E_ALL & ~E_DEPRECATED & ~E_STRICT); 151 ini_set('html_errors', false); 152 ini_set('implicit_flush', true); 160 define('CORE_PATH', CAKE_CORE_INCLUDE_PATH . DS); 161 define('DISABLE_DEFAULT_ERROR_HANDLING', false); 162 define('CAKEPHP_SHELL', true); 259 CORE_PATH . 'cake' . DS . 'libs' . DS . 'class_registry.php', 260 CORE_PATH . 'cake' . DS . 'console' . DS . 'error.php' 261 );code_coverage_manager.php git://github.com/Datawalke/Coordino.git | PHP | 804 lines
103 if (strpos($testCaseFile, $thisFile) !== false) { 104 trigger_error(__('Xdebug supports no parallel coverage analysis - so this is not possible.', true), E_USER_ERROR); 105 } 225 if (!file_exists($file)) { 226 trigger_error(sprintf(__('This test object file is invalid: %s', true), $file)); 227 return ; 238 if (!file_exists($testObjectFile)) { 239 trigger_error(sprintf(__('This test object file is invalid: %s', true), $testObjectFile)); 240 return ; 552 if (!file_exists($path)) { 553 trigger_error(__('This group file does not exist!', true)); 554 return array();model.test.php git://github.com/Datawalke/Coordino.git | PHP | 919 lines
246/** 247 * test that a bogus response doesn't cause errors to bubble up. 248 *translate.test.php git://github.com/Datawalke/Coordino.git | PHP | 1026 lines
480 481 // MSSQL trigger an error and stops the page even if the debug = 0 482 if ($this->db->config['driver'] != 'mssql') {containable.test.php git://github.com/Datawalke/Coordino.git | PHP | 3795 lines
148 function testInvalidContainments() { 149 $this->expectError(); 150 $r = $this->__containments($this->Article, array('Comment', 'InvalidBinding')); 226 227 $this->expectError(); 228 $r = $this->Article->find('all', array('contain' => array('Comment' => 'NonExistingBinding')));tree.test.php git://github.com/Datawalke/Coordino.git | PHP | 1932 lines
390 $initialCount = $this->Tree->find('count'); 391 //$this->expectError('Trying to save a node under a none-existant node in TreeBehavior::beforeSave'); 392model_behavior.test.php git://github.com/Datawalke/Coordino.git | PHP | 1138 lines
24 25Mock::generatePartial('BehaviorCollection', 'MockModelBehaviorCollection', array('cakeError', '_stop')); 26 255/** 256 * onError method 257 * 261 */ 262 function onError(&$model) { 263 $settings = $this->settings[$model->alias]; 263 $settings = $this->settings[$model->alias]; 264 if (!isset($settings['onError']) || $settings['onError'] == 'off') { 265 return parent::onError($model, $cascade); 266 } 267 echo "onError trigger success"; 268 }model_write.test.php git://github.com/Datawalke/Coordino.git | PHP | 4048 lines
166 * Ensure that if the id key is null but present the save doesn't fail (with an 167 * x sql error: "Column id specified twice") 168 *model_validation.test.php git://github.com/Datawalke/Coordino.git | PHP | 782 lines
145 ); 146 $this->assertEqual($TestModel->validationErrors, $expected); 147 $TestModel->validationErrors = array(); 152 ); 153 $this->assertEqual($TestModel->validationErrors, $expected); 154 $TestModel->validationErrors = array(); 160 ); 161 $this->assertEqual($TestModel->validationErrors, $expected); 162 $TestModel->validationErrors = array(); 166 $expected = array('name' => 'This field cannot be left blank'); 167 $this->assertEqual($TestModel->validationErrors, $expected); 168 192 $expected = array('name' => 'This field cannot be left blank'); 193 $this->assertEqual($TestModel->validationErrors, $expected); 194 }model_delete.test.php git://github.com/Datawalke/Coordino.git | PHP | 834 lines
426 427 $this->expectError(); 428 ob_start(); 430 ob_get_clean(); 431 $this->assertFalse($result, 'deleteAll returned true when find query generated sql error. %s'); 432 }js.test.php git://github.com/Datawalke/Coordino.git | PHP | 833 lines
151 $this->Js->TestEngine =& new StdClass(); 152 $this->expectError(); 153 $this->Js->someMethodThatSurelyDoesntExist();view.test.php git://github.com/Datawalke/Coordino.git | PHP | 1026 lines
25 26if (!class_exists('ErrorHandler')) { 27 App::import('Core', array('Error')); 79/** 80 * ViewTestErrorHandler class 81 * 84 */ 85class ViewTestErrorHandler extends ErrorHandler { 86 153/** 154 * cakeError method 155 * 161 function cakeError($method, $messages) { 162 $error =& new ViewTestErrorHandler($method, $messages); 163 return $error;email.test.php git://github.com/Datawalke/Coordino.git | PHP | 1331 lines
247 248 restore_error_handler(); 249 @$this->Controller->Component->init($this->Controller); 249 @$this->Controller->Component->init($this->Controller); 250 set_error_handler('simpleTestErrorHandler'); 251 269 $this->Controller->Session->delete('Message'); 270 restore_error_handler(); 271 ClassRegistry::flush(); 519 $result = $this->Controller->EmailTest->send('This is the body of the message'); 520 $code = substr($this->Controller->EmailTest->smtpError, 0, 3); 521 $this->skipIf(!$code, '%s Authentication not enabled on server');cookie.test.php git://github.com/Datawalke/Coordino.git | PHP | 530 lines
441/** 442 * test that no error is issued for non array data. 443 * 445 */ 446 function testNoErrorOnNonArrayData() { 447 $this->Controller->Cookie->destroy();acl.test.php git://github.com/Datawalke/Coordino.git | PHP | 646 lines
326 327 $this->expectError('DbAcl::allow() - Invalid node'); 328 $this->assertFalse($this->Acl->allow('Lumbergh', 'ROOT/tpsReports/DoesNotExist', 'create')); 329 330 $this->expectError('DbAcl::allow() - Invalid node'); 331 $this->assertFalse($this->Acl->allow('Homer', 'tpsReports', 'create')); 345 346 $this->expectError("DbAcl::check() - Failed ARO/ACO node lookup in permissions check. Node references:\nAro: WRONG\nAco: tpsReports"); 347 $this->assertFalse($this->Acl->check('WRONG', 'tpsReports', 'read')); 348 349 $this->expectError("ACO permissions key foobar does not exist in DbAcl::check()"); 350 $this->assertFalse($this->Acl->check('Lumbergh', 'smash', 'foobar')); 351 352 $this->expectError("DbAcl::check() - Failed ARO/ACO node lookup in permissions check. Node references:\nAro: users\nAco: NonExistant"); 353 $this->assertFalse($this->Acl->check('users', 'NonExistant', 'read'));auth.test.php git://github.com/Datawalke/Coordino.git | PHP | 1646 lines
534/** 535 * testIsErrorOrTests 536 * 539 */ 540 function testIsErrorOrTests() { 541 $this->Controller->Auth->initialize($this->Controller); 542 543 $this->Controller->name = 'CakeError'; 544 $this->assertTrue($this->Controller->Auth->startup($this->Controller));controller.test.php git://github.com/Datawalke/Coordino.git | PHP | 1546 lines
93 */ 94 var $invalidFields = array('name' => 'error_msg'); 95scaffold.test.php git://github.com/Datawalke/Coordino.git | PHP | 894 lines
347 $result = $ScaffoldView->testGetFilename('error'); 348 $expected = 'cake' . DS . 'libs' . DS . 'view' . DS . 'errors' . DS . 'scaffold_error.ctp'; 349 $this->assertEqual($result, $expected);configure.test.php git://github.com/Datawalke/Coordino.git | PHP | 833 lines
138/** 139 * testSetErrorReporting Level 140 * 142 */ 143 function testSetErrorReportingLevel() { 144 Configure::write('log', false); 146 Configure::write('debug', 0); 147 $result = ini_get('error_reporting'); 148 $this->assertEqual($result, 0); 150 Configure::write('debug', 2); 151 $result = ini_get('error_reporting'); 152 $this->assertEqual($result, E_ALL & ~E_DEPRECATED & ~E_STRICT); 153 154 $result = ini_get('display_errors'); 155 $this->assertEqual($result, 1);object.test.php git://github.com/Datawalke/Coordino.git | PHP | 866 lines
373 function testLog() { 374 @unlink(LOGS . 'error.log'); 375 $this->assertTrue($this->object->log('Test warning 1')); 376 $this->assertTrue($this->object->log(array('Test' => 'warning 2'))); 377 $result = file(LOGS . 'error.log'); 378 $this->assertPattern('/^2[0-9]{3}-[0-9]+-[0-9]+ [0-9]+:[0-9]+:[0-9]+ Error: Test warning 1$/', $result[0]); 378 $this->assertPattern('/^2[0-9]{3}-[0-9]+-[0-9]+ [0-9]+:[0-9]+:[0-9]+ Error: Test warning 1$/', $result[0]); 379 $this->assertPattern('/^2[0-9]{3}-[0-9]+-[0-9]+ [0-9]+:[0-9]+:[0-9]+ Error: Array$/', $result[1]); 380 $this->assertPattern('/^\($/', $result[2]); 382 $this->assertPattern('/^\)$/', $result[4]); 383 unlink(LOGS . 'error.log'); 384 384 385 @unlink(LOGS . 'error.log'); 386 $this->assertTrue($this->object->log('Test warning 1', LOG_WARNING));folder.test.php git://github.com/Datawalke/Coordino.git | PHP | 794 lines
132 133 $this->expectError(); 134 195 $expected = $new . ' is a file'; 196 $result = array_pop($Folder->errors()); 197 $this->assertEqual($result, $expected);error.test.php git://github.com/Datawalke/Coordino.git | PHP | 630 lines
310 ob_start(); 311 $TestErrorHandler = new TestErrorHandler('error404', array('message' => 'Page not found')); 312 ob_clean(); 335 ob_start(); 336 $TestErrorHandler = new TestErrorHandler('error404', array('message' => 'Page not found', 'url' => '/test_error')); 337 $result = ob_get_clean(); 341 ob_start(); 342 $TestErrorHandler =& new TestErrorHandler('error404', array('message' => 'Page not found')); 343 ob_get_clean(); 363 ob_start(); 364 $TestErrorHandler = new TestErrorHandler('error500', array( 365 'message' => 'An Internal Error Has Occurred' 370 ob_start(); 371 $TestErrorHandler = new TestErrorHandler('error500', array( 372 'message' => 'An Internal Error Has Occurred',dispatcher.test.php git://github.com/Datawalke/Coordino.git | PHP | 2625 lines
45 function _invoke(&$controller, $params) { 46 restore_error_handler(); 47 if ($result = parent::_invoke($controller, $params)) { 51 } 52 set_error_handler('simpleTestErrorHandler'); 53 57/** 58 * cakeError method 59 * 63 */ 64 function cakeError($filename, $params) { 65 return array($filename, $params); 762 ), 763 'error' => array( 764 'File' => array(dbo_sqlite.php git://github.com/Datawalke/Coordino.git | PHP | 623 lines
189/** 190 * Returns an array of tables in the database. If there are no tables, an error is raised and the application exits. 191 * 322/** 323 * Returns a formatted error message from previous database operation. 324 * 324 * 325 * @return string Error message 326 */ 327 function lastError() { 328 $error = sqlite_last_error($this->connection); 329 if ($error) { 329 if ($error) { 330 return $error.': '.sqlite_error_string($error); 331 }dbo_oracle.php git://github.com/Datawalke/Coordino.git | PHP | 1159 lines
135/** 136 * Last error issued by oci extension 137 * 139 */ 140 var $_error; 141 192 $this->connected = false; 193 $this->_setError(); 194 return false; 199/** 200 * Keeps track of the most recent Oracle error 201 * 202 */ 203 function _setError($source = null, $clear = false) { 204 if ($source) {dbo_postgres.php git://github.com/Datawalke/Coordino.git | PHP | 978 lines
170/** 171 * Returns an array of tables in the database. If there are no tables, an error is raised and the application exits. 172 * 336/** 337 * Returns a formatted error message from previous database operation. 338 * 338 * 339 * @return string Error message 340 */ 341 function lastError() { 342 $error = pg_last_error($this->connection); 343 return ($error) ? $error : null;dbo_mssql.php git://github.com/Datawalke/Coordino.git | PHP | 792 lines
115 * @param array $config Configuration data from app/config/databases.php 116 * @return boolean True if connected successfully, false on error 117 */ 120 if (!function_exists('mssql_min_message_severity')) { 121 trigger_error(__("PHP SQL Server interface is not installed, cannot continue. For troubleshooting information, see http://php.net/mssql/", true), E_USER_WARNING); 122 } 193 $result = @mssql_query($sql, $this->connection); 194 $this->__lastQueryHadError = ($result === false); 195 return $result; 436 * 437 * @return string Error message with error number 438 */ 441 $error = mssql_get_last_message(); 442 if ($error && !preg_match('/contexto de la base de datos a|contesto di database|changed database|contexte de la base de don|datenbankkontext/i', $error)) { 443 return $error;dbo_mysql.php git://github.com/Datawalke/Coordino.git | PHP | 812 lines
196 if (!$this->execute($this->renderStatement('update', compact('table', 'alias', 'joins', 'fields', 'conditions')))) { 197 $model->onError(); 198 return false; 236 if ($this->execute($this->renderStatement('delete', compact('alias', 'table', 'joins', 'conditions'))) === false) { 237 $model->onError(); 238 return false; 354 if (!is_a($schema, 'CakeSchema')) { 355 trigger_error(__('Invalid schema object', true), E_USER_WARNING); 356 return null;dbo_source.php git://github.com/Datawalke/Coordino.git | PHP | 2939 lines
227 function rawQuery($sql) { 228 $this->took = $this->error = $this->numRows = false; 229 return $this->execute($sql); 233 * Queries the database with given SQL statement, and obtains some metadata about the result 234 * (rows affected, timing, any errors, number of rows in resultset). The query is also logged. 235 * If Configure::read('debug') is set, the log is shown all the time, else it is only shown on errors. 239 * - stats - Collect meta data stats for this query. Stats include time take, rows affected, 240 * any errors, and number of rows returned. Defaults to `true`. 241 * - log - Whether or not the query should be logged to the memory log. 256 $this->affected = $this->lastAffected(); 257 $this->error = $this->lastError(); 258 $this->numRows = $this->lastNumRows(); 264 265 if ($this->error) { 266 $this->showQuery($sql);translate.php git://github.com/Datawalke/Coordino.git | PHP | 649 lines
71 if (!$db->connected) { 72 trigger_error( 73 sprintf(__('Datasource %s for TranslateBehavior of model %s is not connected', true), $model->useDbConfig, $model->alias), 73 sprintf(__('Datasource %s for TranslateBehavior of model %s is not connected', true), $model->useDbConfig, $model->alias), 74 E_USER_ERROR 75 );tree.php git://github.com/Datawalke/Coordino.git | PHP | 980 lines
35/** 36 * Errors 37 * 39 */ 40 var $errors = array(); 41model.php git://github.com/Datawalke/Coordino.git | PHP | 3093 lines
130/** 131 * List of validation errors. 132 * 136 */ 137 var $validationErrors = array(); 138model_behavior.php git://github.com/Datawalke/Coordino.git | PHP | 533 lines
145/** 146 * DataSource error callback 147 * 148 * @param object $model Model using this behavior 149 * @param string $error Error generated in DataSource 150 * @access public 151 */ 152 function onError(&$model, $error) { } 153 285 if (!App::import('Behavior', $behavior)) { 286 $this->cakeError('missingBehaviorFile', array(array( 287 'behavior' => $behavior, 294 if (!class_exists($class)) { 295 $this->cakeError('missingBehaviorClass', array(array( 296 'behavior' => $class,js.php git://github.com/Datawalke/Coordino.git | PHP | 1133 lines
153 } 154 trigger_error(sprintf(__('JsHelper:: Missing Method %s is undefined', true), $method), E_USER_WARNING); 155 }html.php git://github.com/Datawalke/Coordino.git | PHP | 835 lines
87 'li' => '<li%s>%s</li>', 88 'error' => '<div%s>%s</div>', 89 'javascriptblock' => '<script type="text/javascript"%s>%s</script>',form.php git://github.com/Datawalke/Coordino.git | PHP | 2226 lines
213 if (is_a($currentObject, 'Model') && !empty($currentObject->validationErrors)) { 214 $this->validationErrors[Inflector::camelize($currentModel)] =& $currentObject->validationErrors; 215 } 462 * @access public 463 * @link http://book.cakephp.org/view/1426/isFieldError 464 */ 464 */ 465 function isFieldError($field) { 466 $this->setEntity($field); 470/** 471 * Returns a formatted error message for given FORM field, NULL if no errors. 472 * 483 * @param array $options Rendering options for <div /> wrapper tag 484 * @return string If there are errors this method returns an error message, otherwise null. 485 * @access publicpaginator.php git://github.com/Datawalke/Coordino.git | PHP | 814 lines
98 if (!is_callable(array($classname, 'link'))) { 99 trigger_error(sprintf(__('%s does not implement a link() method, it is incompatible with PaginatorHelper', true), $classname), E_USER_WARNING); 100 }helper.php git://github.com/Datawalke/Coordino.git | PHP | 912 lines
114/** 115 * Contains model validation errors of form post-backs 116 * 119 */ 120 var $validationErrors = null; 121 153 function call__($method, $params) { 154 trigger_error(sprintf(__('Method %1$s::%2$s does not exist', true), get_class($this), $method), E_USER_WARNING); 155 } 575/** 576 * Returns null if given FORM field has no errors. Otherwise it returns the constant set in 577 * the array Model->validationErrors. 581 * @param integer $modelID Unique index identifying this record within the form 582 * @return mixed Null if no errors, string with error otherwhise. 583 */view.php git://github.com/Datawalke/Coordino.git | PHP | 993 lines
184/** 185 * holds current errors for the model validation 186 * 189 */ 190 var $validationErrors = array(); 191 453 $out = $this->_render($viewFileName, $this->viewVars); 454 trigger_error(sprintf(__("Error in view %s, got: <blockquote>%s</blockquote>", true), $viewFileName, $out), E_USER_ERROR); 455 } 459/** 460 * Renders a layout. Returns output from _render(). Returns false on error. 461 * Several variables are created for use in layout. 497 $this->output = $this->_render($layoutFileName, $dataForLayout); 498 trigger_error(sprintf(__("Error in layout %s, got: <blockquote>%s</blockquote>", true), $layoutFileName, $this->output), E_USER_ERROR); 499 return false;