PageRenderTime 230ms queryTime 31ms sortTime 15ms getByIdsTime 18ms findMatchingLines 44ms

100+ results results for 'ERROR repo:muyelian/deathofrace' (230 ms)

Not the results you expected?
ob-css.el git://github.com/briancarper/dotfiles.git | Emacs Lisp | 50 lines
                    
40(defun org-babel-prep-session:css (session params)
                    
41  "Return an error if the :session header argument is set.
                    
42CSS does not support sessions."
                    
42CSS does not support sessions."
                    
43  (error "CSS sessions are nonsensical"))
                    
44
                    
                
BusinessEvent.java https://code.google.com/p/pony-sdk/ | Java | 57 lines
                    
28    public static enum Level {
                    
29        INFO, WARNING, ERROR;
                    
30    }
                    
                
twisted_250_monkeypatches.py git://github.com/scrapy/scrapy.git | Python | 50 lines
                    
26        @return: the result of the callback chain.
                    
27        @raise: any error raised during the callback chain.
                    
28        """
                    
46        add_missing_blockingCallFromThread()
                    
47except ImportError:
                    
48    pass
                    
                
pqueue.py git://github.com/scrapy/scrapy.git | Python | 56 lines
                    
29        q = self.queues[priority]
                    
30        q.push(obj) # this may fail (eg. serialization error)
                    
31        if priority < self.curprio or self.curprio is None:
                    
                
SetupAclCommand.php git://github.com/sonata-project/SonataAdminBundle.git | PHP | 60 lines
                    
45            } catch (\Exception $e) {
                    
46                $output->writeln('<error>Warning : The admin class cannot be initiated from the command line</error>');
                    
47                $output->writeln(sprintf('<error>%s</error>', $e->getMessage()));
                    
                
ForumSearchBox.ascx.cs https://hg01.codeplex.com/mojoportal | C# | 59 lines
                    
30            btnSearch.Text = ForumResources.Search;
                    
31            reqSearchText.ErrorMessage = ForumResources.SearchTermRequiredWarning;
                    
32        }
                    
                
TestHelper.php http://atomikframework.googlecode.com/svn/trunk/ | PHP | 64 lines
                    
15require_once 'PHPUnit/Framework.php';
                    
16require_once 'PHPUnit/Framework/IncompleteTestError.php';
                    
17require_once 'PHPUnit/Framework/TestCase.php';
                    
23/*
                    
24 * Set error reporting to the level to which Atomik Framework code must comply.
                    
25 */
                    
25 */
                    
26error_reporting( E_ALL | E_STRICT );
                    
27
                    
                
uiutil.h https://gnukeyring.svn.sourceforge.net/svnroot/gnukeyring | C++ Header | 40 lines
                    
35
                    
36void UI_ReportSysError2(UInt16 msgID, Err err, char const *where);
                    
37
                    
                
error.h https://gnukeyring.svn.sourceforge.net/svnroot/gnukeyring | C++ Header | 26 lines
                    
21
                    
22#define appErrMisc		(appErrorClass | 1)
                    
23#define appErrNotEnoughFeatures (appErrorClass | 2)
                    
23#define appErrNotEnoughFeatures (appErrorClass | 2)
                    
24#define appCancelled            (appErrorClass | 3)
                    
25#define appErrMissingHash	(appErrorClass | 4)
                    
                
uiutil.c https://gnukeyring.svn.sourceforge.net/svnroot/gnukeyring | C | 138 lines
                    
32
                    
33void UI_ReportSysError2(UInt16 msgID, Err err, char const *where) 
                    
34{
                    
                
mutate.html http://gwt-chronoscope.googlecode.com/svn/trunk/ | HTML | 61 lines
                    
27function onChronoscopeLoaded(chrono) {
                    
28  chronoscope.Chronoscope.setErrorReporting(true);
                    
29  chrono.createTimeseriesChartById("chart", __datasets, 480, 320, function(view) {
                    
                
ChartDemoLegend.java http://gwt-chronoscope.googlecode.com/svn/trunk/ | Java | 68 lines
                    
42  public void onModuleLoad() {
                    
43    Chronoscope.setErrorReporting(false);
                    
44    Chronoscope.setAnimationPreview(false);
                    
                
io.h https://bitbucket.org/rizon/ircd/ | C Header | 49 lines
                    
41extern void read_net(void);
                    
42extern void send_error(const char *, ...);
                    
43extern void send_data_blocking(int fd, unsigned char *data, int datalen);
                    
                
NormalSnmpContextTestFixture.cs https://hg01.codeplex.com/sharpsnmplib | C# | 41 lines
                    
36            context.GenerateResponse(list);
                    
37            Assert.AreEqual(ErrorCode.TooBig, context.Response.Pdu().ErrorStatus.ToErrorCode());
                    
38        }
                    
                
publisher_publish.py git://github.com/divio/django-cms.git | Python | 44 lines
                    
2from __future__ import absolute_import
                    
3from django.core.management.base import NoArgsCommand, CommandError
                    
4from cms.utils.compat.dj import force_unicode
                    
21            user = User.objects.filter(is_active=True, is_staff=True, is_superuser=True)[0]
                    
22        except IndexError:
                    
23            raise CommandError("No super user found, create one using `manage.py createsuperuser`.")
                    
                
CreateObjectCommandParserTest.as git://github.com/benbjohnson/melomel.git | ActionScript | 90 lines
                    
55
                    
56	[Test(expects="melomel.errors.MelomelError")]
                    
57	public function parseWithoutMessageThrowsError():void
                    
61
                    
62	[Test(expects="melomel.errors.MelomelError")]
                    
63	public function parseWithInvalidAction():void
                    
68
                    
69	[Test(expects="melomel.errors.MelomelError")]
                    
70	public function parseWithParametersThrowsError():void
                    
74
                    
75	[Test(expects="melomel.errors.MelomelError")]
                    
76	public function shouldThrowErrorIfInvalidClassAndThrowable():void
                    
                
Banner.java http://visualswing4eclipse.googlecode.com/svn/trunk/ | Java | 34 lines
                    
11	private static final long serialVersionUID = 1L;
                    
12	private boolean error;
                    
13	public boolean isError(){
                    
13	public boolean isError(){
                    
14		return error;
                    
15	}
                    
15	}
                    
16	public void setError(boolean v){
                    
17		error = v;
                    
17		error = v;
                    
18		if (error)
                    
19			setIcon(new ImageIcon(getClass().getResource("/icons/error.png")));
                    
29	public void actionPerformed(ActionEvent e) {
                    
30		if (!error)
                    
31			setIcon(new ImageIcon(getClass().getResource("/icons/progress.gif")));
                    
                
Connection.hx git://github.com/outbounder/org.abn.haxe.git | Haxe | 97 lines
                    
34	
                    
35	/** Callback connection level errors */
                    
36	public var __onError : String->Void;
                    
92	public function writeBytes( t : haxe.io.Bytes ) : haxe.io.Bytes {
                    
93		return throw new error.AbstractError();
                    
94	}
                    
                
bootstrap.php http://owasp-esapi-php.googlecode.com/svn/trunk/ | PHP | 31 lines
                    
23
                    
24error_reporting(E_ALL | ~E_STRICT);
                    
25
                    
                
NotImplementedFunction.cs https://npoi.svn.codeplex.com/svn | C# | 62 lines
                    
31     * The default behaviour Is to return a non-standard ErrorEval
                    
32     * "ErrorEval.FUNCTION_NOT_IMPLEMENTED". This error should alert 
                    
33     * the user that the formula contained a function that Is not
                    
                
OAuthVerifier.aspx.cs http://kythuatlaptrinh.googlecode.com/svn/trunk/ | C# | 49 lines
                    
34			{
                    
35				LiteralError.Text = "<p>In addition the following error occured:<br /><br />" + ex.Message + "</p>";
                    
36			}
                    
39		{
                    
40			LiteralError.Text = "<p>In addition the following error occured:<br /><br />Could not load the OAuth data from the database.</p>";
                    
41		}
                    
                
DialogError.java http://kythuatlaptrinh.googlecode.com/svn/trunk/ | Java | 52 lines
                    
16
                    
17package com.ktlp.facebook.errors;
                    
18
                    
19/**
                    
20 * Encapsulation of Dialog Error.
                    
21 * 
                    
23 */
                    
24public class DialogError extends Throwable {
                    
25    
                    
36
                    
37    public DialogError(String message, int errorCode, String failingUrl) {
                    
38        super(message);
                    
38        super(message);
                    
39        this.errorCode = errorCode;
                    
40        this.failingUrl = failingUrl;
                    
                
xsetpointer.c git://anongit.freedesktop.org/git/xorg/app/xsetpointer.git/ | C | 208 lines
                    
168                else {
                    
169                    fprintf(stderr, "error opening device\n");
                    
170                    exit(1);
                    
190                    {
                    
191                        fprintf(stderr, "error opening device\n");
                    
192                        exit(1);
                    
                
04-DeleteItem.html http://phreedom.googlecode.com/svn/trunk/ | HTML | 56 lines
                    
22<h1 align="center">Inventory - Deleting Inventory </h1>
                    
23<p>Note: An inventory item cannot be deleted if there are journal entries posted with the item. If the user tries to delete an item that has been posted to the journal, an error will be displayed and the item will not be deleted. Once all journal entries related to this item have been removed, the item can be deleted. If this is not possible, consider marking the SKU as inactive.</p>
                    
24<ol>
                    
                
gmetric_lighttpd.sh git://github.com/ganglia/gmetric.git | Shell | 39 lines
                    
23METRICS_TEMPFILE="/tmp/lighttpdmetrics"
                    
24ERRORS_TEMPFILE="/tmp/lighttpderrors"
                    
25
                    
34else
                    
35        echo "Can't connect to $STATUS_URL" > $ERRORS_TEMPFILE
                    
36fi
                    
                
VolunteerOttawaService.groovy http://bigbluebutton.googlecode.com/svn/trunk/ | Groovy | 65 lines
                    
55		      else{
                    
56		        log.error("GeocoderService.geocodeAirport FAILED")
                    
57		        log.error(url)
                    
57		        log.error(url)
                    
58		        log.error(connection.responseCode)
                    
59		        log.error(connection.responseMessage)
                    
                
tokenreader.h https://bitbucket.org/VoiDeD/steamre/ | C Header | 0 lines
                    
32	TOKENSTRINGTOOLONG = -4,
                    
33	TOKENERROR = -3,
                    
34	TOKENNONE = -2,
                    
63	bool Expecting(trtoken_t ttype, const char *pszToken);
                    
64	const char *Error(char *error, ...);
                    
65	trtoken_t PeekTokenType(char* = NULL, int maxlen = 0);
                    
66
                    
67	inline int GetErrorCount(void);
                    
68
                    
86	int m_nLine;
                    
87	int m_nErrorCount;
                    
88
                    
96//-----------------------------------------------------------------------------
                    
97// Purpose: Returns the total number of parsing errors since this file was opened.
                    
98//-----------------------------------------------------------------------------
                    
                
setup.py https://bitbucket.org/Stiivi/brewery/ | Python | 53 lines
                    
7    import json
                    
8except ImportError:
                    
9    # For Python < 2.6 or people using a newer version of simplejson
                    
                
LzoProtobufB64LineInputFormat.java git://github.com/kevinweil/elephant-bird.git | Java | 48 lines
                    
17 * A small fraction of bad records are tolerated. See {@link LzoRecordReader}
                    
18 * for more information on error handling.
                    
19 */
                    
                
GradeLib.php http://swf-activity-module.googlecode.com/svn/trunk/ | PHP | 158 lines
                    
47		$capabilities = $this->access->get_capabilities($obj['instance'],$obj['swfid']);
                    
48		// If there was a problem with authentication, return the error message
                    
49		if(!empty($capabilities->error))
                    
50		{
                    
51			return $capabilities->error;
                    
52		}
                    
90		$capabilities = $this->access->get_capabilities($obj['instance'],$obj['swfid']);
                    
91		// If there was a problem with authentication, return the error message
                    
92		if(!empty($capabilities->error))
                    
93		{
                    
94			return $capabilities->error;
                    
95		}
                    
127		//
                    
128		// If there was a problem with authentication, return the error message
                    
129		if(!empty($capabilities->error))
                    
                
run_vtreeviz.erl git://github.com/couchbase/geocouch.git | Erlang | 29 lines
                    
24        ok;
                    
25    {error, Reason} ->
                    
26        io:format("ERROR (~s): Couldn't open file (~s) for tree storage~n",
                    
                
ShellActor.scala https://code.google.com/p/apparat/ | Scala | 85 lines
                    
59						case "help" | "exit" | "quit" | "stop" => "No detail help available."
                    
60						case other => "Error: Unknown command \"" + other + "\""
                    
61					}
                    
71				} else {
                    
72					"Error: Unknown command \""+command+"\""
                    
73				}
                    
                
mysettingfile.vim http://lh-vim.googlecode.com/svn/ | Vim Script | 81 lines
                    
17" Use the :SetAu user command to shorten the list below.
                    
18" If you get an error message "Command already exists", you already have
                    
19" defined the ":SetAu" command somewhere.  You should rename it.
                    
                
swank-snapshot.lisp git://github.com/briancarper/dotfiles.git | Lisp | 47 lines
                    
30  (setq *connections* (delete old-connection *connections*))
                    
31  (format *error-output* "args: ~s~%" (command-line-args))
                    
32  (let* ((fd (read-command-line-arg "--swank-fd"))
                    
33	 (style (read-command-line-arg "--swank-style")))
                    
34    (format *error-output* "fd=~s style=~s~%" fd style)
                    
35    (let ((connection (create-connection (make-fd-stream fd :default) style)))
                    
                
org-mhe.el git://github.com/briancarper/dotfiles.git | Emacs Lisp | 231 lines
                    
52(declare-function mh-get-header-field "mh-utils" (field))
                    
53(declare-function mh-get-msg-num "mh-utils" (error-if-no-message))
                    
54(declare-function mh-header-display "mh-show" ())
                    
111    (if (not (string-match "\\`\\([^#]+\\)\\(#\\(.*\\)\\)?" path))
                    
112	(error "Error in MH-E link"))
                    
113    (setq folder (match-string 1 path)
                    
223      (kill-this-buffer)
                    
224      (error "Message not found"))))
                    
225
                    
                
ob-org.el git://github.com/briancarper/dotfiles.git | Emacs Lisp | 63 lines
                    
54(defun org-babel-prep-session:org (session params)
                    
55  "Return an error because org does not support sessions."
                    
56  (error "Org does not support sessions"))
                    
                
get git://github.com/sm/sm.git | Perl | 64 lines
                    
10if (! $path) {
                    
11  fail "ERROR: A json path to extract must be given as the first argument\nexample: 'system/hostname'."
                    
12}
                    
15if ( ! $json_file ) {
                    
16  fail "ERROR: A json file must be given as the second argument."
                    
17} elsif( ! -e $json_file ) {
                    
17} elsif( ! -e $json_file ) {
                    
18  fail "ERROR: The json file $json_file does not exist!"
                    
19}
                    
44    } else {
                    
45      fail "ERROR: Namespace ${namespace} missing under path '".join("/", $path)."'";
                    
46    }
                    
59} else {
                    
60  fail "ERROR: Key '$key' missing under namespace '$namespace' missing for path '".join("/",@path)."'.";
                    
61}
                    
                
functions git://github.com/sm/sm.git | Shell | 77 lines
                    
61        (*)
                    
62          __sm.log.error "Man returned unknown status $status"
                    
63      esac
                    
                
functions git://github.com/sm/sm.git | Shell | 56 lines
                    
15{
                    
16  typeset -g fetch_error_handler
                    
17  typeset _uri _target branch save_fetch_error_handler
                    
24
                    
25  save_fetch_error_handler="${fetch_error_handler}"
                    
26  fetch_error_handler=true
                    
52  done
                    
53  fetch_error_handler="${save_fetch_error_handler}"
                    
54  fetch_error all_uris_failed
                    
                
functions git://github.com/sm/sm.git | Shell | 92 lines
                    
2
                    
3fetch_error_initialize()
                    
4{
                    
6  fetch_params=( "$@" )
                    
7  unset fetch_error_handler __vcs_failed
                    
8}
                    
9
                    
10fetch_error()
                    
11{
                    
22
                    
23  : "${fetch_error_handler:=log}"
                    
24  case "${fetch_error_handler}" in
                    
24  case "${fetch_error_handler}" in
                    
25    debug|error|fail|true|log)
                    
26      fetch_error_default_handler "${_message}" "${fetch_params[@]}"
                    
                
sm git://github.com/sm/sm.git | zsh | 42 lines
                    
21
                    
22set -o errexit # exit on errors in early stage before logging is initialized
                    
23set -o nounset # do not allow unset variables processing
                    
                
Brewery.R git://github.com/jeffreyhorner/rRack.git | R | 0 lines
                    
11		opt <<- try(list2env(opts),silent=TRUE)
                    
12		if (inherits(opt,'try-error'))
                    
13		    stop('Optional arguments must be named')
                    
                
rook.c git://github.com/jeffreyhorner/rRack.git | C | 0 lines
                    
14    } else
                    
15	error_return("haystack must be a raw vector");
                    
16
                    
23    } else
                    
24	error_return("needle must be a character or raw vector");
                    
25
                    
26    if (!isLogical(allMatches))
                    
27	error_return("all must be a logical vector")
                    
28    all = LOGICAL(allMatches)[0];
                    
                
login.css https://svn.apache.org/repos/asf/incubator/clerezza/ | CSS | 0 lines
                    
87
                    
88.tx-error {
                    
89	color: #cc3333;
                    
                
README.md git://github.com/leafo/lessphp.git | Markdown | 96 lines
                    
51} catch (exception $e) {
                    
52  echo "fatal error: " . $e->getMessage();
                    
53}
                    
87
                    
88Errors from watch mode are written to standard out.
                    
89
                    
                
BeanValueProvider.java https://code.google.com/p/pony-sdk/ | Java | 55 lines
                    
49        } catch (final Exception e) {
                    
50            log.error("Cannot retrieve value from the pojo property name : " + pojoPropertyKey, e);
                    
51        }
                    
                
PKeyUpFilterHandler.java https://code.google.com/p/pony-sdk/ | Java | 57 lines
                    
51        } catch (final JSONException e) {
                    
52            log.error("Cannot set Key Filter", e);
                    
53        }
                    
                
TwinFieldValidator.java https://code.google.com/p/pony-sdk/ | Java | 52 lines
                    
31
                    
32    private final String errorMessage;
                    
33
                    
34    public TwinFieldValidator(String errorMessage, FormField twinFormField) {
                    
35        this.errorMessage = errorMessage;
                    
36        this.twinFormField = twinFormField;
                    
45
                    
46        if (twinFormFieldText == null || formFieldText == null) { return ValidationResult.newFailedValidationResult(errorMessage); }
                    
47
                    
47
                    
48        if (!twinFormFieldText.equals(formFieldText)) { return ValidationResult.newFailedValidationResult(errorMessage); }
                    
49        return ValidationResult.newOKValidationResult();
                    
                
FormFieldRenderer.java https://code.google.com/p/pony-sdk/ | Java | 54 lines
                    
36
                    
37    public void addErrorMessage(String errorMessage);
                    
38
                    
38
                    
39    public void clearErrorMessage();
                    
40
                    
                
ServiceFailedEvent.java https://code.google.com/p/pony-sdk/ | Java | 59 lines
                    
36        super(sourceComponent);
                    
37        setLevel(Level.ERROR);
                    
38        this.throwable = throwable;
                    
                
ExportCommand.java https://code.google.com/p/pony-sdk/ | Java | 84 lines
                    
77        event.setLevel(Level.INFO);
                    
78        log.error("Failure occured when exporting", caught);
                    
79        event.setBusinessMessage(caught.getMessage() + ", see server logs for more details.");
                    
                
procamtracker-oceanlook.cmd http://javacv.googlecode.com/svn/trunk/ | Batch | 33 lines
                    
16%JAVA% -server -version
                    
17if errorlevel 1 goto DEFAULT
                    
18
                    
20start %JAVA%w -server %OPTIONS% -jar "%~dp0\procamtracker.jar" --laf javax.swing.plaf.metal.MetalLookAndFeel %*
                    
21if errorlevel 1 goto PAUSE
                    
22goto END
                    
26%JAVA%w %OPTIONS% -jar "%~dp0\procamtracker.jar" --laf javax.swing.plaf.metal.MetalLookAndFeel %*
                    
27if errorlevel 1 goto PAUSE
                    
28goto END
                    
                
procamcalib-oceanlook.cmd http://javacv.googlecode.com/svn/trunk/ | Batch | 33 lines
                    
16%JAVA% -server -version
                    
17if errorlevel 1 goto DEFAULT
                    
18
                    
20start %JAVA%w -server %OPTIONS% -jar "%~dp0\procamcalib.jar" --laf javax.swing.plaf.metal.MetalLookAndFeel %*
                    
21if errorlevel 1 goto PAUSE
                    
22goto END
                    
26%JAVA%w %OPTIONS% -jar "%~dp0\procamcalib.jar" --laf javax.swing.plaf.metal.MetalLookAndFeel %*
                    
27if errorlevel 1 goto PAUSE
                    
28goto END
                    
                
BaseTestListener.java http://cloudcover.googlecode.com/svn/trunk/ | Java | 40 lines
                    
17
                    
18import junit.framework.AssertionFailedError;
                    
19import junit.framework.Test;
                    
28
                    
29  public void addError(Test test, Throwable throwable) {
                    
30  }
                    
31
                    
32  public void addFailure(Test test, AssertionFailedError assertionFailedError) {
                    
33  }
                    
                
RecycleAppPoolsCmd.cs https://hg01.codeplex.com/wssdeploy | C# | 40 lines
                    
33            {
                    
34                WriteOutput(string.Format(WssDeployResources.RecycleAppPoolsCmd_RecycleError, ex.Message));
                    
35                SetFailed();
                    
                
KillRemoteDebuggerCmd.cs https://hg01.codeplex.com/wssdeploy | C# | 39 lines
                    
32            {
                    
33                WriteOutput(string.Format(WssDeployResources.KillRemoteDebuggerCmd_KillDebuggerError, ex.Message));
                    
34                SetFailed();
                    
                
__init__.py git://github.com/scrapy/scrapy.git | Python | 106 lines
                    
8from scrapy.utils.conf import arglist_to_dict
                    
9from scrapy.exceptions import UsageError
                    
10
                    
26        if hasattr(self, '_crawler'):
                    
27            raise RuntimeError("crawler already set")
                    
28        self._crawler = crawler
                    
80                                  priority='cmdline')
                    
81        except ValueError:
                    
82            raise UsageError("Invalid -s value, use -s NAME=VALUE", print_help=False)
                    
105        """
                    
106        raise NotImplementedError
                    
107
                    
                
robust.py git://github.com/scrapy/scrapy.git | Python | 55 lines
                    
1"""Module implementing error-catching version of send (sendRobust)"""
                    
2from scrapy.xlib.pydispatch.dispatcher import Any, Anonymous, liveReceivers, getAllReceivers
                    
6def sendRobust(signal=Any, sender=Anonymous, *arguments, **named):
                    
7    """Send signal from sender to all connected receivers catching errors
                    
8
                    
23    arguments -- positional arguments which will be passed to
                    
24        *all* receivers. Note that this may raise TypeErrors
                    
25        if the receivers do not allow the particular arguments.
                    
34
                    
35    if any receiver raises an error (specifically any subclass of Exception),
                    
36    the error instance is returned as the result for that receiver.
                    
                
robustapply.py git://github.com/scrapy/scrapy.git | Python | 59 lines
                    
29    elif not hasattr(receiver, 'func_code'):
                    
30        raise ValueError(
                    
31            'unknown receiver type %s %s' % (receiver, type(receiver)))
                    
43        if name in named:
                    
44            raise TypeError(
                    
45                """Argument %r specified both positionally and as a keyword for calling %r""" % (
                    
                
test_selector_lxml.py git://github.com/scrapy/scrapy.git | Python | 37 lines
                    
9        XPathSelector
                    
10except ImportError:
                    
11    has_lxml = False
                    
                
test_utils_reqser.py git://github.com/scrapy/scrapy.git | Python | 76 lines
                    
18            callback='parse_item',
                    
19            errback='handle_error',
                    
20            method="POST",
                    
56        r = Request("http://www.example.com", callback=self.spider.parse_item, \
                    
57            errback=self.spider.handle_error)
                    
58        self._assert_serializes_ok(r, spider=self.spider)
                    
61        r = Request("http://www.example.com", callback=lambda x: x)
                    
62        self.assertRaises(ValueError, request_to_dict, r)
                    
63        self.assertRaises(ValueError, request_to_dict, r, spider=self.spider)
                    
66        r = Request("http://www.example.com", callback=self.spider.parse_item)
                    
67        self.assertRaises(ValueError, request_to_dict, r)
                    
68
                    
73        pass
                    
74    def handle_error(self, failure):
                    
75        pass
                    
                
test_utils_jsonrpc.py git://github.com/scrapy/scrapy.git | Python | 124 lines
                    
4from scrapy.utils.jsonrpc import jsonrpc_client_call, jsonrpc_server_call, \
                    
5    JsonRpcError, jsonrpc_errors
                    
6from scrapy.utils.serialize import ScrapyJSONDecoder
                    
15        if error:
                    
16            response.update(error=error)
                    
17        self.response = json.dumps(response)
                    
77        assert r['id'] is None
                    
78        self.assertEqual(r['error']['code'], jsonrpc_errors.PARSE_ERROR)
                    
79        assert 'Traceback' in r['error']['data']
                    
90        assert r['id'] == 1
                    
91        self.assertEqual(r['error']['code'], jsonrpc_errors.METHOD_NOT_FOUND)
                    
92
                    
96        assert r['id'] == 1
                    
97        self.assertEqual(r['error']['code'], jsonrpc_errors.INTERNAL_ERROR)
                    
98        assert 'testing-errors' in r['error']['message']
                    
                
jsonrpc.py git://github.com/scrapy/scrapy.git | Python | 98 lines
                    
22    def __init__(self, code, message, data=None):
                    
23        super(JsonRpcError, self).__init__()
                    
24        self.code = code
                    
56    except Exception, e:
                    
57        return jsonrpc_error(None, jsonrpc_errors.PARSE_ERROR, 'Parse error', \
                    
58            traceback.format_exc())
                    
62    except KeyError:
                    
63        return jsonrpc_error(None, jsonrpc_errors.INVALID_REQUEST, 'Invalid Request')
                    
64
                    
67    except AttributeError:
                    
68        return jsonrpc_error(id, jsonrpc_errors.METHOD_NOT_FOUND, 'Method not found')
                    
69
                    
75    except Exception, e:
                    
76        return jsonrpc_error(id, jsonrpc_errors.INTERNAL_ERROR, str(e), \
                    
77            traceback.format_exc())
                    
                
spider.py git://github.com/scrapy/scrapy.git | Python | 68 lines
                    
8    from scrapy.utils.py36 import collect_asyncgen
                    
9except SyntaxError:
                    
10    collect_asyncgen = None
                    
56    if len(snames) > 1 and log_multiple:
                    
57        logger.error('More than one spider can handle: %(request)s - %(snames)s',
                    
58                     {'request': request, 'snames': ', '.join(snames)})
                    
60    if len(snames) == 0 and log_none:
                    
61        logger.error('Unable to find spider that handles: %(request)s',
                    
62                     {'request': request})
                    
                
reactor.py git://github.com/scrapy/scrapy.git | Python | 83 lines
                    
3
                    
4from twisted.internet import asyncioreactor, error
                    
5
                    
12    if len(portrange) > 2:
                    
13        raise ValueError("invalid portrange: %s" % portrange)
                    
14    if not portrange:
                    
22            return reactor.listenTCP(x, factory, interface=host)
                    
23        except error.CannotListenError:
                    
24            if x == portrange[1]:
                    
57    if reactor_class is asyncioreactor.AsyncioSelectorReactor:
                    
58        with suppress(error.ReactorAlreadyInstalledError):
                    
59            asyncioreactor.install(asyncio.get_event_loop())
                    
63        installer = load_object(".".join(installer_path))
                    
64        with suppress(error.ReactorAlreadyInstalledError):
                    
65            installer()
                    
                
log.py git://github.com/scrapy/scrapy.git | Python | 61 lines
                    
24WARNING = logging.WARNING
                    
25ERROR = logging.ERROR
                    
26CRITICAL = logging.CRITICAL
                    
32    logging.WARNING: "WARNING",
                    
33    logging.ERROR: "ERROR",
                    
34    logging.CRITICAL: "CRITICAL",
                    
53    warnings.warn('log.err has been deprecated, create a python logger and '
                    
54                  'use its error method instead',
                    
55                  ScrapyDeprecationWarning, stacklevel=2)
                    
56
                    
57    level = kw.pop('level', logging.ERROR)
                    
58    failure = kw.pop('failure', _stuff) or Failure()
                    
                
test_sqlite.py git://github.com/scrapy/scrapy.git | Python | 174 lines
                    
28
                    
29    def test_keyerror(self):
                    
30        d = self.dict_class()
                    
30        d = self.dict_class()
                    
31        self.assertRaises(KeyError, d.__getitem__, 'test')
                    
32
                    
                
config.py git://github.com/scrapy/scrapy.git | Python | 57 lines
                    
2from cStringIO import StringIO
                    
3from ConfigParser import SafeConfigParser, NoSectionError, NoOptionError
                    
4
                    
40            return method(self.SECTION, option)
                    
41        except (NoSectionError, NoOptionError):
                    
42            if default is not None:
                    
                
Protocol.java http://hypergraphdb.googlecode.com/svn/trunk/ | Java | 0 lines
                    
48		else
                    
49			throw new RuntimeException("ERROR: Signature does not match");
                    
50
                    
                
HGUserAbortException.java http://hypergraphdb.googlecode.com/svn/trunk/ | Java | 27 lines
                    
17 * would be for the application to implement its own transaction retry loop, which is
                    
18 * longer and error prone.   
                    
19 * </p>
                    
                
BDBLock.java http://hypergraphdb.googlecode.com/svn/trunk/ | Java | 0 lines
                    
22        envConfig.setCacheCount(50);
                    
23        envConfig.setErrorPrefix("BERKELEYDB");
                    
24        envConfig.setErrorStream(System.out);        
                    
                
OpenFunction.java http://hypergraphdb.googlecode.com/svn/trunk/ | Java | 36 lines
                    
29    throw EvaluationException.createException(FunctionHelper.makeFunctionName(HyperSailFunctions.NAMESPACE_PREFIX, FUNCTION_NAME),
                    
30        EvaluationException.EvaluationErrorType.UNSUPPORTED_PARAMETERS);
                    
31  }
                    
                
TermIterator.java http://hypergraphdb.googlecode.com/svn/trunk/ | Java | 98 lines
                    
31	private Term next;
                    
32	private String parserError;
                    
33	
                    
39		} catch (InvalidTermException e) {
                    
40			parserError = e.getMessage();
                    
41			hasNext = false;
                    
71			return hasNext;
                    
72		if (parserError != null)
                    
73			return hasNext; // should always be false if parserError is not null
                    
78		} catch (InvalidTermException e) {
                    
79			parserError = e.getMessage();
                    
80			next = null;
                    
93	 */
                    
94	public String getParserError() {
                    
95		return parserError;
                    
                
Test.java http://hypergraphdb.googlecode.com/svn/trunk/ | Java | 75 lines
                    
33        } catch(Exception e) {
                    
34            System.err.println("ERROR: " + e);
                    
35            e.printStackTrace(System.out);
                    
                
EngineStatus.java http://hypergraphdb.googlecode.com/svn/trunk/ | Java | 86 lines
                    
28	private boolean hasAlternatives = false;
                    
29	private String error = null;
                    
30	
                    
33	/**
                    
34	 * @return Returns the error.
                    
35	 */
                    
35	 */
                    
36	public String getError() {
                    
37		return error;
                    
39	/**
                    
40	 * @param error The error to set.
                    
41	 */
                    
41	 */
                    
42	public void setError(String error) {
                    
43		this.error = error;
                    
                
OWL002Suite.java http://hypergraphdb.googlecode.com/svn/trunk/ | Java | 32 lines
                    
10/**
                    
11 * OWL002Suite contains testcases with errors after 
                    
12 * 
                    
14 * 
                    
15 * For current status on errors see latest testlog in /testlog/ directory. 
                    
16 * 
                    
                
HGVAction.java http://hypergraphdb.googlecode.com/svn/trunk/ | Java | 77 lines
                    
43            ex.printStackTrace();
                    
44            UIManager.getLookAndFeel().provideErrorFeedback(viewer);
                    
45        }
                    
                
run.cmd http://hypergraphdb.googlecode.com/svn/trunk/ | Batch | 40 lines
                    
11
                    
12if errorlevel 1 (
                    
13   REM echo 32-Bit 
                    
                
dataaccess.php http://mechedit.googlecode.com/svn/trunk/ | PHP | 102 lines
                    
16function getUsers(){
                    
17    error_reporting(0);
                    
18    $users = file_get_contents(DATA_DIR.'users.dat');
                    
27    }
                    
28    error_reporting(1);
                    
29    return $userData;
                    
38function getUserPages(){
                    
39    error_reporting(0);
                    
40    $users = file_get_contents(DATA_DIR.'userpages.dat');
                    
48    }
                    
49    error_reporting(1);
                    
50    return $userPageData;
                    
61
                    
62    error_reporting(0);
                    
63    $sites = file_get_contents(DATA_DIR.'sites.dat');
                    
                
base_standard_edit_field.html.twig git://github.com/sonata-project/SonataAdminBundle.git | Twig Template | 35 lines
                    
11
                    
12<div class="form-group{% if field_element.var.errors|length > 0%} has-error{%endif%}" id="sonata-ba-field-container-{{ field_element.vars.id }}">
                    
13    {% block label %}
                    
20
                    
21    <div class="col-sm-10 col-md-5 sonata-ba-field sonata-ba-field-{{ edit }}-{{ inline }} {% if field_element.vars.errors|length > 0 %}sonata-ba-field-error{% endif %}">
                    
22
                    
29        <div class="sonata-ba-field-error-messages">
                    
30            {% block errors %}{{ form_errors(field_element) }}{% endblock %}
                    
31        </div>
                    
                
conditional_validation.rst git://github.com/sonata-project/SonataAdminBundle.git | ReStructuredText | 47 lines
                    
11    // add this to your existing use statements
                    
12    use Sonata\CoreBundle\Validator\ErrorElement;
                    
13
                    
16        // add this method
                    
17        public function validate(ErrorElement $errorElement, $object)
                    
18        {
                    
18        {
                    
19            $errorElement
                    
20                ->with('name')
                    
32
                    
33    public function validate(ErrorElement $errorElement, $object)
                    
34    {
                    
                
installation.rst git://github.com/sonata-project/SonataAdminBundle.git | ReStructuredText | 166 lines
                    
144
                    
145At this point, your Symfony installation should be fully functional, with no errors
                    
146showing up from SonataAdminBundle or its dependencies. SonataAdminBundle is installed
                    
149
                    
150If, at this point or during the installation, you come across any errors, don't panic:
                    
151
                    
151
                    
152    - Read the error message carefully. Try to find out exactly which bundle is causing the error. Is it SonataAdminBundle or one of the dependencies?
                    
153    - Make sure you followed all the instructions correctly, for both SonataAdminBundle and its dependencies.
                    
                
colors.css git://github.com/sonata-project/SonataAdminBundle.git | CSS | 55 lines
                    
26
                    
27div.sonata-ba-form-error {
                    
28    width: 495px;
                    
35
                    
36div.sonata-ba-form-error ul {
                    
37    margin: 0;
                    
39
                    
40div.sonata-ba-field-error input{
                    
41    border: 1px solid #f79992;
                    
43
                    
44div.sonata-ba-field-error textarea{
                    
45    border: 1px solid #f79992;
                    
47
                    
48div.sonata-ba-field-error select{
                    
49    border: 1px solid #f79992;
                    
                
Admin.php git://github.com/sonata-project/SonataAdminBundle.git | PHP | 28 lines
                    
13
                    
14@trigger_error(
                    
15    'The '.__NAMESPACE__.'\Admin class is deprecated since version 3.1 and will be removed in 4.0.'
                    
                
InlineValidator.php git://github.com/sonata-project/SonataAdminBundle.git | PHP | 54 lines
                    
16use Symfony\Bundle\FrameworkBundle\Validator\ConstraintValidatorFactory;
                    
17use Sonata\AdminBundle\Validator\ErrorElement;
                    
18
                    
30    {
                    
31        $errorElement = new ErrorElement(
                    
32            $value,
                    
49
                    
50        call_user_func($function, $errorElement, $value);
                    
51
                    
                
upgradefrom2-2-1to2-2-1-5.sql https://hg01.codeplex.com/mojoportal | SQL | 76 lines
                    
31	[RunTime] [datetime] NOT NULL CONSTRAINT [DF_mp_SchemaScriptHistory_RunCompletedTime]  DEFAULT (getutcdate()),
                    
32	[ErrorOccurred] [bit] NOT NULL CONSTRAINT [DF_mp_SchemaScriptHistory_ErrorOccurred]  DEFAULT ((0)),
                    
33	[ErrorMessage] [ntext] NULL,
                    
                
Global.asax.cs https://hg01.codeplex.com/mojoportal | C# | 48 lines
                    
24
                    
25        void Application_Error(object sender, EventArgs e)
                    
26        {
                    
26        {
                    
27            // Code that runs when an unhandled error occurs
                    
28
                    
                
PayPalGatewayError.aspx.designer.cs https://hg01.codeplex.com/mojoportal | C# | 53 lines
                    
13    
                    
14    public partial class PayPalGatewayErrorPage {
                    
15        
                    
34        /// <summary>
                    
35        /// lblError control.
                    
36        /// </summary>
                    
40        /// </remarks>
                    
41        protected global::System.Web.UI.WebControls.Label lblError;
                    
42        
                    
                
PayPalGatewayError.aspx.cs https://hg01.codeplex.com/mojoportal | C# | 62 lines
                    
18{
                    
19    public partial class PayPalGatewayErrorPage : NonCmsBasePage
                    
20    {
                    
38        {
                    
39            lblError.Text = WebStoreResources.PayPalReturnErrorMessage;
                    
40        }
                    
43        {
                    
44            AddClassToBody("webstorepaypalgatewayerror");
                    
45
                    
                
PayPalGatewayError.aspx https://hg01.codeplex.com/mojoportal | ASP.NET | 16 lines
                    
1<%@ Page Language="C#" AutoEventWireup="false" MasterPageFile="~/App_MasterPages/layout.Master" CodeBehind="PayPalGatewayError.aspx.cs" Inherits="WebStore.UI.PayPalGatewayErrorPage" %>
                    
2
                    
8
                    
9<asp:Label ID="lblError" runat="server" CssClass="txterror" />
                    
10</div>
                    
                
upgradefrom2-2-1to2-2-1-5.sql https://hg01.codeplex.com/mojoportal | SQL | 57 lines
                    
16 `RunTime` datetime NOT NULL,
                    
17 `ErrorOccurred` tinyint(1) unsigned NOT NULL,
                    
18 `ErrorMessage` text NULL,
                    
                
XmlHelper.cs https://hg01.codeplex.com/mojoportal | C# | 66 lines
                    
27        /// transforms xml from a given url using xsl from a given url
                    
28        /// returns an empty string and logs an error if an error occurs
                    
29        /// </summary>
                    
                
FlickrSlideShowModule.ascx https://hg01.codeplex.com/mojoportal | ASP.NET | 19 lines
                    
11<portal:InnerBodyPanel ID="pnlNotConfig" runat="server" CssClass="modulecontent" Visible="false">
                    
12<asp:Label ID="lblNotConfigured" Runat="server" EnableViewState="false" CssClass="txterror"></asp:Label>
                    
13</portal:InnerBodyPanel>
                    
                
EditPost.aspx https://hg01.codeplex.com/mojoportal | ASP.NET | 87 lines
                    
53                        <div class="settingrow">
                    
54                            <asp:Label ID="lblError" runat="server" ForeColor="red"></asp:Label>
                    
55                            <asp:RequiredFieldValidator ID="reqSubject" runat="server" ControlToValidate="txtSubject"
                    
                
NotImplementedGCheckoutNotificationHandlerProvider.cs https://hg01.codeplex.com/mojoportal | C# | 89 lines
                    
20    /// This provider does nothing. It exists only because there must always be at least one 
                    
21    /// provider in the collection or an error occurs.
                    
22    /// </summary>
                    
                
stylemojo.css https://hg01.codeplex.com/mojoportal | CSS | 199 lines
                    
18.verywidetextbox { width:35em; }
                    
19.txterror { color:red; font-weight:700; }
                    
20.txtcopyright { color:#444; font-size:80%; font-weight:400; }
                    
                
00002tables.config https://hg01.codeplex.com/mojoportal | ASP.NET | 90 lines
                    
61 UTC TIMESTAMP NOT NULL,
                    
62 ErrorOccurred SMALLINT NOT NULL,
                    
63 ErrorMessage BLOB SUB_TYPE 1 ,
                    
                
RoleUserSelectDialog.aspx https://hg01.codeplex.com/mojoportal | ASP.NET | 73 lines
                    
66<asp:Panel ID="pnlNotAllowed" runat="server" Visible="false">
                    
67<mp:SiteLabel ID="lblNotAllowed" runat="server" CssClass="txterror" UseLabelTag="false" ConfigKey="NotInUserLookupRolesWarning" />
                    
68</asp:Panel>
                    
                
gears_utils.js https://hg01.codeplex.com/mojoportal | JavaScript | 182 lines
                    
3  if (location.protocol.indexOf('http') != 0) {
                    
4    setError(spanStatus,'This sample must be hosted on an HTTP server');
                    
5    return false;
                    
30
                    
31function setError(spanStatus, errorMessage) {
                    
32  clearStatus(spanStatus);
                    
32  clearStatus(spanStatus);
                    
33  addStatus(spanStatus, errorMessage, 'error');
                    
34}
                    
78{
                    
79  var error = false, errorMessage;
                    
80  var i, cols, sb, row;
                    
86    sb.push('<th>Error</th><thead><tbody><tr><td>',
                    
87            errorMessage || 'Unknown error',
                    
88            '</td></tr>');
                    
                
calendar-pt.js https://hg01.codeplex.com/mojoportal | JavaScript | 127 lines
                    
3// Modified by Joe Audette 8/21/2005 replaced special chars with numeric entity references
                    
4// this fixed errors I was getting during testing of localization
                    
5
                    
                
RecaptchaCaptchaProvider.cs https://hg01.codeplex.com/mojoportal | C# | 40 lines
                    
34            // don't read anything from config
                    
35            // here as this would raise an error under Medium Trust
                    
36
                    
                
LetterView.aspx https://hg01.codeplex.com/mojoportal | ASP.NET | 16 lines
                    
7<div class="modulecontent">
                    
8<asp:Label ID="lblMessage" runat="server" CssClass="txterror" />
                    
9<asp:Literal ID="litLoginMessage" runat="server" />
                    
                
stylecolors.css https://hg01.codeplex.com/mojoportal | CSS | 54 lines
                    
36.txtcopyright {color: #444; }
                    
37.txterror {color: red }
                    
38.TextLabel { background-color:#ECECEC; }
                    
                
PayPalReturnHandler.ashx.cs https://hg01.codeplex.com/mojoportal | C# | 122 lines
                    
67            {
                    
68                log.Error(ex);
                    
69            }
                    
                
PageNotFound.aspx https://hg01.codeplex.com/mojoportal | ASP.NET | 34 lines
                    
11        <div class="pnfmsgdiv">
                    
12            <mp:SiteLabel ID="lbl404Message" runat="server" ConfigKey="PageNotFoundMessage" UseLabelTag="false" CssClass="txterror pnfmsg" />
                    
13            <mp:SiteLabel ID="SiteLabel1" runat="server" ConfigKey="PageNotFoundPleaseTry" UseLabelTag="false" CssClass="txterror pnfmsg" />
                    
13            <mp:SiteLabel ID="SiteLabel1" runat="server" ConfigKey="PageNotFoundPleaseTry" UseLabelTag="false" CssClass="txterror pnfmsg" />
                    
14            <asp:HyperLink ID="lnkSiteMap" runat="server" CssClass="txterror pnflink" />
                    
15            
                    
                
OSCondition.cs git://github.com/synhershko/NAppUpdate.git | C# | 97 lines
                    
86
                    
87		[DllImport("kernel32", CharSet = CharSet.Auto, SetLastError = true)]
                    
88		static extern IntPtr GetProcAddress(IntPtr hModule,
                    
90
                    
91		[DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)]
                    
92		[return: MarshalAs(UnmanagedType.Bool)]
                    
                
blocks.coffee git://github.com/disnet/contracts.coffee.git | CoffeeScript | 54 lines
                    
10  path = new Pathname location
                    
11  throw new Error("Location does not exist") unless path.exists()
                    
12
                    
                
Register.cshtml https://hg01.codeplex.com/rockincmslms | Razor | 62 lines
                    
18@using (Html.BeginForm()) {
                    
19    @Html.ValidationSummary(true, "Account creation was unsuccessful. Please correct the errors and try again.")
                    
20    <div>
                    
                
Global.asax.cs https://hg01.codeplex.com/rockincmslms | C# | 40 lines
                    
16        {
                    
17            filters.Add(new HandleErrorAttribute());
                    
18        }
                    
                
__init__.py git://github.com/flashingpumpkin/django-socialregistration.git | Python | 34 lines
                    
27        if not 'request' in context:
                    
28            raise AttributeError(_("Please add 'django.core.context_processors.request' "
                    
29                "'to your settings.TEMPLATE_CONTEXT_PROCESSORS'"))
                    
                
views.py git://github.com/flashingpumpkin/django-socialregistration.git | Python | 56 lines
                    
41                msg = _("Unfortunately we couldn't validate your identity")
                    
42            return self.error_to_response(request, {'error': msg})
                    
43        
                    
                
forms.py git://github.com/flashingpumpkin/django-socialregistration.git | Python | 30 lines
                    
20        else:
                    
21            raise forms.ValidationError(_('This username is already in use.'))
                    
22
                    
                
aur.lisp git://github.com/skypher/paktahn.git | Lisp | 178 lines
                    
46    (json:with-decoder-simple-clos-semantics
                    
47      (let* (network-error-p
                    
48             (json
                    
48             (json
                    
49               (handler-bind ((usocket:socket-error
                    
50                               (lambda (e)
                    
51                                 (setf network-error-p t)
                    
52                                 (error "Socket error connecting to AUR: ~A" e)))
                    
53                              (usocket:ns-condition
                    
55                                 (setf network-error-p t)
                    
56                                 (error "Name resolution error connecting to AUR: ~A" e))))
                    
57                 (retrying
                    
63                     (retry ()
                    
64                       :test (lambda (c) (declare (ignore c)) network-error-p)
                    
65                       :report (lambda (s) (format s "Retry network connection."))
                    
                
TDTCPSocket.hx git://github.com/skial/haXe-titanium-desktop.git | Haxe | 86 lines
                    
23	 * Connect the Socket object to the host specified during creation. The connection will be made 
                    
24	 * asynchronously. Use onError to detect failures. 
                    
25	 * 
                    
37	/**
                    
38	 * Set the callback that will be fired when the Socket encounters an error. 
                    
39	 * 
                    
39	 * 
                    
40	 * @param	onerror						-		Function to be called when an error happens.
                    
41	 * @return	String
                    
42	 */
                    
43	public function onError(onerror:Dynamic):String;
                    
44	
                    
                
TDFile.hx git://github.com/skial/haXe-titanium-desktop.git | Haxe | 270 lines
                    
179	 * Return one line from the file specified by this Filesystem.File object. This method will return null when it 
                    
180	 * finishes reading the file or if it encounters and error. The file object will remain in an open state until 
                    
181	 * the entire file has been read via Filestream.File.readLine. It is recommended that new applications use 
                    
                
TDProcess.hx git://github.com/skial/haXe-titanium-desktop.git | Haxe | 96 lines
                    
47	 * @param	?pipeOut									-		(optional) A Process.Pipe object which the new process should use for sending output.
                    
48	 * @param	?pipeErr									-		(optional) A Process.Pipe object which the new process should use for sending error output.
                    
49	 * @return	Process.Process 
                    
                
TCPSocket.hx git://github.com/skial/haXe-titanium-desktop.git | Haxe | 79 lines
                    
18	/**
                    
19	 * Connect the Socket object to the host specified during creation. The connection will be made asynchronously. Use onError to detect failures.
                    
20	 * @return	String
                    
33	 * Set the callback that will be fired when the Socket encounters an error.
                    
34	 * @param	onError	Function to be called when an error happens.
                    
35	 * @return	String
                    
37	 */
                    
38	public function onError(onError:Dynamic):String;
                    
39
                    
                
ResultSet.hx git://github.com/skial/haXe-titanium-desktop.git | Haxe | 76 lines
                    
51	 * Check whether the current row of this Datbase.ResultSet is valid. Reasons
                    
52	 * for the current row not being valid include an error in the original SQL
                    
53	 * statement, a query that returned no results or iterating to the end of
                    
                
Foo.pm git://github.com/ikebe/Pickles.git | Perl | 50 lines
                    
42
                    
43sub error {
                    
44    die "pickles.intentional.error";
                    
                
erf.scm git://github.com/naoyat/gauche-naoyat-lib.git | Scheme | 88 lines
                    
15;;
                    
16;; (Gauss) erf (error function)
                    
17;;
                    
29;;
                    
30;; complementary error function
                    
31;;
                    
34;;
                    
35;; complex error function
                    
36;;
                    
40;;
                    
41;; inverse error function (erf-1)
                    
42;;
                    
                
LookupWidgetControl.ascx https://hg01.codeplex.com/webformsmvp | ASP.NET | 34 lines
                    
11            Display="Dynamic" Type="Integer" Operator="DataTypeCheck"
                    
12            ErrorMessage="ID must be a valid whole number" />
                    
13          <asp:RangeValidator runat="server" ControlToValidate="widgetId"
                    
15            Display="Dynamic" Type="Integer" MinimumValue="1" MaximumValue="9999999"
                    
16            ErrorMessage="ID must be a positive whole number" />
                    
17        </div>
                    
                
IBuildManager.cs https://hg01.codeplex.com/webformsmvp | C# | 20 lines
                    
13        ///<param name="typeName">The name of the type to resolve.</param>
                    
14        ///<param name="throwOnError">True if an exception should be thrown if the type cannot be found, otherwise false.</param>
                    
15        ///<returns>The type found, or null if not found and throwOnError is false.</returns>
                    
17            Justification = "Wrapping existing framework function name.")]
                    
18        Type GetType(string typeName, bool throwOnError);
                    
19    }
                    
                
http.py git://github.com/toastdriven/django-tastypie.git | Python | 91 lines
                    
85
                    
86class HttpApplicationError(HttpResponse):
                    
87    status_code = 500
                    
                
MaterialEvent.hx git://github.com/away3d/away3dlite-core-haxe.git | Haxe | 75 lines
                    
11	/**
                    
12	 * Defines the value of the type property of a loadError event object.
                    
13	 */
                    
13	 */
                    
14	public static inline var LOAD_ERROR:String = "loadError";
                    
15	
                    
                
jointnmf.py git://github.com/saaperezru/Zentity.git | Python | 0 lines
                    
133				if self.converged(i):		
                    
134					# adjust the error measure
                    
135					self.ferr = self.ferr[:i]			
                    
                
simple_bridge_response.erl git://github.com/evanmiller/ChicagoBoss.git | Erlang | 29 lines
                    
16    catch Type : Error ->
                    
17        error_logger:error_msg("Error in simple_bridge_response:make/2 - ~p - ~p~n~p", [Type, Error, erlang:get_stacktrace()]),
                    
18        erlang:Type(Error)
                    
                
medici_conn_sup.erl git://github.com/evanmiller/ChicagoBoss.git | Erlang | 0 lines
                    
23%%--------------------------------------------------------------------
                    
24%% Function: start_link() -> {ok,Pid} | ignore | {error,Error}
                    
25%% Description: Starts the supervisor
                    
38%%                     ignore                          |
                    
39%%                     {error, Reason}
                    
40%% Description: Whenever a supervisor is started using 
                    
                
options.rb git://github.com/mongoid/mongoid.git | Ruby | 49 lines
                    
28      #
                    
29      # @raise [ ArgumentError ] If the options are invalid.
                    
30      #
                    
37          if !valid_options.include?(key)
                    
38            raise Errors::InvalidOptions.new(
                    
39              options[:name],
                    
                
environment.rb git://github.com/mongoid/mongoid.git | Ruby | 44 lines
                    
10      # looks for Rails, then Sinatra, then a RACK_ENV environment variable,
                    
11      # and if none of those are found raises an error.
                    
12      #
                    
15      #
                    
16      # @raise [ Errors::NoEnvironment ] If no environment was set.
                    
17      #
                    
23        return Sinatra::Base.environment.to_s if defined?(Sinatra)
                    
24        ENV["RACK_ENV"] || ENV["MONGOID_ENV"] || raise(Errors::NoEnvironment.new)
                    
25      end
                    
                
ErrorWindow.cs http://mensagemweb.googlecode.com/svn/trunk/ | C# | 53 lines
                    
21namespace MensagemWeb.Windows {	
                    
22	public sealed class ErrorWindow : Gtk.Dialog {
                    
23#pragma warning disable 649
                    
26
                    
27		public ErrorWindow(Gtk.Window parent, Exception e) {
                    
28			Stetic.Gui.Build(this, typeof(MensagemWeb.Windows.ErrorWindow));
                    
                
Main.cs http://mensagemweb.googlecode.com/svn/trunk/ | C# | 78 lines
                    
56								"Ocorreu algum erro inesperado", MessageBoxButtons.OK,
                    
57								MessageBoxIcon.Error);
                    
58				
                    
                
development.rb https://code.google.com/p/weather-on-map/ | Ruby | 31 lines
                    
8
                    
9  # Log error messages when you accidentally call methods on nil.
                    
10  config.whiny_nils = true
                    
11
                    
12  # Show full error reports and disable caching
                    
13  config.consider_all_requests_local       = true
                    
16  # Don't care if the mailer can't send
                    
17  config.action_mailer.raise_delivery_errors = false
                    
18
                    
                
test.rb https://code.google.com/p/weather-on-map/ | Ruby | 43 lines
                    
13
                    
14  # Log error messages when you accidentally call methods on nil
                    
15  config.whiny_nils = true
                    
16
                    
17  # Show full error reports and disable caching
                    
18  config.consider_all_requests_local       = true
                    
                
production.rb https://code.google.com/p/weather-on-map/ | Ruby | 61 lines
                    
6
                    
7  # Full error reports are disabled and caching is turned on
                    
8  config.consider_all_requests_local       = false
                    
47
                    
48  # Disable delivery errors, bad email addresses will be ignored
                    
49  # config.action_mailer.raise_delivery_errors = false
                    
                
Assembler.rb git://github.com/tianyicui/No.658659.git | Ruby | 123 lines
                    
49        Integer(s)
                    
50      rescue ArgumentError
                    
51        s
                    
                
File.php http://atomikframework.googlecode.com/svn/trunk/ | PHP | 110 lines
                    
38    {
                    
39        if ($info['error'] == UPLOAD_ERR_NO_FILE) {
                    
40            require_once 'Atomik/File/Exception.php';
                    
43        
                    
44        if ($info['error'] == UPLOAD_ERR_INI_SIZE || 
                    
45            ($maxSize !== null && $info['size'] > $maxSize)) {
                    
49        
                    
50        if ($info['error'] != UPLOAD_ERR_OK) {
                    
51            require_once 'Atomik/File/Exception.php';
                    
51            require_once 'Atomik/File/Exception.php';
                    
52        	throw new Atomik_File_Exception('An error has occured while uploading');
                    
53        }
                    
                
config.php http://atomikframework.googlecode.com/svn/trunk/ | PHP | 49 lines
                    
16		),
                    
17		'catch_errors' => true
                    
18	),
                    
                
edit.php http://atomikframework.googlecode.com/svn/trunk/ | PHP | 35 lines
                    
33	}
                    
34	Atomik::flash($form->getValidationMessages(), 'error');
                    
35}
                    
                
BadLineEndingException.java https://gnukeyring.svn.sourceforge.net/svnroot/gnukeyring | Java | 55 lines
                    
33	/**
                    
34	 * Constructs an exception with null as its error detail message.
                    
35	 *
                    
43	 * Constructs an exception with the specified detail message.
                    
44	 * The error message string s can later be retrieved by the
                    
45	 * Throwable.getMessage()  method of class java.lang.Throwable.
                    
                
crypto.c https://gnukeyring.svn.sourceforge.net/svnroot/gnukeyring | C | 72 lines
                    
67 fail:
                    
68    App_ReportSysError(__FUNCTION__": EncDES", err);	
                    
69}
                    
                
keyring.c https://gnukeyring.svn.sourceforge.net/svnroot/gnukeyring | C | 285 lines
                    
58
                    
59void App_ReportSysError(const CharPtr func, int err) {
                    
60    static Char buf[16];
                    
104    if (err) {
                    
105	App_ReportSysError(__FUNCTION__, err);
                    
106	return err;
                    
172    EventType	event;
                    
173    Word			error;
                    
174	
                    
178	if (!SysHandleEvent(&event))
                    
179	    if (!MenuHandleEvent(0, &event, &error))
                    
180		if (!App_HandleEvent(&event))
                    
                
keyring.h https://gnukeyring.svn.sourceforge.net/svnroot/gnukeyring | C Header | 83 lines
                    
65void App_NotImplemented(void);
                    
66void App_ReportSysError(UInt16 msgID, Err err);
                    
67void App_SavePrefs(void);
                    
                
resource.h https://gnukeyring.svn.sourceforge.net/svnroot/gnukeyring | C++ Header | 127 lines
                    
29#define GenerateForm			1017
                    
30#define MemoDatabaseErrorAlert		1018
                    
31#define OutOfMemoryAlert		1019
                    
32#define CouldntLaunchMemoAlert		1020
                    
33#define CryptoErrorAlert		1021
                    
34#define UpgradeAlert			1023
                    
                
unpack.c https://gnukeyring.svn.sourceforge.net/svnroot/gnukeyring | C | 74 lines
                    
58         * couldn't unpack the record. */
                    
59        UI_ReportSysError2(CryptoErrorAlert, err, __FUNCTION__);
                    
60    }
                    
                
error.h https://gnukeyring.svn.sourceforge.net/svnroot/gnukeyring | C Header | 25 lines
                    
1/* -*- mode: c; c-indentation-style: "k&r"; c-basic-offset: 4 -*-
                    
2 * $Id: error.h 281 2000-10-17 14:30:25Z mbp $
                    
3 * 
                    
21
                    
22#define appErrMisc		(appErrorClass | 1)
                    
23#define appErrNotEnoughFeatures (appErrorClass | 2)
                    
23#define appErrNotEnoughFeatures (appErrorClass | 2)
                    
24#define appCancelled            (appErrorClass | 3)
                    
25
                    
                
export.c https://gnukeyring.svn.sourceforge.net/svnroot/gnukeyring | C | 242 lines
                    
68{
                    
69    FrmAlert(MemoDatabaseErrorAlert);
                    
70}
                    
                
sort.c https://gnukeyring.svn.sourceforge.net/svnroot/gnukeyring | C | 109 lines
                    
105     if (err) {
                    
106          UI_ReportSysError2(ID_SortError, err, __FUNCTION__);
                    
107     }
                    
                
snib.c https://gnukeyring.svn.sourceforge.net/svnroot/gnukeyring | C | 220 lines
                    
88    if (err) {
                    
89	/* I hope it is okay to display an error dialog.  This will
                    
90	 * prevent other alarms to be triggered in a timely manner,
                    
133    if (err) {
                    
134	UI_ReportSysError2(SnibDatabaseAlert, err, __FUNCTION__);
                    
135	return NULL;
                    
                
upgrade.c https://gnukeyring.svn.sourceforge.net/svnroot/gnukeyring | C | 103 lines
                    
31#include "upgrade.h"
                    
32#include "error.h"
                    
33#include "resource.h"
                    
90	if ((err = Upgrade_From0())) {
                    
91	    UI_ReportSysError2(UpgradeFailedAlert, err, __FUNCTION__);
                    
92	    return err;
                    
                
chap_09c.clj git://github.com/stuarthalloway/practical-cl-clojure.git | Clojure | 46 lines
                    
23
                    
24; (name '~name) was trial and error
                    
25; using conj to stack tests
                    
                
ChronoscopeWidget.java http://gwt-chronoscope.googlecode.com/svn/trunk/ | Java | 34 lines
                    
19    Chronoscope.setMicroformatsEnabled(true);
                    
20    ChronoscopeOptions.setErrorReporting(true);
                    
21    Chronoscope.getInstance();
                    
                
replace.html http://gwt-chronoscope.googlecode.com/svn/trunk/ | HTML | 48 lines
                    
29function onChronoscopeLoaded(instance) {
                    
30    chronoscope.Chronoscope.setErrorReporting(true);
                    
31    chrono = instance;
                    
                
CommonLoggingLoggerTest.cs https://hg01.codeplex.com/nhlogging | C# | 62 lines
                    
15			bool b = logger.IsDebugEnabled;
                    
16			b = logger.IsErrorEnabled;
                    
17			b = logger.IsFatalEnabled;
                    
24
                    
25			logger.Error(null);
                    
26			logger.Error(null, null);
                    
26			logger.Error(null, null);
                    
27			logger.ErrorFormat(null, null);
                    
28
                    
48			logMock.warnFormat.Should().Be(1);
                    
49			logMock.error.Should().Be(1);
                    
50			logMock.errorException.Should().Be(1);
                    
50			logMock.errorException.Should().Be(1);
                    
51			logMock.errorFormat.Should().Be(1);
                    
52			logMock.fatal.Should().Be(1);
                    
                
lmem.c git://github.com/probablycorey/wax.git | C | 87 lines
                    
46void *luaM_growaux_ (lua_State *L, void *block, int *size, size_t size_elems,
                    
47                     int limit, const char *errormsg) {
                    
48  void *newblock;
                    
51    if (*size >= limit)  /* cannot grow even a little? */
                    
52      luaG_runerror(L, errormsg);
                    
53    newsize = limit;  /* still have at least one free place */
                    
66void *luaM_toobig (lua_State *L) {
                    
67  luaG_runerror(L, "memory allocation error: block too big");
                    
68  return NULL;  /* to avoid warnings */
                    
                
lmem.h git://github.com/probablycorey/wax.git | C++ Header | 50 lines
                    
45                               size_t size_elem, int limit,
                    
46                               const char *errormsg);
                    
47
                    
                
luamock.lua git://github.com/probablycorey/wax.git | Lua | 85 lines
                    
35    if getmetatable(self) ~= Mock then
                    
36        error("returns must be called with : operator", 2)
                    
37    end
                    
                
WaxServer.lua git://github.com/probablycorey/wax.git | Lua | 50 lines
                    
45
                    
46  if not success then self.server:send("Error: " .. err .. "\n") end
                    
47
                    
                
init.lua git://github.com/probablycorey/wax.git | Lua | 79 lines
                    
37  function print(obj)
                    
38    -- if there is an error, ignore it
                    
39    pcall(function() wax.print(tostring(obj)) end)
                    
72    if err then
                    
73      error("Syntax Error: " .. err)
                    
74    else
                    
                
Error.php http://digitalus-cms.googlecode.com/svn/trunk/ | PHP | 107 lines
                    
47        if (isset($this->_ns->errors)) {
                    
48            $this->_errors = $this->_ns->errors;
                    
49        }
                    
62    /**
                    
63     * add an error to the stack
                    
64     *
                    
66     */
                    
67    public function add($error)
                    
68    {
                    
68    {
                    
69        $this->_errors[] = $error;
                    
70        $this->_updateNs();
                    
101        if (isset($this->_errors)) {
                    
102            $this->_ns->errors = $this->_errors;
                    
103        } else {
                    
                
File.php http://digitalus-cms.googlecode.com/svn/trunk/ | PHP | 221 lines
                    
93        } catch(Zend_Exception $e) {
                    
94            return 'Sorry, there was an error saving your page';
                    
95        }
                    
                
Abstract.php http://digitalus-cms.googlecode.com/svn/trunk/ | PHP | 160 lines
                    
37{
                    
38    protected $_errors   = array();
                    
39    protected $_warnings = array();
                    
61    {
                    
62        error_reporting(E_ALL | E_STRICT);
                    
63        $this->setDbConnection($pathToConfig);
                    
119
                    
120    public function addError($message)
                    
121    {
                    
121    {
                    
122        $this->_errors[] = array('message' => $message);
                    
123    }
                    
138        if (count($this->_errors) > 0) {
                    
139            $messages->errors = $this->_errors;
                    
140        }
                    
                
Abstract.php http://digitalus-cms.googlecode.com/svn/trunk/ | PHP | 57 lines
                    
29     * if run is not overloaded by the class that
                    
30     * extends this it is seen as an error
                    
31     *
                    
                
FullRow.php http://digitalus-cms.googlecode.com/svn/trunk/ | PHP | 84 lines
                    
30
                    
31    public function buildErrors()
                    
32    {
                    
37        }
                    
38        return '<div class="errors">' .
                    
39               $element->getView()->formErrors($messages) . '</div>';
                    
65        $input     = $this->buildInput();
                    
66        $errors    = $this->buildErrors();
                    
67        $desc      = $this->buildDescription();
                    
71                . $input
                    
72                . $errors
                    
73                . $desc
                    
                
ErrorController.php http://digitalus-cms.googlecode.com/svn/trunk/ | PHP | 58 lines
                    
27/**
                    
28 * Admin Error Controller of Digitalus CMS
                    
29 *
                    
33 * @package     Digitalus_CMS_Controllers
                    
34 * @version     $Id: ErrorController.php Mon Dec 24 20:49:53 EST 2007 20:49:53 forrest lyman $
                    
35 * @link        http://www.digitaluscms.com
                    
37 */
                    
38class Admin_ErrorController extends Digitalus_Controller_Action
                    
39{
                    
                
GroupController.php http://digitalus-cms.googlecode.com/svn/trunk/ | PHP | 217 lines
                    
208        $mdlGroup = new Model_Group();
                    
209// TODO: display error message or warning
                    
210        if (Model_Group::SUPERUSER_ROLE != $groupName && Model_Group::GUEST_ROLE != $groupName) {
                    
                
Login.php http://digitalus-cms.googlecode.com/svn/trunk/ | PHP | 109 lines
                    
71            'attribs'       => array('size' => 50),
                    
72            'errorMessages' => array('You must enter a valid username.'),
                    
73        ));
                    
79            'filters'       => array('StringTrim'),
                    
80            'errorMessages' => array('You must enter your password.'),
                    
81        ));
                    
                
Search.php http://digitalus-cms.googlecode.com/svn/trunk/ | PHP | 40 lines
                    
23             ),
                    
24            'errorMessages' => array($view->getTranslation('Please provide a keyword to search for!')),
                    
25        ));
                    
                
ErrorController.php http://digitalus-cms.googlecode.com/svn/trunk/ | PHP | 41 lines
                    
3
                    
4class ErrorController extends Digitalus_Controller_Action
                    
5{
                    
7     * This action handles
                    
8     *    - Application errors
                    
9     *    - Errors in the controller chain arising from missing
                    
11     */
                    
12    public function errorAction()
                    
13    {
                    
14        $this->getHelper('layout')->disableLayout();
                    
15        $errors = $this->_getParam('error_handler');
                    
16        switch ($errors->type) {
                    
24            default:
                    
25                // application error; display error page, but don't change
                    
26                // status code
                    
                
index.php http://digitalus-cms.googlecode.com/svn/trunk/ | PHP | 49 lines
                    
42        if (file_exists('./install_hidden/install.php')) {
                    
43            $warning = '<p class="error">ERROR: an error occurred while trying to load the config file! For a fresh installation or update of Digitalus, please rename the directory "install_hidden" to "install"!</p>';
                    
44        } else {
                    
44        } else {
                    
45            $warning = '<p class="error">ERROR: an error occurred while trying to load the config file! For a fresh installation You need the installation directory which must be named "install"!</p>';
                    
46        }
                    
                
OrdersResourceHandler.cs https://hg01.codeplex.com/restbucks | C# | 67 lines
                    
55            {
                    
56                var content = string.Join("\n", order.GetErrorMessages());
                    
57                return Responses.BadRequest("Invalid entities values", content);
                    
                
RestBucksHttpErrorHandler.cs https://hg01.codeplex.com/restbucks | C# | 39 lines
                    
11    //http://wcf.codeplex.com/discussions/255171
                    
12    //public class RestBucksHttpErrorHandler : HttpErrorHandler
                    
13    //{
                    
13    //{
                    
14    //    protected override bool OnHandleError(Exception error)
                    
15    //    {
                    
18
                    
19    //    protected override HttpResponseMessage OnProvideResponse(Exception error)
                    
20    //    {
                    
20    //    {
                    
21    //        var response = Responses.BadRequest(error.Message);
                    
22    //        return response;
                    
24    //}
                    
25    public class RestBucksHttpErrorHandler : IInterceptor
                    
26    {
                    
                
GivenAPayedOrder.cs https://hg01.codeplex.com/restbucks | C# | 50 lines
                    
34        {
                    
35            order.Executing(o => o.Cancel("error"))
                    
36                .Throws<InvalidOrderOperationException>()
                    
                
configure.ac https://bitbucket.org/rizon/ircd/ | m4 | 41 lines
                    
14	AC_CHECK_LIB(crypto, RSA_private_decrypt, [LIBS="$LIBS -lcrypto"], 
                    
15		[AC_MSG_ERROR([Could not find libcrypto.])])
                    
16])
                    
                
Makefile.in https://bitbucket.org/rizon/ircd/ | Autoconf | 52 lines
                    
16		time motd userhost users whois ison lusers user help \
                    
17		challenge map pass error knock ping pong webirc
                    
18all:
                    
                
msg.h https://bitbucket.org/rizon/ircd/ | C Header | 73 lines
                    
38	unsigned int parameters;	/* at least this many args must be passed
                    
39					 * or an error will be sent to the user 
                    
40					 * before the m_func is even called 
                    
                
s_bsd_epoll.c https://bitbucket.org/rizon/ircd/ | C | 214 lines
                    
82#else /* cpu types */
                    
83#error No system call numbers defined for epoll family.
                    
84#endif /* cpu types */
                    
102	{
                    
103		ilog(L_CRIT, "init_netio: Couldn't open epoll fd - %d: %s", errno, strerror(errno));
                    
104		exit(115);	/* Whee! */
                    
152		{
                    
153			ilog(L_CRIT, "comm_setselect: epoll_ctl() failed: %s", strerror(errno));
                    
154			abort();
                    
                
 

Source

Language