PageRenderTime 258ms queryFilters 110ms Sphinxql 394ms app.CodeModel.GetByIds 2ms findMatchingLines 17ms GetByIds 19ms meta 0ms repositoryFilters 13ms languageFilters 20ms sourceFilters 3ms

5,833,776 results for 'ERROR repo:nibrahim/pypy' (258 ms)

Source

Language

Repository

error.py https://bitbucket.org/nhomar/python-oerplib | Python | 63 lines
19
20class DMSConnectionError(Error):
21    pass
23
24class LoginError(Error):
25    """Exception raised when an error occurred during a login operation."""
33
34class WorkflowQueryError(Error):
35    """Exception raised when an error occurred during an workflow query."""
50
51class NotAllowedError(Error):
52    """Exception raised if a prohibited operation is made."""
56
57class UnknownError(Error):
58    """Exception raised when an unknown error occurred."""
function.error-reporting.html https://github.com/urevic/dotfiles.git | HTML | 178 lines
73  <p class="para">
74   Returns the old <a href="errorfunc.configuration.html#ini.error-reporting" class="link">error_reporting</a>
75   level or the current level if no <i><tt class="parameter">level</tt></i> parameter is
129<div class="phpcode"><code><span style="color: #000000">
130<span style="color: #0000BB">&lt;?php<br /><br /></span><span style="color: #FF8000">//&nbsp;Turn&nbsp;off&nbsp;all&nbsp;error&nbsp;reporting<br /></span><span style="color: #0000BB">error_reporting</span><span style="color: #007700">(</span><span style="color: #0000BB">0</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">//&nbsp;Report&nbsp;simple&nbsp;running&nbsp;errors<br /></span><span style="color: #0000BB">error_reporting</span><span style="color: #007700">(</span><span style="color: #0000BB">E_ERROR&nbsp;</span><span style="color: #007700">|&nbsp;</span><span style="color: #0000BB">E_WARNING&nbsp;</span><span style="color: #007700">|&nbsp;</span><span style="color: #0000BB">E_PARSE</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">//&nbsp;Reporting&nbsp;E_NOTICE&nbsp;can&nbsp;be&nbsp;good&nbsp;too&nbsp;(to&nbsp;report&nbsp;uninitialized<br />//&nbsp;variables&nbsp;or&nbsp;catch&nbsp;variable&nbsp;name&nbsp;misspellings&nbsp;...)<br /></span><span style="color: #0000BB">error_reporting</span><span style="color: #007700">(</span><span style="color: #0000BB">E_ERROR&nbsp;</span><span style="color: #007700">|&nbsp;</span><span style="color: #0000BB">E_WARNING&nbsp;</span><span style="color: #007700">|&nbsp;</span><span style="color: #0000BB">E_PARSE&nbsp;</span><span style="color: #007700">|&nbsp;</span><span style="color: #0000BB">E_NOTICE</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">//&nbsp;Report&nbsp;all&nbsp;errors&nbsp;except&nbsp;E_NOTICE<br />//&nbsp;This&nbsp;is&nbsp;the&nbsp;default&nbsp;value&nbsp;set&nbsp;in&nbsp;php.ini<br /></span><span style="color: #0000BB">error_reporting</span><span style="color: #007700">(</span><span style="color: #0000BB">E_ALL&nbsp;</span><span style="color: #007700">^&nbsp;</span><span style="color: #0000BB">E_NOTICE</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">//&nbsp;Report&nbsp;all&nbsp;PHP&nbsp;errors&nbsp;(see&nbsp;changelog)<br /></span><span style="color: #0000BB">error_reporting</span><span style="color: #007700">(</span><span style="color: #0000BB">E_ALL</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">//&nbsp;Report&nbsp;all&nbsp;PHP&nbsp;errors<br /></span><span style="color: #0000BB">error_reporting</span><span style="color: #007700">(-</span><span style="color: #0000BB">1</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">//&nbsp;Same&nbsp;as&nbsp;error_reporting(E_ALL);<br /></span><span style="color: #0000BB">ini_set</span><span style="color: #007700">(</span><span style="color: #DD0000">'error_reporting'</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">E_ALL</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">?&gt;</span>
131</span>
145    compile time thus such errors are not reported in the file where
146    <a href="errorfunc.configuration.html#ini.error-reporting" class="link">error_reporting</a> is enhanced
147    to include <b><tt>E_STRICT</tt></b> errors (and vice versa).
163   <ul class="simplelist">
164    <li class="member">The <a href="errorfunc.configuration.html#ini.display-errors" class="link">display_errors</a> directive</li>
165    <li class="member">The <a href="errorfunc.configuration.html#ini.html-errors" class="link">html_errors</a> directive</li>
165    <li class="member">The <a href="errorfunc.configuration.html#ini.html-errors" class="link">html_errors</a> directive</li>
166    <li class="member">The <a href="errorfunc.configuration.html#ini.xmlrpc-errors" class="link">xmlrpc_errors</a> directive</li>
167    <li class="member"><span class="function"><a href="function.ini-set.html" class="function" rel="rdfs-seeAlso">ini_set()</a> - Sets the value of a configuration option</span></li>
error.rkt git://github.com/plt/racket.git | Unknown | 178 lines
42       any)]
43 [compose-error-message
44  (->* [(or/c symbol? #f) string?]
47       string?)]
48 [compose-error-detail
49  (-> string? (listof field-option/c) any/c
53
54(define (error* who message
55                #:continued [continued-message null]
76                 '("at" maybe) (and sub-stx
77                                    (error-print-source-location)
78                                    (format "~.s" (syntax->datum sub-stx)))
135          (cond [value?
136                 (lambda (v) ((error-value->string-handler) v (error-print-width)))]
137                [else
error.scrbl git://github.com/plt/racket.git | Unknown | 113 lines
2@(require scribble/eval "utils.rkt"
3          (for-label racket/base racket/contract unstable/error))
4
5@(define the-eval (make-base-eval))
6@(the-eval '(require unstable/error))
7
7
8@title[#:tag "error"]{Errors}
9@unstable[@author+email["Ryan Culpepper" "ryanc@racket-lang.org"]]
10
11@defmodule[unstable/error]
12
12
13@defproc[(error* [name symbol?]
14                 [message string?]
error.go git://github.com/mattn/go-sqlite3.git | Go | 150 lines
26
27// Error implement sqlite error code.
28type Error struct {
69func (err ErrNo) Error() string {
70	return Error{Code: err}.Error()
71}
77
78// Error return error message that is extended code.
79func (err ErrNoExtended) Error() string {
79func (err ErrNoExtended) Error() string {
80	return Error{Code: ErrNo(C.int(err) & ErrNoMask), ExtendedCode: err}.Error()
81}
82
83func (err Error) Error() string {
84	var str string
test-error-reporting.t https://bitbucket.org/douardda/guestrepo-color | Unknown | 154 lines
51  cloning mygr1
52  repository /tmp/*/test-error-reporting.t/one not found (glob)
53  cloning mygr2
53  cloning mygr2
54  repository /tmp/*/test-error-reporting.t/two not found (glob)
55  cloning mygr3
58  
59  finished with errors
60  
60  
61  mygr1: repository /tmp/*/test-error-reporting.t/one not found (glob)
62  verifying mygr1
62  verifying mygr1
63  repository /tmp/*/test-error-reporting.t/host/mygr1 not found (glob)
64  
error.tcl https://github.com/qcode-software/qcode-tcl.git | TCL | 194 lines
7    set suffix [file extension [ns_conn url]]
8    global errorMessage errorList errorInfo errorCode
9    switch -glob -- $errorCode {
11	    if { [eq $suffix .xml] } {
12		return2client xml [qc::xml error $errorMessage] filter_cc yes
13	    } elseif { [eq $suffix .json] } {
69    
70    global errorMessage errorInfo errorCode
71    # Copy error globals in case they are clobbered before we report them
72    set error_message $errorMessage
73    set error_info $errorInfo
74    set error_code $errorCode
115   
116    global errorMessage errorInfo errorCode
117     
Error.scala git://github.com/tomerd/scala-xmpp.git | Scala | 39 lines
13
14    def apply(presence:Presence, condition:StanzaErrorCondition.Value, description:Option[String]=None):Error = apply(presence.id, presence.from, presence.to, presence.extensions, condition, description)
15
23
24    def unapply(error:Error):Option[(Option[String], Option[JID], Option[JID], StanzaErrorCondition.Value, Option[String])] = Some(error.id, error.to, error.from, error.condition, error.description)
25}
29    // FIXME, this should be conditional
30    private val error = StanzaError((xml \ "error")(0))
31
31
32    val errorType:Option[StanzaErrorAction.Value] = error.errorType
33
33
34    val condition:StanzaErrorCondition.Value =  error.condition
35
Error.scala git://github.com/tomerd/scala-xmpp.git | Scala | 42 lines
14
15			def apply(message:Message, condition:StanzaErrorCondition.Value, description:Option[String]=None):Error = apply(message.id, message.from, message.to, message.extensions, condition, description) 
16			
24			
25			def unapply(error:Error):Option[(Option[String], Option[JID], Option[JID], StanzaErrorCondition.Value, Option[String])] = Some(error.id, error.to, error.from, error.condition, error.description)
26		}
30			// FIXME, this should be conditional
31			private val error = StanzaError((xml \ "error")(0))
32			
32			
33			val errorType:Option[StanzaErrorAction.Value] = error.errorType
34			
34			
35			val condition:StanzaErrorCondition.Value =  error.condition
36			
Error.scala git://github.com/tomerd/scala-xmpp.git | Scala | 42 lines
15
16    def apply(id:Option[String], to:Option[JID], from:Option[JID], extension:Option[Extension], condition:StanzaErrorCondition.Value, description:Option[String]):Error =
17    {
23
24    def unapply(error:Error):Option[(Option[String], Option[JID], Option[JID], Option[StanzaErrorCondition.Value], Option[String])] = Some(error.id, error.to, error.from, error.condition, error.description)
25}
34
35    val errorType:Option[StanzaErrorAction.Value] = if (error.isDefined) error.get.errorType else None
36
36
37    val condition:Option[StanzaErrorCondition.Value] =  if (error.isDefined) Some(error.get.condition) else None
38
40
41    val otherConditions:Option[Seq[String]] =if (error.isDefined) error.get.otherConditions else None
42}
error-checking.js https://code.google.com/p/kplian/ | JavaScript | 364 lines
67        
68        error: function(){
69            if(enabled && window.console){
69            if(enabled && window.console){
70                console.error.apply(console, arguments);
71            }
100                            if(!Ext.isFunction(o)){
101                                A.error('Non function passed to event listener', this, ev);
102                                return false;
107                    if(!Ext.isFunction(fn)){
108                        A.error('Non function passed to event listener', this, eventName);
109                    }
124                if(!container && !this.el){
125                    A.error('Unable to render to container', this, container);
126                }
error-checking.html https://code.google.com/p/kplian/ | HTML | 374 lines
75        
76        error: function(){
77            if(enabled && window.console){
77            if(enabled && window.console){
78                console.error.apply(console, arguments);
79            }
108                            if(!Ext.isFunction(o)){
109                                A.error('Non function passed to event listener', this, ev);
110                                return false;
115                    if(!Ext.isFunction(fn)){
116                        A.error('Non function passed to event listener', this, eventName);
117                    }
132                if(!container && !this.el){
133                    A.error('Unable to render to container', this, container);
134                }
Error.html https://code.google.com/p/kplian/ | HTML | 92 lines
14 */
15<div id="method-Ext.Element-handleError"></div>/**
16 * Framework-wide error-handler.  Developers can override this method to provide
18 * Ext.Error class.
19 * @param {Object/Error} e The thrown exception object.
20 */
30 * to check for common errors and problems. The messages issued by this class
31 * will aid error checking. Error checks will be automatically removed in the
32 * production build so that performance is not negatively impacted.</p>
51function generateError(data) {
52    throw new Ext.Error('foo-error', data);
53}
61
62Ext.Error.prototype = new Error();
63Ext.apply(Ext.Error.prototype, {
Error.generated.cs git://github.com/signumframework/signumframework.git | C# | 172 lines
34    [System.Web.WebPages.PageVirtualPathAttribute("~/Signum/Views/Error.cshtml")]
35    public class Error : System.Web.Mvc.WebViewPage<HandleErrorInfo >
36    {
36    {
37        public Error()
38        {
43            
44            #line 1 "..\..\Signum\Views\Error.cshtml"
45  
45  
46    this.ViewBag.Title = "Error"; 
47
56            
57            #line 6 "..\..\Signum\Views\Error.cshtml"
58     if (Model.Exception is ApplicationException)
error-codes.scm.in git://github.com/xatom/GPGME-Guile.git | Autoconf | 67 lines
3;;; A Guile binding to the GPGME library
4;;; Error code definitions
5;;;
23
24;; This file defines all of the error codes provided by libgpg-error.
25;; There are a great many of them!  All errors and their associated
55;;; END ERROR CODES
56(define *error-code-dim* @@ERROR_CODE_DIM@@)
57;; Error codes are just integers, but they are implemented in a
59;; which is 1+ the highest allowable error code.  We will modulo all
60;; error codes by this number, giving us the _real_ error.
61
61
62(define *error-codes->errors*
63  (alist->vhash
runtime-error.h git://github.com/facebook/hiphop-php.git | C Header | 287 lines
65   * PHP's fatal errors cannot be fed into error handler. HipHop can. We
66   * still need "ERROR" bit, so old PHP error handler can see this error.
67   * The extra 24th bit will help people who want to find out if it's
69   */
70  FATAL_ERROR = ERROR | (1 << 24), // 16777217
71
72  PHP_ALL = ERROR | WARNING | PARSE | NOTICE | CORE_ERROR | CORE_WARNING |
73    COMPILE_ERROR | COMPILE_WARNING | USER_ERROR | USER_WARNING |
74    USER_NOTICE | RECOVERABLE_ERROR | PHP_DEPRECATED | USER_DEPRECATED,
77
78  /* Errors that can be upgraded to E_USER_ERROR. */
79  UPGRADEABLE_ERROR = WARNING | USER_WARNING | NOTICE | USER_NOTICE
128/*
129 * raise_typehint_error() is the same as raise_recoverable_error(), except
130 * the error handler is not allowed to recover.
error.py https://bitbucket.org/pitrou/t3k | Python | 383 lines
1# -*- test-case-name: twisted.web.test.test_error -*-
2# Copyright (c) Twisted Matrix Laboratories.
16    """
17    A basic HTTP error.
18
22    @type message: C{str}
23    @param message: A short error message, for example "NOT FOUND".
24
25    @type response: C{str}
26    @ivar response: A complete HTML document for an error page.
27    """
37        @type message: C{str}
38        @param message: A short error message, for example "NOT FOUND".
39
377__all__ = [
378    'Error', 'PageRedirect', 'InfiniteRedirection', 'RenderError',
379    'MissingRenderMethod', 'MissingTemplateLoader', 'UnexposedMethodError',
error.py https://bitbucket.org/pombredanne/htsql | Python | 112 lines
16from ..util import maybe
17from ..error import BadRequestError
18from ..mark import Mark
20
21class TranslateError(BadRequestError):
22    """
61
62class BindError(TranslateError):
63    """
91
92class AssembleError(TranslateError):
93    """
101
102class SerializeError(TranslateError):
103    """
t-error.htm https://bitbucket.org/marto1/udtwrap | HTML | 49 lines
12<h3><font color="#000080">Error Handling</font></h3>
13<p>All UDT API will return an error upon a failed operation. Particularly, UDT defines UDT::INVALID_SOCK and UDT::ERROR as error returned values. Application should check the return 
14value against these two constants (several routine return false as error value).</p>
15
16<p>On error, <a href="error.htm"><strong>getlasterror</strong></a> can be used to retrieve the error information. In fact, the function returns the latest error occurred in the thread where the function is called. <a href="error.htm"><strong>getlasterror</strong></a> returns an <a href="structure.htm"><strong>ERRORINFO</strong></a> structure, it contains both the error code and special text error message. Two helper functions of <a href="structure.htm"><strong>getErrorCode</strong></a> and <a href="structure.htm"><strong>getErrorMessage</strong></a> can be used to read these 
17information.</p>
18<p>The UDT error information is thread local (that is, an error in another thread will not affect the error information in the current thread). The returned value is a reference to the UDT internal error structure.</p>
19<p>Note that a successful call will NOT clear the error. Therefore, applications should use the return value of a UDT API to check the result of a UDT call. <a href="error.htm"><strong>getlasterror</strong></a> only provides detailed information when necessary. However, application can use <strong>getlasterror().<a href="structure.htm">clear()</a></strong> to clear the previously logged error if needed. </p>
20<p><strong>Example</strong>: check UDT::bind error.</p>
30{<br>
31&nbsp;&nbsp;cout << "bind: " << UDT::getlasterror().getErrorMessage();<br>
32&nbsp;&nbsp;// further action may depends on UDT::getlasterror().getErrorCode().<br>
43<p>The UDT error code only reflects the operation error of the UDT socket level. Applications can still read the system level error (e.g., <u>errno</u> in Linux, <u>GetLastError</u> in Windows) to read 
44more specific error information. However, the error message obtained by getErrorMessage contains information of both the UDT level error and the system level error.</p>
45
Error.c https://bitbucket.org/anthony_tuininga/ceodbc | C | 198 lines
6#define CheckForError(obj, rc, context) \
7        Error_CheckForError((udt_ObjectWithHandle*) obj, rc, context)
8
86static void Error_Free(
87    udt_Error *self)                    // error object
88{
135    // create new error object
136    error = PyObject_NEW(udt_Error, &g_ErrorType);
137    if (!error)
181            }
182            error->message = ceString_Join(separator, errorMessages);
183            Py_DECREF(separator);
192
193    PyErr_SetObject(g_DatabaseErrorException, (PyObject*) error);
194    Py_DECREF(error);
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21