PageRenderTime 1590ms queryTime 190ms sortTime 499ms getByIdsTime 42ms findMatchingLines 61ms

100+ results results for 'ERROR repo:qbit_/scottbot' (1590 ms)

Not the results you expected?
ClpSerializer.java git://github.com/liferay/liferay-portal.git | Java | 444 lines
                    
361			catch (Throwable throwable2) {
                    
362				_log.error(throwable2, throwable2);
                    
363
                    
                
dsdcg.f http://ua-fwlis.googlecode.com/svn/trunk/ | FORTRAN Legacy | 277 lines
                    
61C         routines.  For this case, the user must supply the "exact"
                    
62C         solution or a very accurate approximation (one with an error
                    
63C         much less than TOL) through a common block,
                    
84C ERR    :OUT      Double Precision.
                    
85C         Error estimate of error in final approximate solution, as
                    
86C         defined by ITOL.
                    
87C IERR   :OUT      Integer.
                    
88C         Return error flag.
                    
89C           IERR = 0 => All went well.
                    
91C           IERR = 2 => Method failed to converge in ITMAX steps.
                    
92C           IERR = 3 => Error in user input.
                    
93C                       Check input values of N, ITOL.
                    
93C                       Check input values of N, ITOL.
                    
94C           IERR = 4 => User error tolerance set too tight.
                    
95C                       Reset to 500*D1MACH(3).  Iteration proceeded.
                    
                
YVFK.F http://ua-fwlis.googlecode.com/svn/trunk/ | FORTRAN Legacy | 465 lines
                    
323*		 		    FUNCTION IS AT THE MIDDLE OF THE PARALLEL PLATES. WE NEED TO MAKE SURE
                    
324*				    THAT THE RELATIVE ERROR BOUND IS SATISFIED AT LEAST 3 TIMES
                    
325*					LATER COMMENT: NOTE THAT THIS IS POSSIBLY TAKEN CARE OF BY ONLY SUMMING
                    
395*		 		    FUNCTION IS AT THE MIDDLE OF THE PARALLEL PLATES. WE NEED TO MAKE SURE
                    
396*				    THAT THE RELATIVE ERROR BOUND IS SATISFIED AT LEAST 3 TIMES
                    
397*					LATER COMMENT: NOTE THAT THIS IS POSSIBLY TAKEN CARE OF BY ONLY SUMMING
                    
                
result.py http://nltk.googlecode.com/svn/trunk/ | Python | 343 lines
                    
18from nltk_contrib.tiger.index import IndexNodeId
                    
19from nltk_contrib.tiger.query.exceptions import MissingFeatureError
                    
20from nltk_contrib.tiger.utils.parallel import multiprocessing
                    
232        else:
                    
233            raise MissingFeatureError, "Missing feature: disjoint constraint sets. Please file a bug report."
                    
234        self._reset_stats()
                    
245            return self._ncache[node_id]
                    
246        except KeyError:
                    
247            self.node_cache_misses += 1
                    
                
EventLog.pm http://libwin32.googlecode.com/svn/trunk/ | Perl | 474 lines
                    
26	EVENTLOG_END_PAIRED_EVENT
                    
27	EVENTLOG_ERROR_TYPE
                    
28	EVENTLOG_FORWARDS_READ
                    
43    ($constname = $AUTOLOAD) =~ s/.*:://;
                    
44    # reset $! to zero to reset any current errors.
                    
45    local $! = 0;
                    
334
                    
335=item C<EVENTLOG_ERROR_TYPE>
                    
336
                    
336
                    
337An Error event is being logged.
                    
338
                    
                
wspy_dissector.py http://cwoodruf-sfu-cmpt.googlecode.com/svn/trunk/ | Python | 444 lines
                    
155      return self.__st[name]
                    
156    #raise KeyError
                    
157
                    
                
advi.sty git://git.savannah.nongnu.org/skribilo.git | TeX | 417 lines
                    
37  \expandafter \@firstoftwo \else \expandafter \@secondoftwo \fi}
                    
38\def \advi@error #1{\PackageError {Advi}{#1}{Type <RETURN> to proceed.}}
                    
39\def \advi@warning #1{\PackageWarning {Advi}{#1}}
                    
39\def \advi@warning #1{\PackageWarning {Advi}{#1}}
                    
40\def \advi@undefinedenv {\advi@error {Environment \@currenvir\space undefined.
                    
41Maybe you mean \@currenvir ing}}
                    
174       {\advi@global \def \advi@bgfit{ fit=#1}}
                    
175       {\advi@error {Ill formed background fit=#1}}%
                    
176   \fi}
                    
368       \advi@special@ {html:<a hdvi="#2">}\else
                    
369   \advi@error {Incorect anchor mode #1}\fi \fi\endgroup}
                    
370  {\advi@special@ {html:</a>}}
                    
                
prolog.py http://hagoth.googlecode.com/svn/trunk/ | Python | 384 lines
                    
172
                    
173        Raises ValueError if a mapping already exists or the key is not a var.
                    
174        """
                    
175        if not self.is_var(var):
                    
176            raise ValueError("Tried to insert non-var %s into map" % (var,))
                    
177        if var.name in self.vardict:
                    
177        if var.name in self.vardict:
                    
178            raise ValueError("%s is already in the mapping" % (var,))
                    
179
                    
190        if not self.is_var(var):
                    
191            raise ValueError("Got something other than a variable")
                    
192
                    
197        if not self.is_var(var):
                    
198            raise ValueError("Got something other than a variable")
                    
199
                    
                
Xmlable.hs http://hixay.googlecode.com/svn/trunk/ | Haskell | 324 lines
                    
33
                    
34newtype Errors = Errors { errors :: [(Int, String)] } deriving Eq
                    
35instance Monoid Errors where
                    
40        LT -> b
                    
41instance Error Errors where
                    
42    noMsg = mempty
                    
102
                    
103throwErrorX s = get >>= \xs -> throwError $ Errors $ case xs of
                    
104        [] -> [(-1, "There is not enough xml data")]
                    
105        ((n,x):_) -> [(n, s ++ " at " ++ show (map snd $ takeWhile ((==n) . fst) xs) ++ ". Position = " ++ show n)]
                    
106bindX m s = m `catchError` (throwError . Errors . map (second $ (s++) . (" -> "++)) . errors)
                    
107
                    
116        getEnv [(_, Attr n _)] = XdcAttr n; getEnv [(_, Val _)] = XdcVal; getEnv [(_, ElemB n _)] = XdcElem n []
                    
117        getEnv x =  error $ "Error in list parsing (getEnv). Param: " ++ show x
                    
118
                    
                
liquidwartex.c git://git.savannah.nongnu.org/liquidwar.git | C | 448 lines
                    
173      if (!FLAG_HELP)
                    
174	printf ("ERROR! Too few arguments.\n");
                    
175    }
                    
198	  if (!FLAG_HELP)
                    
199	    printf ("ERROR! Color number must be between 8 and 32");
                    
200	}
                    
207	      if (!FLAG_HELP)
                    
208		printf ("ERROR! Too few arguments.\n");
                    
209	    }
                    
232  if (!success)
                    
233    printf ("ERROR! Unable to read '%s'.\n", filename);
                    
234  return success;
                    
271    {
                    
272      printf ("ERROR! Texture is too small.\n");
                    
273      DST_W = DST_H = 1;
                    
                
FileDatastore.tex https://code.google.com/p/opensees-websocket/ | LaTeX | 252 lines
                    
92these arrays. If the files could not be opened, or there is not enough
                    
93memory for the arrays an error message is printed and the program
                    
94is terminated. \\
                    
114the time of this last commit are the same. If they are different, an
                    
115error message is printed and $-1$ is returned. A check is then made to
                    
116see if the component base relations have been updated for this current domain
                    
122needed to be updated. A warning message and a negative number is
                    
123printed if an error occurs. \\
                    
124
                    
127The object first obtains from the Domain relation the information for
                    
128{\em commitTag}. If no information exists, an error message is printed
                    
129and a $-1$ is returned. A check is then made to see if the domain
                    
138with current time and load factor. A warning message and a negative
                    
139number is printed if an error occurs. \\
                    
140
                    
                
kmessageserver.cpp git://pkgs.fedoraproject.org/kdegames3 | C++ | 516 lines
                    
132  {
                    
133    kdError(11001) << k_funcinfo << ": Serversocket::ok() == false" << endl;
                    
134    delete d->mServerSocket;
                    
176  {
                    
177    kdError (11001) << k_funcinfo << ": Maximum number of clients reached!" << endl;
                    
178    return;
                    
227  {
                    
228    kdError(11001) << k_funcinfo << ": Deleting client that wasn't added before!" << endl;
                    
229    return;
                    
256  {
                    
257    kdError (11001) << k_funcinfo << ": sender of the signal was not a KMessageIO object!" << endl;
                    
258    return;
                    
364  {
                    
365    kdError (11001) << k_funcinfo << ": slot was not called from KMessageIO!" << endl;
                    
366    return;
                    
                
qd_port.cpp git://pkgs.fedoraproject.org/djvulibre | C++ | 410 lines
                    
148
                    
149QDPort::QDPort(bool _watch_errors, bool _watch_status,
                    
150	       QObject * parent, const char * name) :
                    
151      QObject(parent, name),
                    
152      watch_errors(_watch_errors), watch_status(_watch_status)
                    
153{
                    
153{
                    
154   sig_error_on=sig_status_on=sig_redisplay_on=
                    
155   sig_relayout_on=sig_chunk_done_on=
                    
171   if (!strncmp(s, SIGNAL(sigNotifyError(const GP<DjVuPort> &, const GUTF8String &)), len))
                    
172      sig_error_on=1;
                    
173   if (!strncmp(s, SIGNAL(sigNotifyStatus(const GP<DjVuPort> &, const QString &)), len))
                    
284{
                    
285   if (sig_error_on && watch_errors)
                    
286   {
                    
                
MainPage.xaml.cs https://SolutionFramework.svn.codeplex.com/svn | C# | 353 lines
                    
218                        var packageInfo = messageParts.ElementAt(1);
                    
219                        var errorMessage = messageParts.ElementAt(2);
                    
220                        var stackTrace = string.Empty;
                    
232
                    
233                        textBlock.Text = packageName + " " + errorMessage;
                    
234                        textBlock.Foreground = new SolidColorBrush(Colors.Red);
                    
236
                    
237                        package.Messages.Add(new PackageMessage(errorMessage, stackTrace));
                    
238
                    
257                    {
                    
258                        var errorMessage = messageParts.ElementAt(1);
                    
259                        var stackTrace = messageParts.ElementAt(1);
                    
261
                    
262                        textBlock.Text = errorMessage;
                    
263
                    
                
SocketExtensions.cs https://rxx.svn.codeplex.com/svn | C# | 417 lines
                    
102			{
                    
103				errorCode = default(SocketError);
                    
104			}
                    
124			Justification = "The args object is disposed in the EndInvoke method.")]
                    
125		internal static IAsyncResult BeginReceive(this Socket socket, byte[] buffer, int offset, int size, out SocketError errorCode, AsyncCallback callback, object state)
                    
126		{
                    
186			Justification = "Needed for parity with .NET 4.0 Framework.")]
                    
187		internal static int EndReceive(this Socket socket, IAsyncResult asyncResult, out SocketError errorCode)
                    
188		{
                    
192			{
                    
193				errorCode = args.SocketError;
                    
194
                    
292			{
                    
293				errorCode = default(SocketError);
                    
294			}
                    
                
Handle.pm http://dwarvis.googlecode.com/svn/trunk/ | Perl | 566 lines
                    
85Wait until the filehandle is readable or writable (and return true) or
                    
86until an error condition happens (and return false).
                    
87
                    
                
util.py https://code.google.com/p/nubox/ | Python | 395 lines
                    
30        item_typecode = TYPE_TO_TYPECODE[item_type]
                    
31    except KeyError:
                    
32        item_typecode = OBJECT_TYPECODES[0]
                    
104            isatomic = False
                    
105    except TypeError:
                    
106        isiterable = False
                    
169    if len(slices) != len(shape):
                    
170        raise ValueError("number of slices must match shape")
                    
171    nd_indices = []
                    
223    if ln < 2:
                    
224        raise ValueError('at least 2 breakpoints required')
                    
225    breakids = []
                    
254#    if len(colors) != 240:
                    
255#        raise ValueError("Array has to be of length 240.")
                    
256#    init = ''
                    
                
s_account.lua http://mta-venux.googlecode.com/svn/trunk/ | Lua | 331 lines
                    
75				outputChatBox("Username or password is invalid! You only have "..(3-attempts).." attempts left!",thePlayer, 255,0,0 )
                    
76				--return outputDebugString("ERROR 1: Failed to retrieve account for user: ".. getPlayerName(thePlayer) .."   function: attemptLogin", 3)
                    
77			end
                    
86	if ( username ~= "" and password ~= "" ) then
                    
87		local success, error = exports.sql:query_free("INSERT INTO `accounts` VALUES('', '".. tostring(username) .."', '".. md5( tostring( password ) ) .."', '".. getPlayerSerial(thePlayer) .."', '0')")
                    
88			if ( error ) then
                    
88			if ( error ) then
                    
89				return outputDebugString( error )
                    
90			else
                    
109				if ( q == false ) then
                    
110						outputDebugString("Error: This player doesnt have any characters.", 3) -- output info message.
                    
111						outputChatBox("* You do not have any characters yet, please create one to play.", thePlayer, 180, 100, 0 )
                    
134	else
                    
135		return outputDebugString("ERROR 5: setupCharacterSelect could not be started, first IF failed.", 2)
                    
136	end
                    
                
libip6tc.c http://xpkit.googlecode.com/svn/trunk/xpkit/ | C | 443 lines
                    
5 * Chains go INPUT, FORWARD, OUTPUT then user chains.
                    
6 * Each user chain starts with an ERROR node.
                    
7 * Every chain ends with an unconditional jump: a RETURN for user chains,
                    
59
                    
60#define ERROR_TARGET		IP6T_ERROR_TARGET
                    
61#define NUMHOOKS		NF_IP6_NUMHOOKS
                    
93#define TC_COMMIT		ip6tc_commit
                    
94#define TC_STRERROR		ip6tc_strerror
                    
95
                    
201			printf("verdict=%u\n", pos);
                    
202	} else if (strcmp(t->u.user.name, IP6T_ERROR_TARGET) == 0)
                    
203		printf("error=`%s'\n", t->data);
                    
435
                    
436	/* Final entry must be error node */
                    
437	assert(strcmp(GET_TARGET(index2entry(h, h->new_number-1))
                    
                
nl.po.in git://git.savannah.gnu.org/gsasl.git | Autoconf | 300 lines
                    
24
                    
25#: src/error.c:46
                    
26msgid "Libgsasl success"
                    
28
                    
29#: src/error.c:47
                    
30msgid "SASL mechanism needs more data"
                    
32
                    
33#: src/error.c:48
                    
34msgid "Unknown SASL mechanism"
                    
36
                    
37#: src/error.c:50
                    
38msgid "SASL mechanism called too many times"
                    
40
                    
41#: src/error.c:52
                    
42msgid "SASL function needs larger buffer (internal error)"
                    
                
OWSExceptionReport.java http://geoforge.googlecode.com/svn/trunk/ | Java | 340 lines
                    
24 * report XML document. Exception reports typically contain one or more independent exceptions indicating an independent
                    
25 * error.
                    
26 * <p/>
                    
39    /**
                    
40     * Indicates the exception report's list of web service exceptions. Each exception indicates an independent error.
                    
41     * Initially assigned to a new <code>ArrayList</code>.
                    
119    /**
                    
120     * Indicates this exception report's list of web service exceptions. Each exception indicates an independent error.
                    
121     *
                    
131    /**
                    
132     * Specifies this exception report's list of web service exceptions. Each exception indicates an independent error.
                    
133     *
                    
                
Default.ascx http://pigeoncms.googlecode.com/svn/trunk/ | ASP.NET | 226 lines
                    
24    <h1><%=base.GetLabel("ModuleTitle", "Comments")%></h1>
                    
25    <asp:Label ID="LblErr" runat="server" Text="" CssClass="error"></asp:Label>
                    
26    <asp:Label ID="LblOk" runat="server" Text="" CssClass="success"></asp:Label>
                    
                
mapping.py https://code.google.com/p/mappa/ | Python | 369 lines
                    
70
                    
71    def handle_literal(self, handler, error_handler, subject, predicate_iri, value, datatype, language):
                    
72        """\
                    
74        """
                    
75        error_handler.reject_literal(self.name, value, datatype)
                    
76
                    
76
                    
77    def handle_object(self, handler, error_handler, subject, predicate_iri, obj, is_blank_node):
                    
78        """\
                    
80        """
                    
81        error_handler.reject_nonliteral(self.name, obj)
                    
82
                    
179
                    
180    def handle_object(self, handler, error_handler, subject, predicate_iri, obj, is_blank_node):
                    
181        handler.startAssociation()
                    
                
Patch.java http://mater.googlecode.com/svn/trunk/ | Java | 467 lines
                    
85		//System.out.print("ADD = "+ new Double((610 / e) )+" ; ");
                    
86		//MaterModel.pError("model.getMaxPopDensity = "+ model.getMaxPopDensity() + " model.getMinPopDensity = " + model.getMinPopDensity() + " model.getOverallMaxPopDensity = "+ model.getOverallMaxPopDensity() + " model.getOverallMinPopDensity = "+ model.getOverallMinPopDensity());
                    
87		//MaterModel.pError("**********************");
                    
87		//MaterModel.pError("**********************");
                    
88		//MaterModel.pError("elevation = "+ this.elevation + "elevation / MAX_E = " + this.elevation / MAX_E);
                    
89		//MaterModel.pError("RESULT: "+ e);
                    
90		/*if( e < 0 )
                    
91			MaterModel.pError("BUG: valor de capacidade de suporte de uma c?Šlula inferior a 0!!! elevation is "+this.elevation+ " and isWater "+this.water);*/
                    
92		return e;
                    
105		//System.out.print("ADD = "+ new Double((610 / e) )+" ; ");
                    
106		//MaterModel.pError("model.getMaxPopDensity = "+ model.getMaxPopDensity() + " model.getMinPopDensity = " + model.getMinPopDensity() + " model.getOverallMaxPopDensity = "+ model.getOverallMaxPopDensity() + " model.getOverallMinPopDensity = "+ model.getOverallMinPopDensity());
                    
107		//MaterModel.pError("**********************");
                    
107		//MaterModel.pError("**********************");
                    
108		//MaterModel.pError("elevation = "+ this.elevation + "elevation / MAX_E = " + this.elevation / MAX_E);
                    
109		//MaterModel.pError("RESULT: "+ e);
                    
                
packmime_ranvar.h http://uu-cope.googlecode.com/svn/trunk/ | C Header | 383 lines
                    
219  static const double RATE_SCALE2;  /* Gamma rate parameter of scale^2 */
                    
220  static const double V_ERROR;      /* variance of error */
                    
221};
                    
245  static const double RATE_SCALE2;  /* Gamma rate parameter of scale^2 */
                    
246  static const double V_ERROR;      /* variance of error */
                    
247};
                    
333  static const double RATE_SCALE2_B;  /* Gamma rate param of scale^2 */
                    
334  static const double V_ERROR_B;      /* variance of error */
                    
335
                    
354  static const double RATE_SCALE2_W;  /* Gamma rate param of scale^2 */
                    
355  static const double V_ERROR_W;      /* variance of error */
                    
356
                    
                
__init__.py https://bitbucket.org/birkenfeld/sphinx/ | Python | 351 lines
                    
18from sphinx import package_dir
                    
19from sphinx.errors import PycodeError
                    
20from sphinx.pycode import nodes
                    
188        except Exception as err:
                    
189            raise PycodeError('error opening %r' % filename, err)
                    
190        obj = cls(fileobj, modname, filename)
                    
197            entry = cls.cache['module', modname]
                    
198            if isinstance(entry, PycodeError):
                    
199                raise entry
                    
207                obj = cls.for_file(source, modname)
                    
208        except PycodeError as err:
                    
209            cls.cache['module', modname] = err
                    
250            self.tokens = list(tokenize.generate_tokens(self.source.readline))
                    
251        except tokenize.TokenError as err:
                    
252            raise PycodeError('tokenizing failed', err)
                    
                
KhorosToMatLab.old git://github.com/aludnam/MATLAB.git | Perl | 452 lines
                    
278    print "elseif nargin ==2\n  Inputs=varargin{1}; arglist=varargin{2};\n";
                    
279    print "else error('Usage: [out1,..] = k$fname(Inputs,arglist).');\nend\n";
                    
280  }
                    
285    print "elseif nargin ==1\n  arglist=varargin{1};\n";
                    
286    print "else error('Usage: [out1,..] = k$fname(arglist).');\nend\n";
                    
287  }
                    
287  }
                    
288print "if size(arglist,2)~=2\n  error('arglist must be of form {''ParameterTag1'',value1;''ParameterTag2'',value2}')\n end\n";
                    
289
                    
342      if (nextinput > length(Inputs)) 
                    
343        error(['Input ' narglist{jj,1} ' has no corresponding input!']); 
                    
344      end
                    
348      if (nextoutput > nargout) 
                    
349        error(['Output nr. ' narglist{jj,1} ' is not present in the assignment list of outputs !']); 
                    
350      end
                    
                
nsISHistory.h http://firefox-mac-pdf.googlecode.com/svn/trunk/ | C Header | 313 lines
                    
94   *                          the index is obtained successfully.
                    
95   *                          <code>NS_ERROR_FAILURE</code> Error in obtaining
                    
96   *                          history entry for the given index.
                    
112   * @throws                  <code>NS_SUCCESS_LOSS_OF_INSIGNIFICANT_DATA</code> Purge was vetod.
                    
113   * @throws                  <code>NS_ERROR_FAILURE</code> numEntries is
                    
114   *                          invalid or out of bounds with the size of history.
                    
206#define NS_FORWARD_SAFE_NSISHISTORY(_to) \
                    
207  NS_SCRIPTABLE NS_IMETHOD GetCount(PRInt32 *aCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCount(aCount); } \
                    
208  NS_SCRIPTABLE NS_IMETHOD GetIndex(PRInt32 *aIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIndex(aIndex); } \
                    
208  NS_SCRIPTABLE NS_IMETHOD GetIndex(PRInt32 *aIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIndex(aIndex); } \
                    
209  NS_SCRIPTABLE NS_IMETHOD GetRequestedIndex(PRInt32 *aRequestedIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRequestedIndex(aRequestedIndex); } \
                    
210  NS_SCRIPTABLE NS_IMETHOD GetMaxLength(PRInt32 *aMaxLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMaxLength(aMaxLength); } \
                    
210  NS_SCRIPTABLE NS_IMETHOD GetMaxLength(PRInt32 *aMaxLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMaxLength(aMaxLength); } \
                    
211  NS_SCRIPTABLE NS_IMETHOD SetMaxLength(PRInt32 aMaxLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMaxLength(aMaxLength); } \
                    
212  NS_SCRIPTABLE NS_IMETHOD GetEntryAtIndex(PRInt32 index, PRBool modifyIndex, nsIHistoryEntry **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEntryAtIndex(index, modifyIndex, _retval); } \
                    
                
nsIDOMHTMLAppletElement.h http://firefox-mac-pdf.googlecode.com/svn/trunk/ | C Header | 309 lines
                    
138#define NS_FORWARD_SAFE_NSIDOMHTMLAPPLETELEMENT(_to) \
                    
139  NS_SCRIPTABLE NS_IMETHOD GetAlign(nsAString & aAlign) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAlign(aAlign); } \
                    
140  NS_SCRIPTABLE NS_IMETHOD SetAlign(const nsAString & aAlign) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAlign(aAlign); } \
                    
140  NS_SCRIPTABLE NS_IMETHOD SetAlign(const nsAString & aAlign) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAlign(aAlign); } \
                    
141  NS_SCRIPTABLE NS_IMETHOD GetAlt(nsAString & aAlt) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAlt(aAlt); } \
                    
142  NS_SCRIPTABLE NS_IMETHOD SetAlt(const nsAString & aAlt) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAlt(aAlt); } \
                    
142  NS_SCRIPTABLE NS_IMETHOD SetAlt(const nsAString & aAlt) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAlt(aAlt); } \
                    
143  NS_SCRIPTABLE NS_IMETHOD GetArchive(nsAString & aArchive) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetArchive(aArchive); } \
                    
144  NS_SCRIPTABLE NS_IMETHOD SetArchive(const nsAString & aArchive) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetArchive(aArchive); } \
                    
144  NS_SCRIPTABLE NS_IMETHOD SetArchive(const nsAString & aArchive) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetArchive(aArchive); } \
                    
145  NS_SCRIPTABLE NS_IMETHOD GetCode(nsAString & aCode) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCode(aCode); } \
                    
146  NS_SCRIPTABLE NS_IMETHOD SetCode(const nsAString & aCode) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCode(aCode); } \
                    
146  NS_SCRIPTABLE NS_IMETHOD SetCode(const nsAString & aCode) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCode(aCode); } \
                    
147  NS_SCRIPTABLE NS_IMETHOD GetCodeBase(nsAString & aCodeBase) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCodeBase(aCodeBase); } \
                    
148  NS_SCRIPTABLE NS_IMETHOD SetCodeBase(const nsAString & aCodeBase) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCodeBase(aCodeBase); } \
                    
                
PtpObject.java http://jpcsp.googlecode.com/svn/trunk/ | Java | 430 lines
                    
84		protected int getExceptionResult(IOException e) {
                    
85			return SceKernelErrors.ERROR_NET_ADHOC_TIMEOUT;
                    
86		}
                    
100		protected int getExceptionResult(IOException e) {
                    
101			return SceKernelErrors.ERROR_NET_ADHOC_CONNECTION_REFUSED;
                    
102		}
                    
121		protected int getExceptionResult(IOException e) {
                    
122			return SceKernelErrors.ERROR_NET_ADHOC_TIMEOUT;
                    
123		}
                    
204			}
                    
205			result = SceKernelErrors.ERROR_NET_ADHOC_PORT_IN_USE;
                    
206		} catch (SocketException e) {
                    
246			// Accept cannot be completed in non-blocking mode
                    
247			result = SceKernelErrors.ERROR_NET_ADHOC_NO_DATA_AVAILABLE;
                    
248		} else {
                    
                
_image_selector_8php_source.html http://openbiz-cubi.googlecode.com/svn/trunk/ | HTML | 130 lines
                    
43<a name="l00013"></a>00013         $this-&gt;m_cssClass = isset($xmlArr[<span class="stringliteral">&quot;ATTRIBUTES&quot;</span>][<span class="stringliteral">&quot;CSSCLASS&quot;</span>]) ? $xmlArr[<span class="stringliteral">&quot;ATTRIBUTES&quot;</span>][<span class="stringliteral">&quot;CSSCLASS&quot;</span>] : <span class="stringliteral">&#39;image_selector&#39;</span>;
                    
44<a name="l00014"></a>00014         $this-&gt;m_cssErrorClass = isset($xmlArr[<span class="stringliteral">&quot;ATTRIBUTES&quot;</span>][<span class="stringliteral">&quot;CSSERRORCLASS&quot;</span>]) ? $xmlArr[<span class="stringliteral">&quot;ATTRIBUTES&quot;</span>][<span class="stringliteral">&quot;CSSERRORCLASS&quot;</span>] : $this-&gt;m_cssClass . <span class="stringliteral">&quot;_error&quot;</span>;
                    
45<a name="l00015"></a>00015         $this-&gt;m_cssFocusClass = isset($xmlArr[<span class="stringliteral">&quot;ATTRIBUTES&quot;</span>][<span class="stringliteral">&quot;CSSFOCUSCLASS&quot;</span>]) ? $xmlArr[<span class="stringliteral">&quot;ATTRIBUTES&quot;</span>][<span class="stringliteral">&quot;CSSFOCUSCLASS&quot;</span>] : $this-&gt;m_cssClass . <span class="stringliteral">&quot;_focus&quot;</span>;
                    
58<a name="l00028"></a>00028         $formobj = $this-&gt;GetFormObj();
                    
59<a name="l00029"></a>00029         <span class="keywordflow">if</span>($formobj-&gt;m_Errors[$this-&gt;m_Name]){
                    
60<a name="l00030"></a>00030                      $func .= <span class="stringliteral">&quot;onclick=\&quot;this.className=&#39;$this-&gt;m_cssClass&#39;\&quot;&quot;</span>;
                    
                
tool_daemon_proc.cpp git://pkgs.fedoraproject.org/condor | C++ | 478 lines
                    
170		if( tmp ) {
                    
171			args_success = DaemonArgs.AppendArgsV1Raw(tmp,&args_error);
                    
172			dprintf( D_FULLDEBUG, "Daemon Args: %s\n", tmp ) ;
                    
179		dprintf(D_ALWAYS, "Aborting.  Failed to read daemon args: %s\n",
                    
180				args_error.Value());
                    
181		return 0;
                    
235	                      false,
                    
236	                      "Tool Daemon Error file");
                    
237
                    
297	int create_process_errno = errno;
                    
298	if(JobPid == FALSE && errno) create_process_error = strerror(errno);
                    
299
                    
363			dprintf(D_ALWAYS,
                    
364			        "error suspending process family\n");
                    
365		}
                    
                
dri_glx.c git://pkgs.fedoraproject.org/mesa-libGLw | C | 473 lines
                    
83
                    
84static void ErrorMessageF(const char *f, ...)
                    
85{
                    
88    if (getenv("LIBGL_DEBUG")) {
                    
89	fprintf(stderr, "libGL error: ");
                    
90	va_start(args, f);
                    
251             */
                    
252            ErrorMessageF("%s not defined in %s_dri.so!\n"
                    
253			  "Your driver may be too old for this libGL.\n",
                    
266      else {
                    
267	 ErrorMessageF("dlopen %s failed (%s)\n", realDriverName, dlerror());
                    
268      }
                    
271   if (!driver)
                    
272      ErrorMessageF("unable to load driver: %s_dri.so\n", driverName);
                    
273
                    
                
CGIHTTPServer.py https://bitbucket.org/pypy/pypy/ | Python | 378 lines
                    
148            if not (self.have_fork or self.have_popen2 or self.have_popen3):
                    
149                self.send_error(403, "CGI script is not a Python script (%r)" %
                    
150                                scriptname)
                    
152            if not self.is_executable(scriptfile):
                    
153                self.send_error(403, "CGI script is not executable (%r)" %
                    
154                                scriptname)
                    
247                    os.setuid(nobody)
                    
248                except os.error:
                    
249                    pass
                    
253            except:
                    
254                self.server.handle_error(self.request, self.client_address)
                    
255                os._exit(127)
                    
272                nbytes = int(length)
                    
273            except (TypeError, ValueError):
                    
274                nbytes = 0
                    
                
QuadTreeNode.cpp git://github.com/swganh/mmoserver.git | C++ | 433 lines
                    
191            {
                    
192                assert(false && "QuadTreeNode::getObjectsInRange ERROR INVALID ID");
                    
193            }
                    
328        }
                    
329        DLOG(INFO) << "QuadTreeNode::removeObject ERROR FAILED to REMOVE object with id = " << object->getId();
                    
330        return(2);
                    
407		{
                    
408			gLogger->log(LogManager::DEBUG,"QuadTreeNode::addMyObject: ERROR INSERTED OBJECT already exist = %"PRIu64"",  object->getId());
                    
409			return(2);
                    
                
GameSwingDoor.cpp git://github.com/FrictionalGames/PenumbraOverture.git | C++ | 474 lines
                    
85	{
                    
86		Error("Couldn't find game element for entity '%s'\n",mpEntity->GetName().c_str());
                    
87	}
                    
                
keys.rb git://github.com/jnunemaker/mongomapper.git | Ruby | 469 lines
                    
120            attrs['_type'] ? attrs['_type'].constantize : self
                    
121          rescue NameError
                    
122            self
                    
                
BshScriptEngine.java http://beanshell2.googlecode.com/svn/trunk/ | Java | 381 lines
                    
92			// explicit parsing error
                    
93			throw new ScriptException(e.toString(), e.getErrorSourceFile(), e.getErrorLineNumber());
                    
94		} catch (TargetError e) {
                    
96			// set it as the cause ?
                    
97			ScriptException se = new ScriptException(e.toString(), e.getErrorSourceFile(), e.getErrorLineNumber());
                    
98			se.initCause(e.getTarget());
                    
198	private ScriptException constructScriptException(final EvalError e) {
                    
199		return new ScriptException(e.getMessage(), e.getErrorSourceFile(), e.getErrorLineNumber());
                    
200	}
                    
270			// set it as the cause ?
                    
271			ScriptException se = new ScriptException(e.toString(), e.getErrorSourceFile(), e.getErrorLineNumber());
                    
272			se.initCause(e.getTarget());
                    
275			// The script couldn't be evaluated properly
                    
276			throw new ScriptException(e.toString(), e.getErrorSourceFile(), e.getErrorLineNumber());
                    
277		} catch (InterpreterError e) {
                    
                
bodycontent-inc.php http://ebpls.googlecode.com/svn/trunk/ | PHP | 444 lines
                    
2/*Modification History:
                    
32008.04.25: Change constants to strings to remove PHP errors in log lines 99+  line 461??
                    
4*/
                    
                
context.ipp http://hadesmem.googlecode.com/svn/trunk/ | C++ Header | 0 lines
                    
203  {
                    
204    ec = boost::system::error_code(::ERR_get_error(),
                    
205        boost::asio::error::get_ssl_category());
                    
305  {
                    
306    ec = boost::system::error_code(::ERR_get_error(),
                    
307        boost::asio::error::get_ssl_category());
                    
344  {
                    
345    ec = boost::system::error_code(::ERR_get_error(),
                    
346        boost::asio::error::get_ssl_category());
                    
384  {
                    
385    ec = boost::system::error_code(::ERR_get_error(),
                    
386        boost::asio::error::get_ssl_category());
                    
423  {
                    
424    ec = boost::system::error_code(::ERR_get_error(),
                    
425        boost::asio::error::get_ssl_category());
                    
                
headers.html http://hadesmem.googlecode.com/svn/trunk/ | HTML | 0 lines
                    
56
                    
57div.admonition, div.attention, div.caution, div.danger, div.error,
                    
58div.hint, div.important, div.note, div.tip, div.warning {
                    
69div.attention p.admonition-title, div.caution p.admonition-title,
                    
70div.danger p.admonition-title, div.error p.admonition-title,
                    
71div.warning p.admonition-title {
                    
                
Level0.cpp http://wowtbc.googlecode.com/svn/trunk/ | C++ | 497 lines
                    
242	{
                    
243		RedSystemMessage(m_session, "Internal error: Could not find create info.");
                    
244		return false;
                    
                
api.py git://github.com/RuudBurger/CouchPotatoServer.git | Python | 385 lines
                    
34    script as script_) # command name conflict
                    
35from migrate.versioning.util import catch_known_errors, with_engine
                    
36
                    
73    if cmd is None:
                    
74        raise exceptions.UsageError(None)
                    
75    try:
                    
77    except:
                    
78        raise exceptions.UsageError(
                    
79            "'%s' isn't a valid command. Try 'help COMMAND'" % cmd)
                    
84
                    
85@catch_known_errors
                    
86def create(repository, name, **opts):
                    
97
                    
98@catch_known_errors
                    
99def script(description, repository, **opts):
                    
                
nls.d git://github.com/simendsjo/dwin.git | D | 514 lines
                    
34import dwin.core;
                    
35import dwin.error;
                    
36
                    
                
cmpaux.c git://pkgs.fedoraproject.org/gcl | C | 580 lines
                    
86  sSPmemory->s.s_dbind->cfd.cfd_self[fix(index)]=val;
                    
87  else FEerror("setvv called outside %init",0);
                    
88  RETURN1(index);
                    
110/*   if (y == 0) { */
                    
111/*     FEerror("Zero divizor", 0); */
                    
112/*     return 0; */
                    
179	default:
                    
180		FEerror("~S cannot be coerce to a C char.", 1, x);
                    
181	}
                    
204	default:
                    
205		FEerror("~S cannot be coerce to a C int.", 1, x);
                    
206	}
                    
559  if (fread(tmp,1,ss.st_size,f)!=ss.st_size)
                    
560    FEerror("Error reading binary file",0);
                    
561  fclose(f);
                    
                
SimpleCharStream.java git://pkgs.fedoraproject.org/xsom | Java | 480 lines
                    
116     {
                    
117        throw new Error(t.getMessage());
                    
118     }
                    
                
task_smpl_user.c git://pkgs.fedoraproject.org/papi | C | 535 lines
                    
194	if (pfm_read(fd, 0, PFM_RW_PMD_ATTR, pd, num_pmds * sizeof(*pd)))
                    
195		fatal_error("pfm_read(PMD) error errno %d\n",errno);
                    
196
                    
366		}
                    
367		fatal_error("cannot create session %s\n", strerror(errno));
                    
368	}
                    
373	if (pfm_write(fd, 0, PFM_RW_PMC, pc, outp.pfp_pmc_count * sizeof(*pc)))
                    
374		fatal_error("pfm_write error errno %d\n",errno);
                    
375	/*
                    
422	if (pfm_attach(fd, 0, options.opt_sys ? 0 : pid))
                    
423		fatal_error("pfm_attach error errno %d\n",errno);
                    
424
                    
429	if (pfm_set_state(fd, 0, PFM_ST_START))
                    
430		fatal_error("pfm_set_state(start) error errno %d\n",errno);
                    
431
                    
                
Firebird.pm git://github.com/stefansbv/Tpda3.git | Perl | 483 lines
                    
53            LongTruncOk      => 1,
                    
54            HandleError      => sub { $self->handle_error() },
                    
55            ib_enable_utf8   => 1,
                    
74            logmsg  => $errorstr,
                    
75            usermsg => $self->parse_error($errorstr),
                    
76        );
                    
81            logmsg  => $errorstr,
                    
82            usermsg => $self->parse_error($errorstr),
                    
83        );
                    
119        network     => "error#Network problem",
                    
120        unknown     => "error#Database error",
                    
121        notconn     => "error#Not connected",
                    
128    else {
                    
129        $log->error('EE: Translation error for: $fb!');
                    
130    }
                    
                
cache_spec.rb git://github.com/ToshiyukiTerashita/castoro.git | Ruby | 463 lines
                    
53    it "should be raise exception when page = 0" do
                    
54      lambda{ c = Castoro::Cache.new(0) }.should raise_error(ArgumentError)
                    
55    end
                    
56    it "should be raise exception when pages < 0" do
                    
57      lambda{ c = Castoro::Cache.new(-1) }.should raise_error(ArgumentError)
                    
58    end
                    
                
customer_spec.rb git://github.com/hashrocket/mousetrap.git | Ruby | 396 lines
                    
42      Mousetrap::Customer.stub :get_resources => {
                    
43        'error' => 'Resource not found: No customers found.'
                    
44      }
                    
49      expect do
                    
50        Mousetrap::Customer.stub :get_resources => { 'error' => "some other error" }
                    
51        Mousetrap::Customer.all
                    
51        Mousetrap::Customer.all
                    
52      end.to raise_error(RuntimeError, "some other error")
                    
53    end
                    
272      it "raises error if CheddarGetter reports one" do
                    
273        @customer.class.stub :post_resource => {'error' => 'some error message'}
                    
274        expect { @customer.send(:create) }.to raise_error('some error message')
                    
315        it "raises error if CheddarGetter reports one" do
                    
316          customer.class.stub :put_resource => {'error' => 'some error message'}
                    
317          expect { customer.send(:update) }.to raise_error('some error message')
                    
                
double_definition.rb git://github.com/btakita/rr.git | Ruby | 367 lines
                    
175          raise(
                    
176            Errors::DoubleDefinitionError,
                    
177            "Double Definitions must have a dedicated Double to be ordered. " <<
                    
213        def after_call(&after_call_proc)
                    
214          raise ArgumentError, "after_call expects a block" unless after_call_proc
                    
215          @after_call_proc = after_call_proc
                    
301        def exact_match?(*arguments)
                    
302          raise(Errors::DoubleDefinitionError, "#argument_expectation must be defined on #{inspect}") unless @argument_expectation
                    
303          @argument_expectation.exact_match?(*arguments)
                    
306        def wildcard_match?(*arguments)
                    
307          raise(Errors::DoubleDefinitionError, "#argument_expectation must be defined on #{inspect}") unless @argument_expectation
                    
308          @argument_expectation.wildcard_match?(*arguments)
                    
311        def terminal?
                    
312          raise(Errors::DoubleDefinitionError, "#argument_expectation must be defined on #{inspect}") unless @times_matcher
                    
313          @times_matcher.terminal?
                    
                
Updater.cs https://hg01.codeplex.com/procon2 | C# | 0 lines
                    
124        /// 
                    
125        /// This is so the update can forego checks and error logging later.
                    
126        /// </summary>
                    
176            catch (Exception e) {
                    
177                this.Writer.WriteLine("\tERROR: {0}", e.Message);
                    
178            }
                    
209                            catch (Exception e) {
                    
210                                this.Writer.WriteLine("\tERROR: {0}", e.Message);
                    
211                            }
                    
256        /// <summary>
                    
257        /// Creates a directory, logging the progress and errors (if any)
                    
258        /// </summary>
                    
267                catch (Exception e) {
                    
268                    this.Writer.WriteLine("\tERROR: {0}", e.Message);
                    
269                }
                    
                
DeclPDA.cpp git://github.com/TTimo/doom3.gpl.git | C++ | 668 lines
                    
147
                    
148	if ( src.HadError() ) {
                    
149		src.Warning( "PDA decl '%s' had a parse error", GetName() );
                    
359	src.LoadMemory( _text, textLength, GetFileName(), GetLineNum() );
                    
360	src.SetFlags( LEXFL_NOSTRINGCONCAT | LEXFL_ALLOWPATHNAMES |	LEXFL_ALLOWMULTICHARLITERALS | LEXFL_ALLOWBACKSLASHSTRINGCONCAT | LEXFL_NOFATALERRORS );
                    
361	src.SkipUntilString( "{" );
                    
401			if ( token != "{" ) {
                    
402				src.Warning( "Email decl '%s' had a parse error", GetName() );
                    
403				return false;
                    
417
                    
418	if ( src.HadError() ) {
                    
419		src.Warning( "Email decl '%s' had a parse error", GetName() );
                    
485	src.LoadMemory( text, textLength, GetFileName(), GetLineNum() );
                    
486	src.SetFlags( LEXFL_NOSTRINGCONCAT | LEXFL_ALLOWPATHNAMES |	LEXFL_ALLOWMULTICHARLITERALS | LEXFL_ALLOWBACKSLASHSTRINGCONCAT | LEXFL_NOFATALERRORS );
                    
487	src.SkipUntilString( "{" );
                    
                
HandlerBase.java git://pkgs.fedoraproject.org/xpp2 | Java | 371 lines
                    
298    ////////////////////////////////////////////////////////////////////
                    
299    // Default implementation of the ErrorHandler interface.
                    
300    ////////////////////////////////////////////////////////////////////
                    
313     *            wrapping another exception.
                    
314     * @see org.xml.sax.ErrorHandler#warning
                    
315     * @see org.xml.sax.SAXParseException
                    
328     * may override this method in a subclass to take specific actions
                    
329     * for each error, such as inserting the message in a log file or
                    
330     * printing it to the console.</p>
                    
337     */
                    
338    public void error (SAXParseException e)
                    
339	throws SAXException
                    
358     *            wrapping another exception.
                    
359     * @see org.xml.sax.ErrorHandler#fatalError
                    
360     * @see org.xml.sax.SAXParseException
                    
                
eric4.Plugins.VcsPlugins.vcsSubversion.SvnRepoBrowserDialog.html git://pkgs.fedoraproject.org/eric | HTML | 378 lines
                    
79<td><a href="#SvnRepoBrowserDialog.__readStderr">__readStderr</a></td>
                    
80<td>Private slot to handle the readyReadStandardError signal.</td>
                    
81</tr><tr>
                    
237<p>
                    
238        Private slot to handle the readyReadStandardError signal.
                    
239</p><p>
                    
239</p><p>
                    
240        It reads the error output of the process and inserts it into the
                    
241        error pane.
                    
                
memory.c git://pkgs.fedoraproject.org/fuse-emulator | C | 459 lines
                    
143  if( !ptr ) {
                    
144    ui_error( UI_ERROR_ERROR, "Out of memory at %s:%d", __FILE__, __LINE__ );
                    
145    return NULL;
                    
401        if( !current_rom ) {
                    
402          ui_error( UI_ERROR_ERROR, "Out of memory at %s:%d", __FILE__,
                    
403                    __LINE__ );
                    
412        if( !current_rom ) {
                    
413          ui_error( UI_ERROR_ERROR, "Out of memory at %s:%d", __FILE__,
                    
414                    __LINE__ );
                    
446      if( !buffer ) {
                    
447	ui_error( UI_ERROR_ERROR, "Out of memory at %s:%d", __FILE__,
                    
448		  __LINE__ );
                    
                
SOAPBody.java git://pkgs.fedoraproject.org/java-1.7.0-openjdk | Java | 298 lines
                    
41 * A <code>SOAPFault</code> object, which carries status and/or
                    
42 * error information, is an example of a <code>SOAPBodyElement</code> object.
                    
43 *
                    
59     * @return the new <code>SOAPFault</code> object
                    
60     * @exception SOAPException if there is a SOAP error
                    
61     */
                    
89     * @return the new <code>SOAPFault</code> object
                    
90     * @exception SOAPException if there is a SOAP error
                    
91     * @see SOAPFault#setFaultCode
                    
124     * @exception SOAPException
                    
125     *                if there is a SOAP error
                    
126     * @see SOAPFault#setFaultCode
                    
163     * @exception SOAPException
                    
164     *                if there is a SOAP error
                    
165     * @see SOAPFault#setFaultCode
                    
                
convert.cpp git://pkgs.fedoraproject.org/cxxtools | C++ | 703 lines
                    
109    if( r != str.end() || ! ok )
                    
110        ConversionError::doThrow(typeto, "String", str.narrow().c_str());
                    
111}
                    
123    if( r != str.end() || ! ok )
                    
124        ConversionError::doThrow(typeto, "string", str.c_str());
                    
125}
                    
139    if( it != end || ! ok )
                    
140        ConversionError::doThrow(typeto, "char*");
                    
141}
                    
152    if(r != str.end() || ! ok)
                    
153        ConversionError::doThrow(typeto, "String", str.narrow().c_str());
                    
154}
                    
166    if(r != str.end() || ! ok)
                    
167        ConversionError::doThrow(typeto, "string", str.c_str());
                    
168}
                    
                
xml_value_writer.cc git://github.com/dsw/oink-stack.git | C++ | 456 lines
                    
4#include "xml_enum.h"           // XTOK_*
                    
5#include "oink_util.h"          // USER_ERROR
                    
6#include "stringset.h"          // StringSet
                    
                
doc_modes.pl git://pkgs.fedoraproject.org/pl | Perl | 470 lines
                    
43:- use_module(library(operators)).
                    
44:- use_module(library(error)).
                    
45
                    
142	->  !
                    
143	;   E = error(syntax_error(end_of_file), _)
                    
144	->  fail
                    
144	->  fail
                    
145	;   !, mode_syntax_error(E),
                    
146	    Decls = []
                    
156
                    
157%%	mode_syntax_error(+ErrorTerm) is det.
                    
158%
                    
265	var(Var), !,
                    
266	throw(error(instantiation_error,
                    
267		    context(_, 'PlDoc: Mode declaration expected'))).
                    
                
options.cc git://pkgs.fedoraproject.org/tmispell-voikko | C++ | 452 lines
                    
36
                    
37#include "tmerror.hh"
                    
38
                    
243		if (i_ + 1 >= argc_) {
                    
244			throw Error(_("Missing argument for option %s"), opt);
                    
245		}
                    
423			print_usage();
                    
424			throw Error(_("Unknown option %s"), p.opt());
                    
425
                    
                
Connection.cpp git://pkgs.fedoraproject.org/spring | C++ | 572 lines
                    
485
                    
486void Connection::ConnectCallback(const boost::system::error_code& error)
                    
487{
                    
498
                    
499void Connection::ReceiveCallback(const boost::system::error_code& error, size_t bytes)
                    
500{
                    
513	{
                    
514		if (error.value() == connection_reset || error.value() == boost::asio::error::eof)
                    
515		{
                    
520		{
                    
521			NetworkError(error.message());
                    
522		}
                    
529
                    
530void Connection::SendCallback(const boost::system::error_code& error)
                    
531{
                    
                
Sar.pm git://pkgs.fedoraproject.org/sysusage | Perl | 402 lines
                    
55	if (!-x $sar) {
                    
56		die "ERROR: Can't find sar binary at $sar\n";
                    
57	}
                    
78	unless(open(SAR, "$self->{'sar_cmd'} |")) {
                    
79		die "ERROR: Can't execute command $self->{'sar_cmd'}\n";
                    
80	}
                    
198		if ($#values != $#headers) {
                    
199			die "ERROR: Parsing of sar output reports different values than headers allow. ($#values != $#headers)\n";
                    
200		}
                    
316#		rxerr => Total number of bad packets received per second
                    
317#		txerr => Total number of errors that happened per second
                    
318#		coll => Number of collisions that happened per second
                    
320#		txdrop => Number of transmitted packets dropped per second
                    
321#		txcarr => Number of carrier-errors that happened per second
                    
322#		rxfram => Number of frame alignment errors that happened per second on received packets
                    
                
WtWebErrors.c http://aptcl.googlecode.com/svn/trunk/ | C | 542 lines
                    
427    if (Tcl_ListObjReplace(interp, w->web->errorStack,
                    
428        errorSetId, sets - errorSetId, 0, NULL) != TCL_OK) {
                    
429      ok = 0;
                    
466  if (useErrorInfo) {
                    
467    errorInfo = Tcl_GetVar2Ex(interp, "errorInfo", NULL, 0);
                    
468  }
                    
468  }
                    
469  if (!errorInfo || !Tcl_GetCharLength(errorInfo)) {
                    
470    errorInfo = Tcl_GetObjResult(interp);
                    
480
                    
481  if (!WtAddError(errorCode, errorInfo, interp, w)) {
                    
482    ok = 0;
                    
490
                    
491int WtAddError(Tcl_Obj *errorCode, Tcl_Obj *errorInfo, Tcl_Interp *interp,
                    
492    WtContext *w)
                    
                
umfpack_get_symbolic.h http://gkw.googlecode.com/svn/trunk/ | C Header | 340 lines
                    
167
                    
168    Returns UMFPACK_OK if successful, UMFPACK_ERROR_invalid_Symbolic_object
                    
169    if Symbolic is an invalid object.
                    
                
ServicePolicyImpl.java git://pkgs.fedoraproject.org/eclipse-wtp-webservices | Java | 431 lines
                    
313        {
                    
314          ServicePolicyActivator.logError( "Policy id, " + targetEnum.getPolicyId() + " not found.", null );                               //$NON-NLS-1$ //$NON-NLS-2$
                    
315        }
                    
                
Makefile.in git://pkgs.fedoraproject.org/telepathy-mission-control | Autoconf | 471 lines
                    
94EGREP = @EGREP@
                    
95ERROR_CFLAGS = @ERROR_CFLAGS@
                    
96EXEEXT = @EXEEXT@
                    
                
Test04.java git://pkgs.fedoraproject.org/libreoffice | Java | 308 lines
                    
39            {
                    
40                m_aTestHelper.Error( "No valid temporary file was created!" );
                    
41                return false;
                    
49            {
                    
50                m_aTestHelper.Error( "Can't create temporary storage representation!" );
                    
51                return false;
                    
61            {
                    
62                m_aTestHelper.Error( "Can't create substorage!" );
                    
63                return false;
                    
85            {
                    
86                m_aTestHelper.Error( "Can't create substorage!" );
                    
87                return false;
                    
129            {
                    
130                m_aTestHelper.Error( "Can't create storage based on temporary file!" );
                    
131                return false;
                    
                
dedesql.class.php http://pj-photohost.googlecode.com/svn/trunk/ | PHP | 605 lines
                    
3{
                    
4	exit("Request Error!");
                    
5}
                    
248		{
                    
249			$this->DisplayError(mysql_error()." <br />Error sql: <font color='red'>".$this->queryString."</font>");
                    
250		}
                    
430	{
                    
431		$errorTrackFile = dirname(__FILE__).'/../data/mysql_error_trace.inc';
                    
432		if( file_exists(dirname(__FILE__).'/../data/mysql_error_trace.php') )
                    
445		
                    
446		$savemsg = 'Page: '.$this->GetCurUrl()."\r\nError: ".$msg;
                    
447		//??MySql????
                    
596		fputs(fopen($log_file,'a+'),"$userIP||$getUrl||$db_string||$error\r\n");
                    
597		exit("<font size='5' color='red'>Safe Alert: Request Error step 2!</font>");
                    
598	}
                    
                
TextTable.cs https://EffiProz.svn.codeplex.com/svn | C# | 439 lines
                    
175                // source and cache or have an empty source and null cache.
                    
176                throw Error.error(t, ErrorCode.TEXT_FILE, 0, new Object[] {
                    
177                t.Message, linenumber
                    
262            {
                    
263                throw Error.error(ErrorCode.TEXT_SOURCE_EXISTS, dataSourceNew);
                    
264            }
                    
302
                    
303            throw Error.error(ErrorCode.TEXT_TABLE_HEADER);
                    
304        }
                    
328            {
                    
329                throw Error.error(ErrorCode.TEXT_TABLE_UNKNOWN_DATA_SOURCE);
                    
330            }
                    
333            {
                    
334                throw Error.error(ErrorCode.DATA_IS_READONLY);
                    
335            }
                    
                
I_sound.c https://doomlegacy.svn.sourceforge.net/svnroot/doomlegacy | C | 570 lines
                    
105    if(spl==NULL)
                    
106        I_Error("Raw2Sample : no more free mem");
                    
107    spl->bits = 8;
                    
344    {
                    
345        sprintf (err,"Sound init error : %s\n",allegro_error);
                    
346        CONS_Error (err);
                    
374 *  Loads a standard MIDI file from memory, returning a pointer to
                    
375 *  a MIDI structure, *  or NULL on error.
                    
376 *  It is the load_midi from Allegro modified to load it from memory
                    
529        {
                    
530            CONS_Printf("Cannot convert mus to mid, converterror :%d\n",e);
                    
531            return 0;
                    
                
XcmsAllocNamedColor.m git://anongit.freedesktop.org/git/xorg/test/xts.git/ | Objective C | 0 lines
                    
138 * Turn on buffering and buffer parameter information
                    
139 * in case an error occurs
                    
140 ******/
                    
145	message(fmtstr, fmt_lst, 0);
                    
146	(void)strcpy(fmtstr, "An error occurred during a call to %s\n\n");
                    
147	fmt_lst[0].typ_str = TestName;
                    
161                                                                  
                    
162	bufrdisp(display); /* buffer display struct info for error checking */
                    
163	                  
                    
179
                    
180	    first_error = 0;	/* no errors encountered yet */
                    
181/******
                    
186  	    errflg = 0;
                    
187	    XSetErrorHandler(signal_status);
                    
188            svc_ret_value = XcmsAllocNamedColor(
                    
                
libdivecomputer.c git://github.com/torvalds/subsurface.git | C | 482 lines
                    
24
                    
25static GError *error(const char *fmt, ...)
                    
26{
                    
27	va_list args;
                    
28	GError *error;
                    
29
                    
30	va_start(args, fmt);
                    
31	error = g_error_new_valist(
                    
32		g_quark_from_string("subsurface"),
                    
32		g_quark_from_string("subsurface"),
                    
33		DIVE_ERROR_PARSE, fmt, args);
                    
34	va_end(args);
                    
34	va_end(args);
                    
35	return error;
                    
36}
                    
                
lzma.js git://github.com/mrdoob/three.js.git | JavaScript | 511 lines
                    
505  if ( !decoder.decode(inStream, outStream, outSize) ){
                    
506    throw "Error in data stream";
                    
507  }
                    
                
ValueTypeConverter.cs https://CompositeC1.svn.codeplex.com/svn | C# | 355 lines
                    
48        {
                    
49            Exception conversionError;
                    
50            return TryConvert(value, targetType, out conversionError);
                    
53        /// <exclude />
                    
54        internal static object TryConvert(object value, Type targetType, out Exception conversionError)
                    
55        {
                    
55        {
                    
56            conversionError = null;
                    
57
                    
77
                    
78                object convertedValue = TryConvert(value, genericArgument, out conversionError);
                    
79
                    
142            {
                    
143                return TryConvertStringValue(stringValue, targetType, ref conversionError);
                    
144            }
                    
                
thread.cpp git://pkgs.fedoraproject.org/muse | C++ | 416 lines
                    
99                  printf("Cannot set scheduling priority %d for RT thread (%s)\n",
                    
100                     _realTimePriority, strerror(errno));
                    
101                  }
                    
106      if (pthread_create(&thread, attributes, MusECore::loop, this))
                    
107            perror("creating thread failed:");
                    
108//      else
                    
127      if(rv)
                    
128          fprintf(stderr, "creating thread <%s> failed: %s\n", _name, strerror(rv));
                    
129
                    
152          if (pthread_join(thread, 0)) {
                    
153                // perror("Failed to join sequencer thread"); DELETETHIS and the if around?
                    
154                }
                    
177      if (pipe(filedes) == -1) {
                    
178            perror("thread:creating pipe");
                    
179            exit(-1);
                    
                
libexec.xendomains git://pkgs.fedoraproject.org/xen | Bash | 565 lines
                    
245                    if [ $? -ne 0 ]; then
                    
246                        echo -e "\nAn error occurred while restoring domain ${dom##*/}:\n$XMR"
                    
247                        rc_failed $?
                    
280		if [ $? -ne 0 ]; then
                    
281		    echo -e "\nAn error occurred while creating domain ${dom##*/}: $XMC\n"
                    
282		    rc_failed $?
                    
369		if test $? -ne 0; then
                    
370		    echo -e "\nAn error occurred while doing sysrq on domain:\n$XMR\n"
                    
371		    rc_failed $?
                    
387	    if test $? -ne 0; then
                    
388		echo -e "\nAn error occurred while migrating domain:\n$XMR\n"
                    
389		rc_failed $?
                    
407	    if test $? -ne 0; then
                    
408		echo -e "\nAn error occurred while saving domain:\n$XMR\n"
                    
409		rc_failed $?
                    
                
main.jsp http://webgoat.googlecode.com/svn/trunk/ | JavaServer Pages | 301 lines
                    
2	import="org.owasp.webgoat.session.*, org.owasp.webgoat.lessons.Category, org.owasp.webgoat.lessons.AbstractLesson, org.owasp.webgoat.util.*, java.util.*" 
                    
3	errorPage=""  %>
                    
4<%
                    
                
yuv4mpeg.c git://github.com/opdenkamp/xbmc.git | C | 402 lines
                    
107        if (yuv4_generate_header(s, buf2) < 0) {
                    
108            av_log(s, AV_LOG_ERROR, "Error. YUV4MPEG stream header write failed.\n");
                    
109            return AVERROR(EIO);
                    
154    if (s->nb_streams != 1)
                    
155        return AVERROR(EIO);
                    
156
                    
157    if (s->streams[0]->codec->pix_fmt == PIX_FMT_YUV411P) {
                    
158        av_log(s, AV_LOG_ERROR, "Warning: generating rarely used 4:1:1 YUV stream, some mjpegtools might not work.\n");
                    
159    }
                    
163             (s->streams[0]->codec->pix_fmt != PIX_FMT_YUV444P)) {
                    
164        av_log(s, AV_LOG_ERROR, "ERROR: yuv4mpeg only handles yuv444p, yuv422p, yuv420p, yuv411p and gray pixel formats. Use -pix_fmt to select one.\n");
                    
165        return AVERROR(EIO);
                    
241            else if (strncmp("444alpha", tokstart, 8)==0) {
                    
242                av_log(s, AV_LOG_ERROR, "Cannot handle 4:4:4:4 YUV4MPEG stream.\n");
                    
243                return -1;
                    
                
nsISAXContentHandler.cs https://bitbucket.org/geckofx/geckofx-2.0/ | C# | 257 lines
                    
64        /// There is an apparent contradiction between the documentation for
                    
65        /// this method and the documentation for ErrorHandler.fatalError().
                    
66        /// Until this ambiguity is resolved in a future major release,
                    
68        /// will or will not be invoked when the parser has reported a
                    
69        /// fatalError() or thrown an exception.
                    
70        ///
                    
73        /// invoke this method until it has either abandoned parsing (because
                    
74        /// of an unrecoverable error) or reached the end of input.
                    
75        /// </summary>
                    
                
ohparam.c git://pkgs.fedoraproject.org/openhpi | C | 388 lines
                    
48 */
                    
49static SaErrorT execglobalparamget (void); 
                    
50static SaErrorT execglobalparamset (oHpiGlobalParamTypeT,char *); 
                    
65{
                    
66   SaErrorT    rv = SA_OK;
                    
67   oHpiGlobalParamTypeT paramtype = OHPI_CONF;
                    
178   }
                    
179   printf("Param set failed with returncode %s\n", oh_lookup_error(rv));
                    
180   return rv;
                    
186 */
                    
187static SaErrorT execglobalparamget ()
                    
188{
                    
188{
                    
189   SaErrorT rv = SA_OK;
                    
190   oHpiGlobalParamT param;
                    
                
test_zfec.py git://pkgs.fedoraproject.org/python-zfec | Python | 361 lines
                    
84            e = zfec.Encoder()
                    
85        except TypeError:
                    
86            # Okay, so that's because we're required to pass constructor args.
                    
94            e = zfec.Decoder()
                    
95        except TypeError:
                    
96            # Okay, so that's because we're required to pass constructor args.
                    
135            zfec.Decoder(-1, -1)
                    
136        except zfec.Error, e:
                    
137            assert "argument is required to be greater than or equal to 1" in str(e), e
                    
142            zfec.Decoder(1, 257)
                    
143        except zfec.Error, e:
                    
144            assert "argument is required to be less than or equal to 256" in str(e), e
                    
149            zfec.Decoder(3, 2)
                    
150        except zfec.Error, e:
                    
151            assert "first argument is required to be less than or equal to the second argument" in str(e), e
                    
                
BaseMetadataPanel.java http://bungeni-editor.googlecode.com/svn/ | Java | 441 lines
                    
158
                    
159    public void addErrorMessage(java.awt.Component p, String msg) {
                    
160        getContainerPanel().addErrorMessage(this, p, msg);
                    
162
                    
163    public String ErrorMessagesAsString() {
                    
164        return getContainerPanel().ErrorMessagesAsString();
                    
383        } catch (Exception ex) {
                    
384            log.error("exception in  processCatalogCommand: " + ex.getMessage());
                    
385            log.error("exception in  processCatalogCommand: " + CommonExceptionUtils.getStackTrace(ex));
                    
426        } catch (IllegalArgumentException ex) {
                    
427            log.error("pasteTextIntoDocument : " + ex.getMessage());
                    
428        } finally {
                    
                
MatrixFile.cpp git://pkgs.fedoraproject.org/sonic-visualiser | C++ | 442 lines
                    
209    if (::lseek(m_fd, off - 1, SEEK_SET) < 0) {
                    
210        ::perror("ERROR: MatrixFile::initialise: seek to end failed");
                    
211        throw FileOperationFailed(m_fileName, "lseek");
                    
215    if (::write(m_fd, &byte, 1) != 1) {
                    
216        ::perror("ERROR: MatrixFile::initialise: write at end failed");
                    
217        throw FileOperationFailed(m_fileName, "write");
                    
220    if (::lseek(m_fd, 0, SEEK_SET) < 0) {
                    
221        ::perror("ERROR: MatrixFile::initialise: Seek to write header failed");
                    
222        throw FileOperationFailed(m_fileName, "lseek");
                    
228    if (::write(m_fd, header, 2 * sizeof(size_t)) != 2 * sizeof(size_t)) {
                    
229        ::perror("ERROR: MatrixFile::initialise: Failed to write header");
                    
230        throw FileOperationFailed(m_fileName, "write");
                    
254        if (::close(m_fd) < 0) {
                    
255            ::perror("MatrixFile::close: close failed");
                    
256        }
                    
                
gtkiconview.h git://pkgs.fedoraproject.org/mingw-gtk3 | C Header | 262 lines
                    
18#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
                    
19#error "Only <gtk/gtk.h> can be included directly."
                    
20#endif
                    
                
TicketCommands.cpp git://github.com/darkman1983/TrinityCore.git | C++ | 457 lines
                    
183    {
                    
184        SendSysMessage(LANG_COMMAND_TICKETASSIGNERROR_A);
                    
185        return true;
                    
190    {
                    
191        PSendSysMessage(LANG_COMMAND_TICKETASSIGNERROR_B, ticket->GetId());
                    
192        return true;
                    
                
llex.cpp git://github.com/scummvm/scummvm.git | C++ | 475 lines
                    
55    if (b->buffsize >= MAX_SIZET/2)
                    
56      luaX_lexerror(ls, "lexical element too long", 0);
                    
57    newsize = b->buffsize * 2;
                    
101
                    
102void luaX_lexerror (LexState *ls, const char *msg, int token) {
                    
103  char buff[MAXSRC];
                    
111
                    
112void luaX_syntaxerror (LexState *ls, const char *msg) {
                    
113  luaX_lexerror(ls, msg, ls->t.token);
                    
133  if (++ls->linenumber >= MAX_INT)
                    
134    luaX_syntaxerror(ls, "chunk has too many lines");
                    
135}
                    
177static void trydecpoint (LexState *ls, SemInfo *seminfo) {
                    
178  /* format error: try to update decimal point separator */
                    
179  // Normally we'd use localeconv() to get the decimal point separator, but
                    
                
GoogleReader.cs http://reader-notifier-mod.googlecode.com/svn/branches/merge/ | C# | 418 lines
                    
30
                    
31		public string LoginError = "";
                    
32		public string[] ProxyUser = new string[3];
                    
47			_loggedIn = false;
                    
48			LoginError = "";
                    
49
                    
55			{
                    
56				LoginError += exc + "\r\n";
                    
57				if (ProxyUser[0] == "request")
                    
58					return "ProxyAuthRequired";
                    
59				return "CONNECT_ERROR";
                    
60			}
                    
64				string _helper = GetResponseString(req);
                    
65                _loggedIn = (_helper.IndexOf("error", StringComparison.OrdinalIgnoreCase) == -1) && (_helper.IndexOf("auth", StringComparison.OrdinalIgnoreCase) != -1);
                    
66				if (_loggedIn == true)
                    
                
presubmit.py git://github.com/joyent/node.git | Python | 436 lines
                    
32  md5er = hashlib.md5
                    
33except ImportError, e:
                    
34  import md5
                    
112    out_lines = ""
                    
113    error_count = -1
                    
114    while True:
                    
116      if out_line == '' and process.poll() != None:
                    
117        if error_count == -1:
                    
118          print "Failed to process %s" % command.pop()
                    
123        out_lines += out_line
                    
124        error_count += 1
                    
125    sys.stdout.write(out_lines)
                    
271    total_errors = sum(results)
                    
272    print "Total errors found: %d" % total_errors
                    
273    good_files_cache.Save()
                    
                
nsICmdLineHandler.h https://hg01.codeplex.com/kmbrasil | C Header | 0 lines
                    
30{ \
                    
31    if (!aDefaultArgs) return NS_ERROR_FAILURE; \
                    
32    *aDefaultArgs = ToNewUnicode(nsDependentCString(macro_default_args)); \
                    
37{ \
                    
38    if (!aChromeUrlForTask) return NS_ERROR_FAILURE; \
                    
39    *aChromeUrlForTask = PL_strdup(macro_chrome_url); \
                    
44{ \
                    
45    if (!aCommandLineArgument) return NS_ERROR_FAILURE; \
                    
46    *aCommandLineArgument = PL_strdup(macro_cmd_line_arg); \
                    
50{ \
                    
51    if (!aPrefNameForStartup) return NS_ERROR_FAILURE; \
                    
52    *aPrefNameForStartup = PL_strdup(macro_pref_name); \
                    
56{ \
                    
57    if (!aHelpText) return NS_ERROR_FAILURE; \
                    
58    *aHelpText = PL_strdup(macro_help_text); \
                    
                
MessageProcessor.java git://github.com/lmco/eurekastreams.git | Java | 337 lines
                    
153     * @throws MessagingException
                    
154     *             On error.
                    
155     * @throws IOException
                    
155     * @throws IOException
                    
156     *             On error.
                    
157     */
                    
264            // notify user on failure
                    
265            // Note: A response is only sent for errors processing the action (which could be due to missing content
                    
266            // from the message). This is because any errors encountered prior represent a bad sender or ill-formed
                    
280     * @throws MessagingException
                    
281     *             On error.
                    
282     */
                    
300     * @throws MessagingException
                    
301     *             On error.
                    
302     */
                    
                
Service.java git://github.com/dgraziotin/openpomo.git | Java | 470 lines
                    
251            Log.e("Service.isPresent()", "Problem: " + e.toString());
                    
252            throw new PomodroidException("ERROR in Service.isPresent():"
                    
253                    + e.toString());
                    
283            Log.e("Service.isPresentUrl()", "Problem: " + e.toString());
                    
284            throw new PomodroidException("ERROR in Service.isPresent():"
                    
285                    + e.toString());
                    
308            Log.e("Service.save()", "Problem: " + e.getMessage());
                    
309            throw new PomodroidException("ERROR in Service.save():"
                    
310                    + e.toString());
                    
330            Log.e("Service.save(update)", "Update Problem: " + e.toString());
                    
331            throw new PomodroidException("ERROR in Service.save(update):"
                    
332                    + e.toString());
                    
363        } catch (Exception e) {
                    
364            throw new PomodroidException("ERROR in Service.deleteAll():"
                    
365                    + e.toString());
                    
                
HmacShaAssociation.cs git://github.com/AArnott/dotnetopenid.git | C# | 282 lines
                    
46			Requires.Range(totalLifeLength > TimeSpan.Zero, "totalLifeLength");
                    
47			ErrorUtilities.VerifyProtocol(secret.Length == typeIdentity.SecretLength, OpenIdStrings.AssociationSecretAndTypeLengthMismatch, secret.Length, typeIdentity.GetAssociationType(Protocol.Default));
                    
48
                    
75			HmacSha match = hmacShaAssociationTypes.FirstOrDefault(sha => string.Equals(sha.GetAssociationType(protocol), associationType, StringComparison.Ordinal));
                    
76			ErrorUtilities.VerifyProtocol(match != null, OpenIdStrings.NoAssociationTypeFoundByName, associationType);
                    
77			return new HmacShaAssociation(match, handle, secret, totalLifeLength);
                    
91			HmacSha shaType = hmacShaAssociationTypes.FirstOrDefault(sha => sha.SecretLength == secret.Length);
                    
92			ErrorUtilities.VerifyProtocol(shaType != null, OpenIdStrings.NoAssociationTypeFoundByLength, secret.Length);
                    
93			return new HmacShaAssociation(shaType, handle, secret, totalLifeLength);
                    
104			HmacSha match = hmacShaAssociationTypes.FirstOrDefault(shaType => string.Equals(shaType.GetAssociationType(protocol), associationType, StringComparison.Ordinal));
                    
105			ErrorUtilities.VerifyProtocol(match != null, OpenIdStrings.NoAssociationTypeFoundByName, associationType);
                    
106			return match.SecretLength;
                    
                
FileFormatWriter.cs https://bitbucket.org/tbohnen/sharpimage | C# | 374 lines
                    
153        /// </summary>
                    
154        /// <exception cref="java.io.IOException">If an I/O error ocurred.
                    
155        /// 
                    
174        /// </summary>
                    
175        /// <exception cref="java.io.IOException">If an I/O error ocurred.
                    
176        /// 
                    
207        /// </param>
                    
208        /// <exception cref="java.io.IOException">If an I/O error ocurred.
                    
209        /// 
                    
232        /// </returns>
                    
233        /// <exception cref="java.io.IOException">If an I/O error ocurred.
                    
234        /// 
                    
265            {
                    
266                throw new System.ApplicationException("Error while writing JP2 file format(2): " + e.Message + "\n" + e.StackTrace);
                    
267            }
                    
                
templates.vb https://geminibranch.svn.codeplex.com/svn | Visual Basic | 374 lines
                    
62        If Not invoke(ctx, o) Then
                    
63            raiseError("cannot invoke in " + Me.GetType().FullName(), errorHandle.errorType.warning)
                    
64            Return False
                    
147            If Not enableNoInput() Then
                    
148                raiseError("expect parameter " + parameters.i, errorHandle.errorType.user)
                    
149                Return False
                    
195            If Not enableNoInput() Then
                    
196                raiseError("expect parameter " + parameters.i, errorHandle.errorType.user)
                    
197                Return False
                    
205            raiseError("expect parameter " + parameters.o + " is pointer<" + typeNaming(outputType()) + ">.", _
                    
206                       errorHandle.errorType.user)
                    
207            Return False
                    
255        Else
                    
256            raiseError("expect parameter " + x_name(), errorHandle.errorType.user)
                    
257            Return False
                    
                
blogs.js git://github.com/liferay/liferay-portal.git | JavaScript | 462 lines
                    
45							savedDraftAtMessage: Liferay.Language.get('draft-saved-at-x'),
                    
46							saveDraftError: Liferay.Language.get('could-not-save-draft-to-the-server'),
                    
47							saveDraftMessage: Liferay.Language.get('saving-draft')
                    
301											failure: function() {
                    
302												instance._updateStatus(strings.saveDraftError);
                    
303											},
                    
                
lfutil.py git://github.com/JetBrains/intellij-community.git | Python | 367 lines
                    
32            lfsize = float(lfsize)
                    
33        except ValueError:
                    
34            raise util.Abort(_('largefiles: size must be number (not %s)\n')
                    
43        util.oslink(src, dest)
                    
44    except OSError:
                    
45        # if hardlinks fail, fallback on atomic copy
                    
138            fctx = repo[rev][standin(lfile)]
                    
139        except LookupError:
                    
140            fctx = None
                    
355            hash = readstandin(repo, lfile)
                    
356        except IOError:
                    
357            hash = None
                    
                
ftp.pm https://misterhouse.svn.sourceforge.net/svnroot/misterhouse | Perl | 395 lines
                    
45	my $scheme = $url->scheme;
                    
46	return HTTP::Response->new(&HTTP::Status::RC_INTERNAL_SERVER_ERROR,
                    
47		       "LWP::Protocol::ftp::request called for '$scheme'");
                    
59    if ($init_failed) {
                    
60	return HTTP::Response->new(&HTTP::Status::RC_INTERNAL_SERVER_ERROR,
                    
61				   $init_failed);
                    
85       $@ =~ s/^Net::FTP: //;
                    
86       return HTTP::Response->new(&HTTP::Status::RC_INTERNAL_SERVER_ERROR, $@);
                    
87    }
                    
171		if ($method ne 'HEAD') {
                    
172		    $response->code(&HTTP::Status::RC_INTERNAL_SERVER_ERROR);
                    
173		    $response->message("FTP close response: " . $ftp->code .
                    
                
GSInterlace.cpp http://fop-miniscribus.googlecode.com/svn/trunk/ | C++ | 429 lines
                    
66    if (!wr) {
                    
67    QMessageBox::warning(0, qApp->tr("Error"),qApp->tr("Window Unable to open action file or dir  %1").arg(loc.toString()));
                    
68    }
                    
75    if (!r) {
                    
76    QMessageBox::warning(0, qApp->tr("Error"),qApp->tr("Linux Unable to open action file or dir  %1").arg(loc.toString()));
                    
77    }
                    
                
get_tv_info https://misterhouse.svn.sourceforge.net/svnroot/misterhouse | Perl | 365 lines
                    
157                                # Do this as quick a possible, so we can use File_Item watch in mh
                    
158    open (OUT1, ">$parms{outfile1}") or die "Error, could not open output file $parms{outfile1}: $!\n";
                    
159    open (OUT2, ">$parms{outfile2}") or die "Error, could not open output file $parms{outfile2}: $!\n";
                    
186    use DB_File;
                    
187    tie (%DBM,  'DB_File', $dbm_file,  O_RDWR|O_CREAT, 0666) or print "\nError, can not open dbm file $dbm_file: $!";
                    
188    tie (%DBM2, 'DB_File', $dbm_file2, O_RDWR|O_CREAT, 0666) or print "\nError, can not open dbm file $dbm_file2: $!";
                    
                
Che0.f http://ua-fwlis.googlecode.com/svn/trunk/ | FORTRAN Legacy | 318 lines
                    
36*     The integrals are evaluated to SD significant digits in most cases.     *
                    
37*     The relative error is given by RELERR = .5*10.**(-SD).                  *
                    
38*******************************************************************************
                    
                
tsturm.f http://ua-fwlis.googlecode.com/svn/trunk/ | FORTRAN Legacy | 406 lines
                    
27C
                    
28C        EPS1 is an absolute error tolerance for the computed eigen-
                    
29C          values.  It should be chosen so that the accuracy of these
                    
55C          WARNING -  If more than MM eigenvalues are determined to lie
                    
56C          in the interval, an error return is made with no values or
                    
57C          vectors found.
                    
75C          does not split.  If the matrix splits, the eigenvalues are
                    
76C          in ascending order for each submatrix.  If a vector error
                    
77C          exit is made, W contains those values already found.  W is a
                    
80C        Z contains the associated set of orthonormal eigenvectors.
                    
81C          If an error exit is made, Z contains those vectors already
                    
82C          found.  Z is a one-dimensional REAL array, dimensioned
                    
395      GO TO 1001
                    
396C     .......... SET ERROR -- NON-CONVERGED EIGENVECTOR ..........
                    
397  960 IERR = 4 * N + R
                    
                
m3u8.c http://ossbuild.googlecode.com/svn/trunk/ | C | 509 lines
                    
114      || (errno != 0 && *val == 0)) {
                    
115    GST_WARNING ("%s", g_strerror (errno));
                    
116    return FALSE;
                    
285          if (!int_from_string (v, NULL, &list->bandwidth))
                    
286            GST_WARNING ("Error while reading BANDWIDTH");
                    
287        } else if (g_str_equal (a, "PROGRAM-ID")) {
                    
288          if (!int_from_string (v, NULL, &list->program_id))
                    
289            GST_WARNING ("Error while reading PROGRAM-ID");
                    
290        } else if (g_str_equal (a, "CODECS")) {
                    
294          if (!int_from_string (v, &v, &list->width))
                    
295            GST_WARNING ("Error while reading RESOLUTION width");
                    
296          if (!v || *v != '=') {
                    
300            if (!int_from_string (v, NULL, &list->height))
                    
301              GST_WARNING ("Error while reading RESOLUTION height");
                    
302          }
                    
                
DESTR.pas http://my-chuanqi.googlecode.com/svn/trunk/ | Pascal | 401 lines
                    
303  if (Length(Str) > 0) and (Ord(Str[Length(Str)]) = 0) then
                    
304    raise Exception.Create('Error: the last char is NULL char.');
                    
305  if Length(Key) < 8 then
                    
382        Res := Res * 16 + Ord(Ch) - Ord('a') + 10
                    
383      else raise Exception.Create('Error: not a Hex String');
                    
384    end;
                    
                
encode.java http://kmttg.googlecode.com/svn/trunk/ | Java | 376 lines
                    
60      if ( ! file.isFile(mpeg) ) {
                    
61         log.error("mpeg file not given or doesn't exist: " + mpeg);
                    
62         schedule = false;
                    
67         if ( ! encodeConfig.isValidEncodeName(job.encodeName) ) {
                    
68            log.error("invalid encoding profile for this job: " + job.encodeName);
                    
69            schedule = false;
                    
110      } else {
                    
111         log.error("Failed to start command: " + process.toString());
                    
112         process.printStderr();
                    
215         if (failed == 1) {
                    
216            log.error("encoding failed (exit code: " + exit_code + " ) - check command: " + process.toString());
                    
217            process.printStderr();
                    
238               } else {
                    
239                  log.error("Failed to delete file: "+ job.inputFile);
                    
240               }
                    
                
Action.class.php http://thinkphp.googlecode.com/svn/trunk/ | PHP | 340 lines
                    
134                // ????
                    
135                throw_exception(L('_ERROR_ACTION_').ACTION_NAME);
                    
136            }
                    
290            307 => 'Temporary Redirect',
                    
291            // Client Error 4xx
                    
292            400 => 'Bad Request',
                    
309            417 => 'Expectation Failed',
                    
310            // Server Error 5xx
                    
311            500 => 'Internal Server Error',
                    
                
dbus.cpp git://pkgs.fedoraproject.org/konversation | C++ | 413 lines
                    
145
                    
146void DBus::error(const QString& string)
                    
147{
                    
148    kDebug();
                    
149    emit dbusInfo(i18n("Error: %1", sterilizeUnicode(string)));
                    
150}
                    
168    {
                    
169        error( i18n( "getNickname: Server %1 is not found.",  serverName ) );
                    
170        return QString();
                    
                
stream_supp.h git://pkgs.fedoraproject.org/gprolog | C Header | 473 lines
                    
57
                    
58#define STREAM_EOF_ACTION_ERROR    0
                    
59#define STREAM_EOF_ACTION_EOF_CODE 1
                    
208int pl_stm_output;
                    
209int pl_stm_error;
                    
210
                    
222int pl_atom_user_output;
                    
223int pl_atom_user_error;
                    
224
                    
241
                    
242int pl_atom_error;
                    
243int pl_atom_eof_code;
                    
275extern int pl_stm_output;
                    
276extern int pl_stm_error;
                    
277
                    
                
c_F.c git://pkgs.fedoraproject.org/unuran | C | 373 lines
                    
277  if (n_params < 2) {
                    
278    _unur_error(distr_name,UNUR_ERR_DISTR_NPARAMS,"too few"); return UNUR_ERR_DISTR_NPARAMS; }
                    
279  if (n_params > 2) {
                    
285  if (nua <= 0. || nub <= 0.) {
                    
286    _unur_error(distr_name,UNUR_ERR_DISTR_DOMAIN,"nu <= 0");
                    
287    return UNUR_ERR_DISTR_DOMAIN;
                    
                
dataset.cpp git://pkgs.fedoraproject.org/gambas2 | C++ | 681 lines
                    
46		active = false;							// No connection yet
                    
47		error = "";									//S_NO_CONNECTION;
                    
48		host = "";
                    
81	db = NULL;
                    
82	haveError = active = false;
                    
83	frecno = 0;
                    
99	db = newDb;
                    
100	haveError = active = false;
                    
101	frecno = 0;
                    
260{
                    
261	haveError = false;
                    
262	frecno = 0;
                    
414		{
                    
415			GB.Error("Field not found: &1", f_name);
                    
416		}
                    
                
ExceptionPolicy.cs https://SilverlightLogging.svn.codeplex.com/svn | C# | 428 lines
                    
42	/// ApplicationName can be specified, and you can explicitly create a temporary store for Exceptions. Available stores are:
                    
43	/// 1. ApplicationStore, which uses IsolatedStorageSettings.ApplicationSettings to store errors in.
                    
44	/// 2. IsoStreamStore, which uses IsolatedStorageFileStream to store errors in.
                    
207			TryInitializeStore(ref store);			
                    
208			//catch unhandled errors
                    
209			Application.Current.UnhandledException += new EventHandler<ApplicationUnhandledExceptionEventArgs>(Current_UnhandledException);
                    
231			{
                    
232				//transfer existing errors when switching Stores.
                    
233				if (Store != null
                    
293		/// <param name="exception"></param>
                    
294		public void HandleException(Exception exception, ErrorLevel level = ErrorLevel.Critical)
                    
295		{
                    
409		/// <returns></returns>
                    
410		private ExceptionMessage MapExceptionToError(Exception exception, ErrorLevel level = ErrorLevel.Critical)
                    
411		{
                    
                
HTMLParser.py git://github.com/aptana/Pydev.git | Python | 384 lines
                    
48
                    
49class HTMLParseError(Exception):
                    
50    """Exception raised for all parse errors."""
                    
113
                    
114    def error(self, message):
                    
115        raise HTMLParseError(message, self.getpos())
                    
165                    if end:
                    
166                        self.error("EOF in middle of construct")
                    
167                    break
                    
194                    if end and match.group() == rawdata[i:]:
                    
195                        self.error("EOF in middle of entity or char ref")
                    
196                    # incomplete
                    
276                offset = offset + len(self.__starttag_text)
                    
277            self.error("junk characters in start tag: %s"
                    
278                       % `rawdata[k:endpos][:20]`)
                    
                
DesTest.cs https://singularity.svn.codeplex.com/svn | C# | 309 lines
                    
76                if (Util.CompareArraySpans(message, 0, roundtrip_clear, 0, 8) != 0) {
                    
77                    Console.WriteLine("DES ERROR: DES implementation '{0}' FAILED an encrypt/decrypt roundtrip test.", des.GetType().Name);
                    
78                    Console.WriteLine("    key:                " + Util.ByteArrayToStringHex(key));
                    
                
ftcglyph.h http://libgdx.googlecode.com/svn/trunk/ | C++ Header | 330 lines
                    
223  /* can be used as @FTC_Cache_InitFunc */
                    
224  FT_LOCAL( FT_Error )
                    
225  FTC_GCache_Init( FTC_GCache  cache );
                    
254  /* convenience function; use it instead of FTC_Manager_Register_Cache */
                    
255  FT_LOCAL( FT_Error )
                    
256  FTC_GCache_New( FTC_Manager       manager,
                    
260#ifndef FTC_INLINE
                    
261  FT_LOCAL( FT_Error )
                    
262  FTC_GCache_Lookup( FTC_GCache   cache,
                    
280#define FTC_GCACHE_LOOKUP_CMP( cache, famcmp, nodecmp, hash,                \
                    
281                               gindex, query, node, error )                 \
                    
282  FT_BEGIN_STMNT                                                            \
                    
291    FTC_MRULIST_LOOKUP_CMP( &_gcache->families, _gquery, _fcompare,         \
                    
292                            _mrunode, error );                              \
                    
293    _gquery->family = FTC_FAMILY( _mrunode );                               \
                    
                
FileUtility.cs https://scsfcontrib.svn.codeplex.com/svn | C# | 379 lines
                    
114			{
                    
115				//  it is a unc path, so decorate the end with a back-slash (to correct misconfigurations, defend against trivial errors)
                    
116				return AppendTerminalBackslash( path );
                    
                
VideoLibraryRefreshingJob.cpp git://github.com/xbmc/xbmc.git | C++ | 371 lines
                    
125      // if there's no NFO remember it in case we have to refresh again
                    
126      if (nfoResult == CInfoScanner::ERROR_NFO)
                    
127        ignoreNfo = true;
                    
132      if (needsRefresh && IsModal() && !scraper->IsNoop()
                    
133          && nfoResult != CInfoScanner::ERROR_NFO)
                    
134      {
                    
                
Set-SecureAutoLogon.ps1 https://git01.codeplex.com/boxstarter | Powershell | 319 lines
                    
98
                    
99                [DllImport("advapi32.dll", SetLastError = true, PreserveSig = true)]
                    
100                private static extern uint LsaOpenPolicy(
                    
111
                    
112                [DllImport("advapi32.dll", SetLastError = true, PreserveSig = true)]
                    
113                private static extern uint LsaClose(
                    
156
                    
157                    uint winErrorCode = LsaNtStatusToWinError(ntsResult);
                    
158                    if (winErrorCode != 0)
                    
168                    uint ntsResult = LsaClose(LsaPolicyHandle);
                    
169                    uint winErrorCode = LsaNtStatusToWinError(ntsResult);
                    
170                    if (winErrorCode != 0)
                    
198
                    
199                    uint winErrorCode = LsaNtStatusToWinError(result);
                    
200                    if (winErrorCode != 0)
                    
                
update-utmp.c https://review.tizen.org/git/ | C | 421 lines
                    
79        if (!(reply = dbus_connection_send_with_reply_and_block(c->bus, m, -1, &error))) {
                    
80                log_error("Failed to send command: %s", bus_error_message(&error));
                    
81                goto finish;
                    
137
                    
138        dbus_error_init(&error);
                    
139
                    
169                                           DBUS_TYPE_INVALID)) {
                    
170                        log_error("Failed to parse reply: %s", bus_error_message(&error));
                    
171                        r = -EIO;
                    
196                if (!(reply = dbus_connection_send_with_reply_and_block(c->bus, m, -1, &error))) {
                    
197                        log_error("Failed to send command: %s", bus_error_message(&error));
                    
198                        r = -EIO;
                    
383        if (bus_connect(DBUS_BUS_SYSTEM, &c.bus, NULL, &error) < 0) {
                    
384                log_error("Failed to get D-Bus connection: %s", bus_error_message(&error));
                    
385                r = -EIO;
                    
                
AccountController.cs https://IntellectShop.svn.codeplex.com/svn | C# | 454 lines
                    
108				{
                    
109					ModelState.AddModelError("", AccountValidation.ErrorCodeToString(createStatus));
                    
110				}
                    
220				{
                    
221					TempData["RoleError"] = "Не могу удалить роль: '" + Globals.AdministratorRoleName + "'.";
                    
222				}
                    
301								{
                    
302									TempData["UserError"] = "Не смог удалить пользователя из роли.";
                    
303								}
                    
312								{
                    
313									TempData["UserError"] = "Не смог добавить пользователя в роль.";
                    
314								}
                    
434				{
                    
435					TempData["UserError"] = "Не могу удалить пользователя.";
                    
436				}
                    
                
ErrorMailHtmlFormatter.cs https://aspexceptionreporer.svn.codeplex.com/svn | C# | 383 lines
                    
50    
                    
51    public class ErrorMailHtmlFormatter : ErrorTextFormatter
                    
52    {
                    
53        private HtmlTextWriter _writer;
                    
54        private Error _error;
                    
55
                    
70
                    
71        public override void Format(TextWriter writer, Error error)
                    
72        {
                    
133
                    
134        protected Error Error
                    
135        {
                    
255            HtmlTextWriter writer = this.Writer;
                    
256            Error error = this.Error;
                    
257
                    
                
test045.tcl http://opensource.apple.com/release/developer-tools-43/ | TCL | 151 lines
                    
32</span><span class="enscript-comment"># TEST		Runs a number of random add/delete/retrieve operations.
                    
33</span><span class="enscript-comment"># TEST		Tests both successful conditions and error conditions.
                    
34</span><span class="enscript-comment"># TEST
                    
42</span><span class="enscript-comment">#	-dups &lt;allow duplicates in file&gt;
                    
43</span><span class="enscript-comment">#	-errpct &lt;Induce errors errpct of the time&gt;
                    
44</span><span class="enscript-comment">#	-init &lt;initial number of entries in database&gt;
                    
108	     -create -mode 0644 $<span class="enscript-variable-name">omethod</span>} $<span class="enscript-variable-name">oargs</span> {$<span class="enscript-variable-name">f</span>}]
                    
109	error_check_good dbopen:$<span class="enscript-variable-name">f</span> [is_valid_db $<span class="enscript-variable-name">db</span>] TRUE
                    
110
                    
111	<span class="enscript-keyword">set</span> r [$<span class="enscript-variable-name">db</span> close]
                    
112	error_check_good dbclose:$<span class="enscript-variable-name">f</span> $<span class="enscript-variable-name">r</span> 0
                    
113
                    
113
                    
114	<span class="enscript-comment"># We redirect standard out, but leave standard error here so we
                    
115</span>	<span class="enscript-comment"># can see errors.
                    
                
ns-address.tcl http://uu-cope.googlecode.com/svn/trunk/ | TCL | 391 lines
                    
94#               set-address-format command explained above.
                    
95#               expand-port-field-bits checks and raises error in the foll. 
                    
96#		cases
                    
99#                 * if requested portsize is less than equal to existing 
                    
100#		    portsize, and incase of no errors sets port field with 
                    
101# 		    bits as specified.
                    
102#
                    
103# Errors: 	* if # of bits specified less than 0.
                    
104#               * if bit positions clash (contiguous # of requested free bits 
                    
153	} else {
                    
154		error "ns-address.tcl:set-address-format: Unknown address format $opt"
                    
155	}
                    
241	if {$bit_num <= 0 } {
                    
242		error "$prog : \# bits less than 1"
                    
243	}
                    
                
suspend.php http://creative-portal.googlecode.com/svn/trunk/ | PHP | 297 lines
                    
66    $save = $nv_Request->get_int( 'save', 'post', 0 );
                    
67    $error = "";
                    
68    if ( $save )
                    
74        {
                    
75            $error = sprintf( $lang_module['susp_reason_empty'], $row_user['username'] );
                    
76        }
                    
154                    {
                    
155                        nv_info_die( $lang_global['error_info_caption'], $lang_global['site_info'], $lang_global['error_sendmail_admin'], 1 );
                    
156                    }
                    
167    
                    
168    $contents['change_suspend']['new_suspend_caption'] = ( ! empty( $error ) ) ? $error : $lang_module['chg_is_suspend' . $new_suspend];
                    
169    $contents['change_suspend']['new_suspend_is_error'] = ( ! empty( $error ) ) ? 1 : 0;
                    
264{
                    
265    $class = ( $contents['change_suspend']['new_suspend_is_error'] ) ? " class=\"error\"" : "";
                    
266    $xtpl->assign( 'CLASS', ( $contents['change_suspend']['new_suspend_is_error'] ) ? " class=\"error\"" : "" );
                    
                
users_controller_spec.rb http://mobicents.googlecode.com/svn/trunk/ | Ruby | 412 lines
                    
193
                    
194    it "should set an error message in the flash if the user's profile is not complete'" do
                    
195      @current_user.stub!(:profile_complete?).and_return(false)
                    
196      get :edit
                    
197      flash[:error].should_not be_blank
                    
198    end
                    
199
                    
200    it "should NOT set an error message in the flash if the user's profile is not complete'" do
                    
201      @current_user.stub!(:profile_complete?).and_return(true)
                    
202      get :edit
                    
203      flash[:error].should be_blank
                    
204    end
                    
355
                    
356      it "should have a status of :error if the credentials are not valid" do
                    
357        @client.should_receive(:attempt).with(:valid_credentials?, false).and_return(false)
                    
                
Parser.cpp git://github.com/evilsocket/SoftWire.git | C++ | 564 lines
                    
260			default:
                    
261				throw Error("Unexpected punctuator after mnemonic '%c'", tokenList.getChar());
                    
262			}
                    
503					{
                    
504						throw Error("Syntax error '+' in memory reference");
                    
505					}
                    
511					{
                    
512						throw Error("Syntax error '-' in memory reference");
                    
513					}
                    
519					{
                    
520						throw Error("Syntax error '*' in memory reference");
                    
521					}
                    
561
                    
562		throw Error("Unexpected end of line in memory reference");
                    
563	}
                    
                
XSRuntime.c git://github.com/macmade/XSFoundation.git | C | 519 lines
                    
53 * @brief       Checks if the runtime has been initialized
                    
54 * @details     This macro will produce a fatal error if the runtime has not been initialized.
                    
55 */
                    
55 */
                    
56#define __XS___XS_RUNTIME_INIT_CHECK_INIT_CHECK         if( __xsruntime_inited == NO ) { XSFatalError( "Error: the runtime has not been initialized\n" ) }
                    
57
                    
111        {
                    
112            fprintf( stderr, "Error: unable to allocate the runtime class table!\n" );
                    
113            exit( EXIT_FAILURE );
                    
124        {
                    
125            fprintf( stderr, "Error: unable to re-allocate the runtime class table!\n" );
                    
126            exit( EXIT_FAILURE );
                    
154        {
                    
155            fprintf( stderr, "Error: unable to re-allocate the class methods table!\n" );
                    
156            exit( EXIT_FAILURE );
                    
                
anyserver.py git://github.com/web2py/web2py.git | Python | 365 lines
                    
252        # SimpleHandler needs file-like stream objects for
                    
253        # requests, errors and responses
                    
254        reqIO = StringIO.StringIO(req.body)
                    
274        # Especially the WSGI handler from Django seems to generate them (2 actually, huh?)
                    
275        # a BOM isn't really necessary and cause HTML parsing errors in Chrome and Safari
                    
276        # See also: http://www.xs4all.nl/~mechiel/projects/bomstrip/
                    
279
                    
280        # Get the generated errors
                    
281        errors = errIO.getvalue()
                    
285            print("RESPONSE: %r\n" % response)
                    
286        if errors:
                    
287            if debug:
                    
287            if debug:
                    
288                print("ERRORS: %r" % errors)
                    
289            data = "%s\r\n\r\n%s" % (data, errors)
                    
                
mcc200.h git://pkgs.fedoraproject.org/uboot-tools | C Header | 428 lines
                    
87	!defined(CONFIG_SERIAL_MULTI)
                    
88#error "Select only one console device!"
                    
89#endif
                    
406#else
                    
407#error "Wrong QUART expander number."
                    
408#endif
                    
                
package-use.html git://pkgs.fedoraproject.org/javassist | HTML | 298 lines
                    
220<TR BGCOLOR="white" CLASS="TableRowColor">
                    
221<TD><B><A HREF="../../../javassist/bytecode/annotation/class-use/NoSuchClassError.html#javassist.bytecode.annotation"><B>NoSuchClassError</B></A></B>
                    
222
                    
                
Win32Threads.cpp git://pkgs.fedoraproject.org/xmltooling | C++ | 431 lines
                    
42#define THREAD_ERROR_TIMEOUT 	(1)
                    
43#define THREAD_ERROR_WAKE_OTHER (2)
                    
44#define THREAD_ERROR 		    (3)
                    
49        return 0;
                    
50    Category::getInstance(XMLTOOLING_LOGCAT".Threads").error("error from thread operation (%d)", GetLastError());
                    
51    return THREAD_ERROR;
                    
111            if (thread_id==0) {
                    
112                map_windows_error_status_to_pthreads();
                    
113                throw ThreadingException("Thread creation failed.");
                    
181            if(cond==0) {
                    
182                map_windows_error_status_to_pthreads();
                    
183    	        throw ThreadingException("Event creation failed.");
                    
188            if((cond!=0) && (!CloseHandle(cond)))
                    
189                map_windows_error_status_to_pthreads();
                    
190        }
                    
                
install.php https://code.google.com/p/osclass/ | PHP | 253 lines
                    
21
                    
22error_reporting(E_ERROR | E_CORE_ERROR | E_COMPILE_ERROR | E_PARSE);
                    
23
                    
41require_once LIB_PATH . 'osclass/helpers/hDefines.php';
                    
42require_once LIB_PATH . 'osclass/helpers/hErrors.php';
                    
43require_once LIB_PATH . 'osclass/helpers/hLocale.php';
                    
86    $message = __("Looks like you've already installed OSClass. To reinstall please clear your old database tables first.");
                    
87    osc_die('OSClass &raquo; Error', $message) ;
                    
88}
                    
219                    } elseif($step == 3) {
                    
220                        if( !isset($error["error"]) ) {
                    
221                            display_target();
                    
222                        } else {
                    
223                            display_database_error($error, ($step - 1));
                    
224                        }
                    
                
test_weakset.py https://bitbucket.org/pypy/pypy/ | Python | 382 lines
                    
53    def test_new_or_init(self):
                    
54        self.assertRaises(TypeError, WeakSet, [], 2)
                    
55
                    
65            self.assertEqual(c in self.s, c in self.d)
                    
66        # 1 is not weakref'able, but that TypeError is caught by __contains__
                    
67        self.assertNotIn(1, self.s)
                    
78        self.assertEqual(type(u), WeakSet)
                    
79        self.assertRaises(TypeError, self.s.union, [[]])
                    
80        for C in set, frozenset, dict.fromkeys, list, tuple:
                    
114        self.assertEqual(type(i), WeakSet)
                    
115        self.assertRaises(TypeError, self.s.difference, [[]])
                    
116
                    
127        self.assertEqual(type(i), WeakSet)
                    
128        self.assertRaises(TypeError, self.s.symmetric_difference, [[]])
                    
129
                    
                
File.as http://buddypress-media.googlecode.com/svn/bp_media/trunk/ | ActionScript | 422 lines
                    
166			// Delegate upload IO errors
                    
167			file._fileRef.addEventListener(IOErrorEvent.IO_ERROR, function(e:IOErrorEvent):void {
                    
168				dispatchEvent(e);
                    
171			// Delegate secuirty errors
                    
172			file._fileRef.addEventListener(SecurityErrorEvent.SECURITY_ERROR, function(e:SecurityErrorEvent):void {
                    
173				dispatchEvent(e);
                    
263			// File load IO error
                    
264			this._fileRef.addEventListener(IOErrorEvent.IO_ERROR, function(e:Event):void {
                    
265				this.dispatchEvent(e);
                    
333			// Delegate upload IO errors
                    
334			urlStream.addEventListener(IOErrorEvent.IO_ERROR, function(e:IOErrorEvent):void {
                    
335				file._chunk = file._chunks; // Cancel upload of all remaining chunks
                    
339			// Delegate secuirty errors
                    
340			urlStream.addEventListener(SecurityErrorEvent.SECURITY_ERROR, function(e:SecurityErrorEvent):void {
                    
341				file._chunk = file._chunks; // Cancel upload of all remaining chunks
                    
                
MefXapModuleTypeLoader.cs https://prism.svn.codeplex.com/svn | C# | 309 lines
                    
75
                    
76        private void RaiseLoadModuleCompleted(ModuleInfo moduleInfo, Exception error)
                    
77        {
                    
77        {
                    
78            this.RaiseLoadModuleCompleted(new LoadModuleCompletedEventArgs(moduleInfo, error));
                    
79        }
                    
219            
                    
220            Exception error = e.Error;
                    
221            if (error == null)
                    
236                {
                    
237                    error = ex;
                    
238                }
                    
242            {
                    
243                this.RaiseLoadModuleCompleted(moduleInfo, error);
                    
244            }
                    
                
Graphic3d_headers.i http://pythonocc.googlecode.com/svn/trunk/ | Swig | 360 lines
                    
54#include<Graphic3d_AspectText3d.hxx>
                    
55#include<Graphic3d_AspectTextDefinitionError.hxx>
                    
56#include<Graphic3d_CBitFields16.hxx>
                    
71#include<Graphic3d_CView.hxx>
                    
72#include<Graphic3d_CycleError.hxx>
                    
73#include<Graphic3d_DataStructureManager.hxx>
                    
78#include<Graphic3d_GroupAspect.hxx>
                    
79#include<Graphic3d_GroupDefinitionError.hxx>
                    
80#include<Graphic3d_HSequenceOfGroup.hxx>
                    
83#include<Graphic3d_HorizontalTextAlignment.hxx>
                    
84#include<Graphic3d_InitialisationError.hxx>
                    
85#include<Graphic3d_ListIteratorOfListOfPArray.hxx>
                    
95#include<Graphic3d_MaterialAspect.hxx>
                    
96#include<Graphic3d_MaterialDefinitionError.hxx>
                    
97#include<Graphic3d_NListOfHAsciiString.hxx>
                    
                
StdFail.i http://pythonocc.googlecode.com/svn/trunk/ | Swig | 458 lines
                    
55%nodefaultctor Handle_StdFail_UndefinedValue;
                    
56class Handle_StdFail_UndefinedValue : public Handle_Standard_DomainError {
                    
57	public:
                    
207%nodefaultctor Handle_StdFail_UndefinedDerivative;
                    
208class Handle_StdFail_UndefinedDerivative : public Handle_Standard_DomainError {
                    
209	public:
                    
288%nodefaultctor StdFail_UndefinedDerivative;
                    
289class StdFail_UndefinedDerivative : public Standard_DomainError {
                    
290	public:
                    
417%nodefaultctor StdFail_UndefinedValue;
                    
418class StdFail_UndefinedValue : public Standard_DomainError {
                    
419	public:
                    
                
udhcpc.c http://wl500g.googlecode.com/svn/trunk/ | C | 482 lines
                    
47	if (!(fp = fopen(tmp, "w"))) {
                    
48		perror(tmp);
                    
49		return errno;
                    
447	if ((fp = fopen("/etc/dhcp6c.conf", "w")) == NULL) {
                    
448		perror("/etc/dhcp6c.conf");
                    
449                return 2;
                    
                
blobstore_stub.py https://code.google.com/p/soc/ | Python | 389 lines
                    
303    Raises:
                    
304      ApplicationError when application has the following errors:
                    
305        INDEX_OUT_OF_RANGE: Index is negative or end > start.
                    
312    if start_index < 0:
                    
313      raise apiproxy_errors.ApplicationError(
                    
314          blobstore_service_pb.BlobstoreServiceError.DATA_INDEX_OUT_OF_RANGE)
                    
318    if end_index < start_index:
                    
319      raise apiproxy_errors.ApplicationError(
                    
320          blobstore_service_pb.BlobstoreServiceError.DATA_INDEX_OUT_OF_RANGE)
                    
324    if fetch_size > blobstore.MAX_BLOB_FETCH_SIZE:
                    
325      raise apiproxy_errors.ApplicationError(
                    
326          blobstore_service_pb.BlobstoreServiceError.BLOB_FETCH_SIZE_TOO_LARGE)
                    
335    except datastore_errors.EntityNotFoundError, err:
                    
336      raise apiproxy_errors.ApplicationError(
                    
337          blobstore_service_pb.BlobstoreServiceError.BLOB_NOT_FOUND)
                    
                
ExternalAnyKeyboard.java http://softkeyboard.googlecode.com/svn/ | Java | 323 lines
                    
164        } catch (Exception e) {
                    
165            Log.e(TAG, "Parse error:" + e);
                    
166            e.printStackTrace();
                    
                
fruchterman_reingold.hpp http://hadesmem.googlecode.com/svn/trunk/ | C++ Header | 0 lines
                    
12#ifndef BOOST_GRAPH_USE_MPI
                    
13#error "Parallel BGL files should not be included unless <boost/graph/use_mpi.hpp> has been included"
                    
14#endif
                    
                
CHANGELOG.html http://help-the-death.googlecode.com/svn/trunk/ | HTML | 350 lines
                    
77 * Javascript code refactoring!  Less mess!
                    
78 * Bugfix - range was including element 42, which is really the 43rd element, so there was an error happening when today happens exactly 43 days after the beginning date (caught this by chance, surprised it wasn't reported before)
                    
79</pre>
                    
109 * patch applied from mjroghelia to fix ie ssl iframe issue (84)
                    
110 * xhtml error fixed - &amp;nbsp; replaced with #160;
                    
111</pre>
                    
136  * Bugfix - was showing wrong day selected when selecting Mar 23, 2008.  (Day light savings time issue).  Fixed with test case.
                    
137  * Added CSS style to show red border around the embedded calendar_date_select div's with errors.
                    
138  * Callbacks were broken with 1.9.0.  Fixed, added test cases.
                    
158        * Don't focus a hidden element
                    
159        * Navigate down to child input element if exists (in case a div tag is passed in).  Resolves problems when input control is wrapped with a error div.  Test cases
                    
160        * Allow specific year ranges (pass in an array)
                    
225  * Calendar &quot;flicker&quot; fixed when displaying popup window.
                    
226  * JS error 106 being thrown - fixed
                    
227  * Bug fixes relating to calendar date select deciding whether to display above or below an element on a page
                    
                
usertypes.c git://github.com/vrai/Fudge-C.git | C | 313 lines
                    
199
                    
200void fatalFudgeError ( FudgeStatus status, const char * context );
                    
201AddressDetails * constructAddressDetails ( AddressStatus status,
                    
218    if ( ( status = Fudge_init ( ) ) )
                    
219        fatalFudgeError ( status, "Failed to initialise Fudge library" );
                    
220
                    
226                                                 FudgeType_coerceAddressDetails ) ) )
                    
227        fatalFudgeError ( status, "Failed to register AddressDetails type" );
                    
228
                    
234    if ( ( status = FudgeMsg_create ( &message ) ) )
                    
235        fatalFudgeError ( status, "Failed to create Fudge message" );
                    
236
                    
294{
                    
295    fprintf ( stderr, "FATAL ERROR: %s : %s\n", context, FudgeStatus_strerror ( status ) );
                    
296    exit ( 1 );
                    
                
slp_database.h https://openslp.svn.sourceforge.net/svnroot/openslp | C++ Header | 217 lines
                    
90/*                                                                         */
                    
91/* Returns: zero on success. Non-zero on error                             */
                    
92/*=========================================================================*/
                    
137/*                                                                         */
                    
138/* Returns: Valid handle.  NULL on error.                                  */
                    
139/*                                                                         */
                    
                
section4.clj git://github.com/jakemcc/sicp-study.git | Clojure | 491 lines
                    
191              (sequence->exp (cond-actions first-clause))
                    
192              (Error. (str  "ELSE clause isn't last -- COND->IF"
                    
193                            clauses)))
                    
339        :else
                    
340        (Error. (str
                    
341                 "Unknown procedure type -- EXECUTE-APPLICATION"
                    
471                    env)
                    
472        :else (Error. (str "Unknown expression type -- EVAL " exp))))
                    
473
                    
487            (procedure-environment procedure)))
                    
488        :else (Error. (str "Unknown procedure type -- APPLY " procedure))))
                    
489
                    
                
AnnotationsConfigurator.java git://github.com/burris/dwr.git | Java | 358 lines
                    
60            {
                    
61                Loggers.STARTUP.error("Failed to process class: " + clazz.getName(), ex);
                    
62            }
                    
96                    {
                    
97                        Loggers.STARTUP.error("Failed to process class: " + element, ex);
                    
98                    }
                    
108                {
                    
109                    Loggers.STARTUP.error("Failed to process class: " + data.getClass().getName(), ex);
                    
110                }
                    
182        {
                    
183            Loggers.STARTUP.error("Failed to add class as Creator: " + clazz.getName(), ex);
                    
184        }
                    
                
schema.rb git://github.com/thirumg/Avro.NET.git | Ruby | 427 lines
                    
65        elsif type.nil?
                    
66          raise SchemaParseError.new("No \"type\" property: #{json_obj}")
                    
67        else
                    
136        raise e if e.is_a? SchemaParseError
                    
137        raise SchemaParseError, "Sub-schema for #{self.class.name} not a valid Avro schema. Bad schema: #{json_obj}"
                    
138      end
                    
181            if field_names.include?(new_field.name)
                    
182              raise SchemaParseError, "Field name #{new_field.name.inspect} is already in use"
                    
183            end
                    
392
                    
393  class SchemaParseError < AvroError; end
                    
394
                    
411      elsif names.has_key?(new_fullname)
                    
412        raise SchemaParseError, "The name \"#{new_fullname}\" is already in use."
                    
413      end
                    
                
rsv.js git://github.com/benkeen/generatedata.git | JavaScript | 243 lines
                    
12rsv.errorFieldClass=null;
                    
13rsv.errorTextIntro="Please fix the following error(s) and resubmit:";
                    
14rsv.errorJSItemBullet="* ";
                    
74if(!oneIsSelected||form[fieldName].length==0)
                    
75{if(!rsv.processError(form[fieldName],errorMessage))
                    
76return false;}}
                    
145break;case"same_as":if(form[fieldName].value!=form[fieldName2].value)
                    
146{if(!rsv.processError(form[fieldName],errorMessage))
                    
147return false;}
                    
197{var errorHTML=rsv.errorTextIntro+"<br /><br />";for(var i=0;i<errorInfo.length;i++)
                    
198{errorHTML+=rsv.errorHTMLItemBullet+errorInfo[i][1]+"<br />";rsv.styleField(errorInfo[i][0],i==0);}
                    
199if(errorInfo.length>0)
                    
199if(errorInfo.length>0)
                    
200{document.getElementById(rsv.errorTargetElementId).style.display="block";document.getElementById(rsv.errorTargetElementId).innerHTML=errorHTML;return false;}
                    
201return true;}
                    
                
HostContext.cs git://github.com/ServiceStack/ServiceStack.git | C# | 339 lines
                    
30            if (ServiceStackHost.Instance == null)
                    
31                throw new ConfigurationErrorsException(
                    
32                    "ServiceStack: AppHost does not exist or has not been initialized. " +
                    
310            if (req == null)
                    
311                throw new NotImplementedException(ErrorMessages.HostDoesNotSupportSingletonRequest);
                    
312
                    
                
cl-programs.adb git://github.com/flyx86/OpenCLAda.git | Ada | 294 lines
                    
64         Ret_Program : System.Address;
                    
65         Error       : aliased Enumerations.Error_Code;
                    
66      begin
                    
72         IFC.Strings.Free (C_String);
                    
73         Helpers.Error_Handler (Error);
                    
74         return Program'(Ada.Finalization.Controlled with Location => Ret_Program);
                    
83         Ret_Program : System.Address;
                    
84         Error       : aliased Enumerations.Error_Code;
                    
85      begin
                    
169         else
                    
170            Helpers.Error_Handler (Error);
                    
171         end if;
                    
214      end if;
                    
215      Helpers.Error_Handler (Error);
                    
216   end Build;
                    
                
main.cpp https://hg.codeplex.com/d3dgraphicspipeline | C++ | 464 lines
                    
226    if ( doThrow )
                    
227        throw ::std::logic_error( "Test Exception." );
                    
228    return m_value;
                    
338    Thingy thingy( 10 );
                    
339    throw ::std::logic_error( "Will Thingy assert during an exception?" );
                    
340}
                    
354    }
                    
355    catch ( const ::std::logic_error & ex )
                    
356    {
                    
378    }
                    
379    catch ( const ::std::logic_error & ex )
                    
380    {
                    
407    }
                    
408    catch ( const ::std::logic_error & ex )
                    
409    {
                    
                
OPC_Data_Srv.cs https://hg.codeplex.com/automationtools | C# | 515 lines
                    
54		else
                    
55			return "ID:" + PropertyID + " Error:" + Error.ToString();
                    
56		}
                    
61	public int		PropertyID;
                    
62	public int		Error;
                    
63	public string	newItemID;
                    
69		else
                    
70			return "ID:" + PropertyID + " Error:" + Error.ToString();
                    
71		}
                    
166
                    
167	public string GetErrorString( int errorCode, int localeID )
                    
168		{
                    
169		string	errorres;
                    
170		ifServer.GetErrorString( errorCode, localeID, out errorres );
                    
171		return errorres;
                    
                
ComponentPart.cs https://hg.codeplex.com/caliburn | C# | 295 lines
                    
129		/// <exception cref="T:System.ComponentModel.Composition.Primitives.ComposablePartException">
                    
130		/// An error occurred getting the exported object described by the <see cref="T:System.ComponentModel.Composition.Primitives.ExportDefinition"/>.
                    
131		/// </exception>
                    
208		/// <exception cref="T:System.ComponentModel.Composition.Primitives.ComposablePartException">
                    
209		/// An error occurred setting the import described by the <see cref="T:System.ComponentModel.Composition.Primitives.ImportDefinition"/>.
                    
210		/// </exception>
                    
                
ErrorData.html http://xformsdb.googlecode.com/svn/trunk/ | HTML | 342 lines
                    
96<P>
                    
97Contains information about an error, for error pages.
                    
98 The information contained in this instance is meaningless if not used
                    
98 The information contained in this instance is meaningless if not used
                    
99 in the context of an error page.  To indicate a JSP is an error page,
                    
100 the page author must set the isErrorPage attribute of the page directive
                    
107  <DD>2.0</DD>
                    
108<DT><B>See Also:</B><DD><A HREF="../../../javax/servlet/jsp/PageContext.html#getErrorData()"><CODE>PageContext.getErrorData()</CODE></A></DL>
                    
109<HR>
                    
126<TR BGCOLOR="white" CLASS="TableRowColor">
                    
127<TD><CODE><B><A HREF="../../../javax/servlet/jsp/ErrorData.html#ErrorData(java.lang.Throwable, int, java.lang.String, java.lang.String)">ErrorData</A></B>(java.lang.Throwable&nbsp;throwable,
                    
128          int&nbsp;statusCode,
                    
212<P>
                    
213<DT><B>Parameters:</B><DD><CODE>throwable</CODE> - The Throwable that is the cause of the error<DD><CODE>statusCode</CODE> - The status code of the error<DD><CODE>uri</CODE> - The request URI<DD><CODE>servletName</CODE> - The name of the servlet invoked</DL>
                    
214
                    
                
ChorusAssert.java git://github.com/Chorus-bdd/Chorus.git | Java | 332 lines
                    
51    	 * Asserts that a condition is true. If it isn't it throws
                    
52    	 * an AssertionFailedError with the given message.
                    
53    	 */
                    
59    	 * Asserts that a condition is true. If it isn't it throws
                    
60    	 * an AssertionFailedError.
                    
61    	 */
                    
66    	 * Asserts that a condition is false. If it isn't it throws
                    
67    	 * an AssertionFailedError with the given message.
                    
68    	 */
                    
73    	 * Asserts that a condition is false. If it isn't it throws
                    
74    	 * an AssertionFailedError.
                    
75    	 */
                    
83    		if (message == null) {
                    
84    			throw new ChorusAssertionError();
                    
85    		}
                    
                
Project.java git://github.com/openmicroscopy/bioformats.git | Java | 484 lines
                    
112	 * and references seen during object population.
                    
113	 * @throws EnumerationException If there is an error instantiating an
                    
114	 * enumeration during model object creation.
                    
133	 * and references seen during object population.
                    
134	 * @throws EnumerationException If there is an error instantiating an
                    
135	 * enumeration during model object creation.
                    
                
effectivebandwidth.cpp git://pkgs.fedoraproject.org/kst | C++ | 378 lines
                    
201  if (inputVectorX->length() < 1) {
                    
202    _errorString = "Error:  Input Vector X invalid size";
                    
203    return false;
                    
207  if (inputVectorX->length() != inputVectorY->length()) {
                    
208    _errorString = "Error:  Input Vector X and Input Vector Y are not the same length";
                    
209    return false;
                    
236  if ( !(minWhiteNoiseIndex>0) || !(minWhiteNoiseIndex<(inputVectorX->length()-1)) ) {
                    
237    _errorString = "Error:  Calculated Indices invalid";
                    
238    return false;
                    
                
weakref.rst git://pkgs.fedoraproject.org/python | ReStructuredText | 358 lines
                    
104
                    
105   Exceptions raised by the callback will be noted on the standard error output,
                    
106   but cannot be propagated; they are handled in exactly the same way as exceptions
                    
111   the first time only after the *object* was deleted, the call will raise
                    
112   :exc:`TypeError`.
                    
113
                    
245
                    
246.. exception:: ReferenceError
                    
247
                    
248   Exception raised when a proxy object is used but the underlying object has been
                    
249   collected.  This is the same as the standard :exc:`ReferenceError` exception.
                    
250
                    
                
goawindowsliveprovider.c git://pkgs.fedoraproject.org/gnome-online-accounts | C | 435 lines
                    
151                   GCancellable       *cancellable,
                    
152                   GError            **error)
                    
153{
                    
179    {
                    
180      g_set_error (error,
                    
181                   GOA_ERROR,
                    
194    {
                    
195      g_prefix_error (error, _("Error parsing response as JSON: "));
                    
196      goto out;
                    
213    {
                    
214      g_set_error (error,
                    
215                   GOA_ERROR,
                    
273              gboolean             just_added,
                    
274              GError             **error)
                    
275{
                    
                
Features.java http://jjil.googlecode.com/svn/trunk/ | Java | 377 lines
                    
110                    Length = Delta.length();
                    
111                } catch (jjil.core.Error ex) {
                    
112                }
                    
168                        Length = Delta.length();
                    
169                    } catch (jjil.core.Error ex) {
                    
170                    }
                    
226                        Length = Delta.length();
                    
227                    } catch (jjil.core.Error ex) {
                    
228                    }
                    
                
cookie.php http://skygames.googlecode.com/svn/trunk/ | PHP | 485 lines
                    
184 * You must use this method before any output is sent to the browser.
                    
185 * Failure to do so will result in header already sent errors.
                    
186 *
                    
267 * You must use this method before any output is sent to the browser.
                    
268 * Failure to do so will result in header already sent errors.
                    
269 *
                    
299 * You must use this method before any output is sent to the browser.
                    
300 * Failure to do so will result in header already sent errors.
                    
301 *
                    
                
RenderWorld_local.h git://github.com/TTimo/doom3.gpl.git | C Header | 262 lines
                    
31
                    
32// assume any lightDef or entityDef index above this is an internal error
                    
33const int LUDICROUS_INDEX	= 10000;
                    
                
table.c git://github.com/octo/collectd.git | C | 502 lines
                    
36
                    
37#define log_err(...) ERROR("table plugin: " __VA_ARGS__)
                    
38#define log_warn(...) WARNING("table plugin: " __VA_ARGS__)
                    
446
                    
447  if (ferror(fh) != 0) {
                    
448    log_err("Failed to read from file \"%s\": %s.", tbl->file, STRERRNO);
                    
                
io.go git://github.com/ssrl/go.git | Go | 439 lines
                    
17
                    
18func (err *Error) String() string { return err.ErrorString }
                    
19
                    
21// but failed to return an explicit error.
                    
22var ErrShortWrite os.Error = &Error{"short write"}
                    
23
                    
24// ErrShortBuffer means that a read required a longer buffer than was provided.
                    
25var ErrShortBuffer os.Error = &Error{"short buffer"}
                    
26
                    
28// middle of reading a fixed-size block or data structure.
                    
29var ErrUnexpectedEOF os.Error = &Error{"unexpected EOF"}
                    
30
                    
48// Callers should always process the n > 0 bytes returned before
                    
49// considering the error err.  Doing so correctly handles I/O errors
                    
50// that happen after reading some bytes and also both of the
                    
                
AppFabric_Manager.cs git://github.com/MarkVSullivan/SobekCM-Web-Application.git | C# | 330 lines
                    
154
                    
155            if (( lastErrorTime.HasValue ) && ( DateTime.Now.Subtract( lastErrorTime.Value ).TotalMinutes < 15 ))
                    
156            {
                    
158                {
                    
159                    Tracer.Add_Trace("AppFabric_Manager.configure", "Network cache temporarily disabled due to previous error ( " + lastErrorTime.Value.ToShortTimeString() + " )<br />" + lastErrorMessage, Custom_Trace_Type_Enum.Error);
                    
160                }
                    
162                {
                    
163                    Tracer.Add_Trace("AppFabric_Manager.configure", "Network cache temporarily disabled due to previous error ( " + lastErrorTime.Value.ToShortTimeString() + " )", Custom_Trace_Type_Enum.Error);
                    
164                }
                    
178                {
                    
179                    Tracer.Add_Trace("AppFabric_Manager.configure", "Unable to prepare the caching client<br />" + lastErrorMessage, Custom_Trace_Type_Enum.Error);
                    
180                }
                    
207                {
                    
208                    Tracer.Add_Trace("AppFabric_Manager.configure", "Unable to create the region on the cache server<br />" + lastErrorMessage, Custom_Trace_Type_Enum.Error);
                    
209                }
                    
                
RDE_O11_ORDER.cs git://github.com/AnthonyNystrom/NuGenHL7.git | C# | 475 lines
                    
56				{
                    
57					System.String message = "Unexpected error accessing data - this is probably a bug in the source code generator.";
                    
58					throw new System.SystemException(message);
                    
111				{
                    
112					System.String message = "Unexpected error accessing data - this is probably a bug in the source code generator.";
                    
113					throw new System.SystemException(message);
                    
130				{
                    
131					System.String message = "Unexpected error accessing data - this is probably a bug in the source code generator.";
                    
132					throw new System.SystemException(message);
                    
149				{
                    
150					System.String message = "Unexpected error accessing data - this is probably a bug in the source code generator.";
                    
151					throw new System.SystemException(message);
                    
168				{
                    
169					System.String message = "Unexpected error accessing data - this is probably a bug in the source code generator.";
                    
170					throw new System.SystemException(message);
                    
                
core.lua git://github.com/sweetfish/lurch.git | Lua | 532 lines
                    
49  else
                    
50    self:log("Recieved an error: " .. tostring(err) .. " (line '" .. tostring(line) .. "')")
                    
51  end
                    
205  else
                    
206    self:say(chan, "Failed, error:")
                    
207    self:say(chan, tostring(err))
                    
435    else
                    
436      return "ERROR"
                    
437    end
                    
459-- pumps through all messages sent from the server
                    
460-- retruns false if an error occurs
                    
461function b:pump()
                    
498    if not (err == "timeout") then
                    
499      self:log("Error from client:recieve(): " .. tostring(err))
                    
500      return false
                    
                
JackWinMutex_8h_source.html git://pkgs.fedoraproject.org/jack-audio-connection-kit | HTML | 178 lines
                    
49<a name="l00023"></a>00023 <span class="preprocessor"></span>
                    
50<a name="l00024"></a>00024 <span class="preprocessor">#include &quot;JackError.h&quot;</span>
                    
51<a name="l00025"></a>00025 <span class="preprocessor">#include &quot;JackException.h&quot;</span>
                    
89<a name="l00066"></a>00066             } <span class="keywordflow">else</span> {
                    
90<a name="l00067"></a>00067                 <a class="code" href="group__ControlAPI.html#gac6448626e0b75fc6d9da1ccbdca0355e">jack_error</a>(<span class="stringliteral">&quot;JackWinMutex::Lock mutex already locked by thread = %d&quot;</span>, GetCurrentThreadId());
                    
91<a name="l00068"></a>00068                 <span class="keywordflow">return</span> <span class="keyword">false</span>;
                    
106<a name="l00083"></a>00083             } <span class="keywordflow">else</span> {
                    
107<a name="l00084"></a>00084                 <a class="code" href="group__ControlAPI.html#gac6448626e0b75fc6d9da1ccbdca0355e">jack_error</a>(<span class="stringliteral">&quot;JackWinMutex::Trylock mutex already locked by thread = %d&quot;</span>, GetCurrentThreadId());
                    
108<a name="l00085"></a>00085                 <span class="keywordflow">return</span> <span class="keyword">false</span>;
                    
123<a name="l00100"></a>00100             } <span class="keywordflow">else</span> {
                    
124<a name="l00101"></a>00101                 <a class="code" href="group__ControlAPI.html#gac6448626e0b75fc6d9da1ccbdca0355e">jack_error</a>(<span class="stringliteral">&quot;JackWinMutex::Unlock mutex not locked by thread = %d&quot;</span>, GetCurrentThreadId());
                    
125<a name="l00102"></a>00102                 <span class="keywordflow">return</span> <span class="keyword">false</span>;
                    
                
DataAccessController.java http://pride-toolsuite.googlecode.com/svn/ | Java | 363 lines
                    
36     * @return Collection<CVLookup> a collection of cv lookups
                    
37     * @throws DataAccessException  throw a exception when there is an error accessing the data source
                    
38     */
                    
43     * @return FileDescription  FileDescription object
                    
44     * @throws DataAccessException  throw a exception when there is an error accessing the data source
                    
45     */
                    
50     * @return ReferenceableParamGroup  the referenceable param group
                    
51     * @throws DataAccessException  throw a exception when there is an error accessing the data source
                    
52     */
                    
57     * @return Collection<Sample>   an colleciton of samples.
                    
58     * @throws DataAccessException  throw a exception when there is an error accessing the data source
                    
59     */
                    
64     * @return Collection<Software> an collection of softwares.
                    
65     * @throws DataAccessException  throw a exception when there is an error accessing the data source
                    
66     */
                    
                
Christian.php git://pkgs.fedoraproject.org/php-pear-Date-Holidays | PHP | 428 lines
                    
62     * @access   protected
                    
63     * @return   boolean true on success, otherwise a PEAR_ErrorStack object
                    
64     * @throws   object PEAR_ErrorStack
                    
368
                    
369        if (Date_Holidays::errorsOccurred()) {
                    
370            return Date_Holidays::getErrorStack();
                    
                
eee.c http://eeepc-linux.googlecode.com/svn/trunk/ | C | 462 lines
                    
22 *  WARNING:  This is an extremely *experimental* module!  This code has been
                    
23 *  developed through trial-and-error, which means I don't really understand
                    
24 *  100% what's going on here...  That means there's a chance that there could
                    
427
                    
428    /* We had an error, so cleanup all of the proc files... */
                    
429proc_init_cleanup:
                    
                
Plugin.pm git://github.com/mdxp/cookbooks.git | Perl | 450 lines
                    
39
                    
40my %ERRORS=('OK'=>0,'WARNING'=>1,'CRITICAL'=>2,'UNKNOWN'=>3,'DEPENDENT'=>4);
                    
41
                    
77
                    
78# nagios_exit("CODE", "error string")
                    
79sub nagios_exit 
                    
83  $code ||= "UNKNOWN";
                    
84  die "invalid code '$code'" unless exists $ERRORS{$code};
                    
85  if ($errstr && $errstr ne '1') {
                    
90  }
                    
91  exit $ERRORS{$code};
                    
92}
                    
396
                    
397Sometimes on error or warning you want to return more than just the 
                    
398error cases in the returned text. You can do this by passing a
                    
                
buildcfg.h https://bitbucket.org/knoss/pcmanager/ | C++ Header | 427 lines
                    
28#ifdef _WINDOWS_
                    
29#error "include buildcfg.h before include all other files"
                    
30#endif
                    
                
SynHighlighterManager.pas http://gedemin.googlecode.com/svn/trunk/ | Pascal | 480 lines
                    
71      component palette, it will function normally, except that when all is
                    
72      done, Delphi will disply small window with title "Error" and message
                    
73      "Operation aborted". Purely cosmetic issue for which there is no obvious
                    
                
OgreShadowCameraSetupPlaneOptimal.cpp http://gmogre3d.googlecode.com/svn/trunk/ | C++ | 428 lines
                    
183		{
                    
184			// error solving for projective matrix (rows 1,2,4)
                    
185		}
                    
206				{
                    
207					// error solving for increased precision rows 1,2,4
                    
208				}
                    
255		{
                    
256			// error solving for projective matrix (row 3)
                    
257		}
                    
                
package-tree.html git://pkgs.fedoraproject.org/svnkit | HTML | 171 lines
                    
90<LI TYPE="circle">class org.tmatesoft.svn.core.<A HREF="../../../../org/tmatesoft/svn/core/SVNDirEntry.html" title="class in org.tmatesoft.svn.core"><B>SVNDirEntry</B></A> (implements java.lang.<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Comparable.html" title="class or interface in java.lang">Comparable</A>)
                    
91<LI TYPE="circle">class org.tmatesoft.svn.core.<A HREF="../../../../org/tmatesoft/svn/core/SVNErrorCode.html" title="class in org.tmatesoft.svn.core"><B>SVNErrorCode</B></A> (implements java.io.<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/Serializable.html" title="class or interface in java.io">Serializable</A>)
                    
92<LI TYPE="circle">class org.tmatesoft.svn.core.<A HREF="../../../../org/tmatesoft/svn/core/SVNErrorMessage.html" title="class in org.tmatesoft.svn.core"><B>SVNErrorMessage</B></A> (implements java.io.<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/Serializable.html" title="class or interface in java.io">Serializable</A>)
                    
                
numa.h git://pkgs.fedoraproject.org/numactl | C Header | 469 lines
                    
284
                    
285/* Report distance of node1 from node2. 0 on error.*/
                    
286int numa_distance(int node1, int node2);
                    
287
                    
288/* Error handling. */
                    
289/* This is an internal function in libnuma that can be overwritten by an user
                    
289/* This is an internal function in libnuma that can be overwritten by an user
                    
290   program. Default is to print an error to stderr and exit if numa_exit_on_error
                    
291   is true. */
                    
291   is true. */
                    
292void numa_error(char *where);
                    
293
                    
295   fails */
                    
296extern int numa_exit_on_error;
                    
297/* Warning function. Can also be overwritten. Default is to print on stderr
                    
                
nsIController.h https://hg.codeplex.com/kmbrasil | C++ Header | 332 lines
                    
59#define NS_FORWARD_SAFE_NSICONTROLLER(_to) \
                    
60  NS_IMETHOD IsCommandEnabled(const char *command, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsCommandEnabled(command, _retval); } \
                    
61  NS_IMETHOD SupportsCommand(const char *command, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->SupportsCommand(command, _retval); } \
                    
61  NS_IMETHOD SupportsCommand(const char *command, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->SupportsCommand(command, _retval); } \
                    
62  NS_IMETHOD DoCommand(const char *command) { return !_to ? NS_ERROR_NULL_POINTER : _to->DoCommand(command); } \
                    
63  NS_IMETHOD OnEvent(const char *eventName) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnEvent(eventName); } 
                    
99{
                    
100    return NS_ERROR_NOT_IMPLEMENTED;
                    
101}
                    
105{
                    
106    return NS_ERROR_NOT_IMPLEMENTED;
                    
107}
                    
111{
                    
112    return NS_ERROR_NOT_IMPLEMENTED;
                    
113}
                    
                
tree.py http://nltk.googlecode.com/svn/trunk/ | Python | 353 lines
                    
77            if not os.path.isdir(os.path.join(basedir, self._original_rootdir)):
                    
78                raise IOError('%s is not installed' % self._name)
                    
79            self._basedir = basedir
                    
82            if not os.path.isdir(self._original_rootdir):
                    
83                raise IOError('%s is not installed' % self._name)
                    
84            self._basedir = '' # empty
                    
164        try: self._initialize()
                    
165        except IOError: return 0
                    
166        return 1
                    
198            estr = 'The given item is virtual; it has no path'
                    
199            raise NotImplementedError, estr
                    
200        else:
                    
227        else:
                    
228            raise ValueError, 'Unknown item %r' % (item,)
                    
229
                    
                
ActorKit.h http://plactorkit.googlecode.com/svn/trunk/ | C Header | 416 lines
                    
68
                    
69/* Error Domain and Codes */
                    
70extern NSString *PLActorErrorDomain;
                    
73/**
                    
74 * NSError codes in the Plausible Actor error domain.
                    
75 * @ingroup enums
                    
77typedef enum {
                    
78    /** An unknown error has occured. If this
                    
79     * code is received, it is a bug, and should be reported. */
                    
408/**
                    
409 * @page error_handling Error Handling Programming Guide
                    
410 *
                    
410 *
                    
411 * All returned errors will be a member of one of the below defined domains, however, new domains and error codes may be added at any time.
                    
412 * If you do not wish to report on the error cause, many methods support a simple form that requires no NSError argument.
                    
                
svc.c git://pkgs.fedoraproject.org/arm-gp2x-linux-glibc | C | 508 lines
                    
239
                    
240/* No procedure error reply */
                    
241void
                    
252
                    
253/* Can't decode args error reply */
                    
254void
                    
266
                    
267/* Some system error */
                    
268void
                    
279
                    
280/* Authentication error reply */
                    
281void
                    
287  rply.rm_reply.rp_stat = MSG_DENIED;
                    
288  rply.rjcted_rply.rj_stat = AUTH_ERROR;
                    
289  rply.rjcted_rply.rj_why = why;
                    
                
IVideoResampler.java http://xuggle.googlecode.com/svn/trunk/ | Java | 410 lines
                    
192 * @param	in The picture we'll resample from.  
                    
193 * @return	>= 0 on success; <0 on error.  
                    
194 */
                    
233 * @param	value The value of the property.  
                    
234 * @return	>= 0 if the property was successfully set; <0 on error  
                    
235 */
                    
244 * @param	value Value of option  
                    
245 * @return	>= 0 on success; <0 on error.  
                    
246 */
                    
255 * @param	value Value of option  
                    
256 * @return	>= 0 on success; <0 on error.  
                    
257 */
                    
266 * @param	value Value of option  
                    
267 * @return	>= 0 on success; <0 on error.  
                    
268 */
                    
                
URLStream.cpp git://github.com/lightspark/lightspark.git | C++ | 341 lines
                    
109	{
                    
110		//Notify an error during loading
                    
111		loader->incRef();
                    
111		loader->incRef();
                    
112		getVm(loader->getSystemState())->addEvent(loader,_MR(Class<IOErrorEvent>::getInstanceS(loader->getSystemState())));
                    
113	}
                    
191	{
                    
192		//Notify an error during loading
                    
193		th->incRef();
                    
193		th->incRef();
                    
194		sys->currentVm->addEvent(_MR(th),_MR(Class<IOErrorEvent>::getInstanceS(sys)));
                    
195		return;
                    
197
                    
198	//TODO: support the right events (like SecurityErrorEvent)
                    
199	//URLLoader ALWAYS checks for policy files, in contrast to NetStream.play().
                    
                
Result.scala git://github.com/etorreborre/specs2.git | Scala | 333 lines
                    
37        case Failure(_, _, _, _)   => args.failureColor("x")
                    
38        case Error(_, _)           => args.errorColor  ("!")
                    
39        case Pending(_)            => args.pendingColor("*")
                    
59        case Failure(_, _, _, _)   => "failure"
                    
60        case Error(_, _)           => "error"
                    
61        case Pending(_)            => "pending"
                    
71	    case Failure(m, e, st, d)  => Failure(msg, e, st, d)
                    
72	    case Error(m, st)          => Error(msg, st)
                    
73	    case Skipped(m, e)         => Skipped(msg, e)
                    
134      case (Success(msg1),               Error(msg2, st1))           => m2.updateMessage(msg1+"; "+msg2)
                    
135      case (Error(msg1, st1),            Error(msg2, st2))           => Error(msg1+"; "+msg2, st1)
                    
136      case (Error(msg1, st1),            Failure(msg2, e2, st2, d2)) => Error(msg1+"; "+msg2, st1)
                    
162      case (Failure(msg1, e1, st1, d1),  Failure(msg2, e2, st2, d2)) => Failure(msg1+"; "+msg2, e1+"; "+e2, st1, NoDetails())
                    
163      case (Error(msg1, st1),            Error(msg2, st2))           => Error(msg1+"; "+msg2, st1)
                    
164      case (Error(msg1, st1),            Failure(msg2, e2, st2, d2)) => Error(msg1+"; "+msg2, st1)
                    
                
browser.class.php https://bitbucket.org/chamilo/chamilo-app-internship-organizer-dev/ | PHP | 257 lines
                    
42            $this->display_header();
                    
43            $this->display_error_message(Translation :: get('NotAllowed'));
                    
44            $this->display_footer();
                    
                
installer.php git://github.com/pyrocms/pyrocms.git | PHP | 475 lines
                    
176		{
                    
177			$this->form_validation->set_message('test_db_connection', lang('db_failure') . mysql_error());
                    
178			return false;
                    
354				// Let's tell them why the install failed
                    
355				$this->session->set_flashdata('message', $this->lang->line('error_'.$install['code']) . $install['message']);
                    
356
                    
                
XtGrabKey.m git://anongit.freedesktop.org/git/xorg/test/xts.git/ | Objective C | 0 lines
                    
93	XSendEvent(XtDisplay(labelw_msg), XtWindow(labelw_msg), False, KeyReleaseMask, &event);
                    
94	tet_infoline("ERROR: Timed out waiting for input");
                    
95	tet_result(TET_UNRESOLVED);
                    
133	 if (event.xkey.window != window) {
                    
134		sprintf(ebuf, "ERROR: Key did not go to correct widget");
                    
135		tet_infoline(ebuf);
                    
144	 if (event.xkey.x >= 0) {
                    
145		sprintf(ebuf, "ERROR: KeyRelease was not left of window");
                    
146		tet_infoline(ebuf);
                    
195	XChangeKeyboardControl(XtDisplay(topLevel), KBAutoRepeatMode, &kbvalues);
                    
196	tet_infoline("PREP: Set up the XtToolkitError handler");
                    
197	app_ctext = XtWidgetToApplicationContext(topLevel);
                    
197	app_ctext = XtWidgetToApplicationContext(topLevel);
                    
198	XtAppSetErrorMsgHandler(app_ctext, xt_handler);
                    
199	tet_infoline("PREP: Set up widget tree of depth eight (8) return panedw widget");
                    
                
ripping.c http://sacd-ripper.googlecode.com/svn/trunk/ | C | 348 lines
                    
96
                    
97        LOG(lm_main, LOG_ERROR, ("no enough disc space on %s (%llu), needs: %llu", output_device, output_device_sectors, needed_sectors));
                    
98
                    
172            {
                    
173                LOG(lm_main, LOG_ERROR, ("authentication failed: %x", ret));
                    
174            }
                    
                
H5RS.c git://git.savannah.nongnu.org/freeon.git | C | 498 lines
                    
23
                    
24#include "H5Eprivate.h"		/* Error handling		  	*/
                    
25#include "H5FLprivate.h"	/* Free lists                           */
                    
107    if((ret_value=H5FL_MALLOC(H5RS_str_t))==NULL)
                    
108        HGOTO_ERROR(H5E_RS,H5E_NOSPACE,NULL,"memory allocation failed");
                    
109
                    
147    if((ret_value=H5FL_MALLOC(H5RS_str_t))==NULL)
                    
148        HGOTO_ERROR(H5E_RS,H5E_NOSPACE,NULL,"memory allocation failed");
                    
149
                    
189    if((ret_value=H5FL_MALLOC(H5RS_str_t))==NULL)
                    
190        HGOTO_ERROR(H5E_RS,H5E_NOSPACE,NULL,"memory allocation failed");
                    
191
                    
351    if(NULL == (new_str = (char *)H5FL_BLK_MALLOC(str_buf, path_len + 1)))
                    
352        HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed")
                    
353
                    
                
tr_query.cgi https://code.google.com/p/bugzilla4intranet/ | Perl | 420 lines
                    
30use Bugzilla::Util;
                    
31use Bugzilla::Error;
                    
32use Bugzilla::Field;
                    
50Bugzilla->login(LOGIN_REQUIRED);
                    
51Bugzilla->error_mode(ERROR_MODE_AJAX);
                    
52
                    
286    
                    
287    ThrowUserError('query_name_missing') unless $qname;
                    
288    
                    
417    $template->process("testopia/search/advanced.html.tmpl", $vars)
                    
418        || ThrowTemplateError($template->error()); 
                    
419}
                    
                
packet-usb-masstorage.c git://pkgs.fedoraproject.org/wireshark | C | 452 lines
                    
64    {0x01,	"Command Failed"},
                    
65    {0x02,	"Phase Error"},
                    
66    {0, NULL}
                    
                
stringparser_lists.ch.in git://pkgs.fedoraproject.org/unuran | Autoconf | 305 lines
                    
65     /*                                                                      */
                    
66     /* error:                                                               */
                    
67     /*   return NULL                                                        */
                    
138     /*   UNUR_SUCCESS ... on success                                        */
                    
139     /*   error code   ... on error                                          */
                    
140     /*                                                                      */
                    
140     /*                                                                      */
                    
141     /* error:                                                               */
                    
142     /*   return error code                                                  */
                    
210     /*                                                                      */
                    
211     /* error:                                                               */
                    
212     /*   return NULL                                                        */
                    
256     /*   UNUR_SUCCESS ... on success                                        */
                    
257     /*   error code   ... on error                                          */
                    
258     /*----------------------------------------------------------------------*/
                    
                
upnprouter.cpp git://pkgs.fedoraproject.org/konversation | C++ | 414 lines
                    
131        {
                    
132            if (j->error())
                    
133            {
                    
133            {
                    
134                error = i18n("Failed to download %1: %2",location.prettyUrl(),j->errorString());
                    
135                kDebug() << error << endl;
                    
144            {
                    
145                error = i18n("Error parsing router description.");
                    
146            }
                    
152        {
                    
153            error.clear();
                    
154            // downlaod XML description into a temporary file in /tmp
                    
352            {
                    
353                kDebug() << "UPnPRouter : Error: " << r->errorString() << endl;
                    
354                
                    
                
 

Source

Language