PageRenderTime 238ms queryFilters 0ms Sphinxql 3017ms GetByIds 113ms meta 0ms repositoryFilters 45ms languageFilters 60ms sourceFilters 37ms

3,992,007 results for 'ERROR repo:semyazza/pypy' (238 ms)

Source

Language

Repository

error-sig.sml https://github.com/richardjuan/implementations.git | Unknown | 83 lines
20 Encountering an error, LEGO will raise an exception `error' provided
21 by a structure Error:ERROR. The signatures ERROR and ERRORFORMATTING
22 are defined in this file. A structure Errorformatting:ERRORFORMATTING
23 will be used to implement the structure Error:ERROR in the file
24 `error.sml'. An error is identified by its `ErrorSignal'
25 encapsulating the `ErrorClass', the terms involved and, optionally,
26 the number of the goal in question. The exception will be caught in
27 the interface where an `ErrorHandler' will print an appropriate error
28 message.
52 Currently, all other error messages are handled directly, but should
53 be converted to use the new error handling structure `Error'.
54 *)
80	exception error of (ErrorClass,cnstr) ErrorSignal
81	val ErrorHandler : (ErrorClass,cnstr) ErrorSignal -> unit
82    end;
error.topaz https://github.com/KoreanFoodComics/Project-SnowBall.git | Unknown | 175 lines
1Topaz [
2    Title: "Topaz types: ERROR!"
3    Author: "Gabriele Santilli"
29
30make-type 'error! [
31    make: function [args] [res] [
33        res: make-struct [
34            type: error!
35            category: any [args/category "Internal"]
36            id: any [args/id "unspecified"]
37            message: any [args/message "Unspecified error"]
38            args: args/args
118]
119error!/("error!"): make-struct [
120    equal?: function [err1 err2] [] [
bson-error.c https://github.com/pfriedland/rmongodb.git | C | 129 lines
22#include "bson-config.h"
23#include "bson-error.h"
24#include "bson-memory.h"
45 * Parameters:
46 *       @error: A #bson_error_t.
47 *       @domain: The error domain.
60void
61bson_set_error (bson_error_t *error,  /* OUT */
62                uint32_t      domain, /* IN */
73      va_start (args, format);
74      bson_vsnprintf (error->message, sizeof error->message, format, args);
75      va_end (args);
76
77      error->message[sizeof error->message - 1] = '\0';
78   }
error.h https://github.com/AOSP-S4-I9500/android_external_ffmpeg.git | C++ Header | 130 lines
39#define AVERROR(e) (-(e))   ///< Returns a negative error code from a POSIX error code, to return from library functions.
40#define AVUNERROR(e) (-(e)) ///< Returns a POSIX error code from a library function error return value.
41#else
49#define AVERROR_BSF_NOT_FOUND      FFERRTAG(0xF8,'B','S','F') ///< Bitstream filter not found
50#define AVERROR_BUG                FFERRTAG( 'B','U','G','!') ///< Internal bug, also see AVERROR_BUG2
51#define AVERROR_BUFFER_TOO_SMALL   FFERRTAG( 'B','U','F','S') ///< Buffer too small
78 * In case of failure the global variable errno is set to indicate the
79 * error. Even in case of failure av_strerror() will print a generic
80 * error message indicating the errnum provided to errbuf.
94    static char errbuf[AV_ERROR_MAX_STRING_SIZE];
95    av_strerror(errnum, errbuf, AV_ERROR_MAX_STRING_SIZE);
96    return errbuf;
121#define av_err2str(errnum) \
122    av_make_error_string((char[AV_ERROR_MAX_STRING_SIZE]){0}, AV_ERROR_MAX_STRING_SIZE, errnum)
123
error.py https://github.com/liujiantong/neurolab.git | Python | 159 lines
1# -*- coding: utf-8 -*-
2""" Train error functions with derivatives
3
19    """
20    Mean squared error function
21
23        e: ndarray
24            current errors: target - output
25    :Returns:
26        v: float
27            Error value
28    :Example:
42        """
43        Derivative of MSE error function
44
error.php https://github.com/benphelps/Phelps-Framework.git | PHP | 101 lines
30  var $levels = [
31    E_ERROR           =>  'Error',
32    E_WARNING         =>  'Warning',
34    E_NOTICE          =>  'Notice',
35    E_CORE_ERROR      =>  'Core Error',
36    E_CORE_WARNING    =>  'Core Warning',
36    E_CORE_WARNING    =>  'Core Warning',
37    E_COMPILE_ERROR   =>  'Compile Error',
38    E_COMPILE_WARNING =>  'Compile Warning',
38    E_COMPILE_WARNING =>  'Compile Warning',
39    E_USER_ERROR      =>  'User Error',
40    E_USER_WARNING    =>  'User Warning',
53  {
54    $error = 'Fatal Framework Error';
55    include(SYS_DIR . 'handler/template/framework.php');
error-pages.md https://github.com/liny4cn/brightspot-cms.git | Markdown | 46 lines
2layout: default
3title: Error Pages
4id: errorPages
12
13## Error Page Element
14
14
15Start by adding your error-page elements to your web.xml and specifying the url on which they are accessed. Below the 404 error-code maps to `/404`. This could equally be `/no-page-found`:
16
18    <error-page>
19        <error-code>404</error-code>
20        <location>/404</location>
23    <error-page>
24        <error-code>505</error-code>
25        <location>/505</location>
error.t https://github.com/chinmayadas/Dancer2.git | Unknown | 135 lines
37    is $e->status,  500,                                 'code';
38    is $e->title,   'Error 500 - Internal Server Error', 'title';
39    is $e->message, undef,                               'message';
52        get '/error' => sub {
53            send_error "This is a custom error message";
54            return "send_error returns so this content is not processed";
99        is( $r->code, 542, 'send_error sets the status to 542' );
100        like( $r->content, qr{Error 42},  'Error message looks good' );
101    };
115
116subtest 'Error with show_errors: 0' => sub {
117    my $err = Dancer2::Core::Error->new(
124
125subtest 'Error with show_errors: 1' => sub {
126    my $err = Dancer2::Core::Error->new(
error.hbs https://github.com/kevinansfield/Ghost.git | Handlebars | 29 lines
1<section class="error-content error-404 js-error-container">
2    <section class="error-details">
3         <figure class="error-image">
4             <img class="error-ghost" {{bind-attr src=ghostPaths.errorImageSrc srcset=ghostPaths.errorImageSrcSet}} />
5         </figure>
5         </figure>
6         <section class="error-message">
7             <h1 class="error-code">{{code}}</h1>
7             <h1 class="error-code">{{code}}</h1>
8             <h2 class="error-description">{{message}}</h2>
9             <a class="error-link" {{bind-attr href=ghostPaths.blogRoot}}>Go to the front page →</a>
14{{#if stack}}
15    <section class="error-stack">
16        <h3>Stack Trace</h3>
17        <p><strong>{{message}}</strong></p>
18        <ul class="error-stack-list">
19            {{#foreach stack}}
error.c https://github.com/alex-vpn/openvpn.git | C | 913 lines
32
33#include "error.h"
34#include "buffer.h"
167void
168error_reset ()
169{
189void
190errors_to_stderr (void)
191{
191{
192  default_err = OPENVPN_ERROR_FP;  
193}
263      openvpn_snprintf (m2, ERR_BUF_SIZE, "%s: %s (errno=%d)",
264			m1, strerror_ts (e, &gc), e);
265      SWAP;
ovsdb-error.h https://github.com/kevinfhell/dpdk-ovs.git | C++ Header | 70 lines
25    WARN_UNUSED_RESULT;
26struct ovsdb_error *ovsdb_io_error(int error, const char *details, ...)
27    PRINTF_FORMAT(2, 3)
33
34struct ovsdb_error *ovsdb_wrap_error(struct ovsdb_error *error,
35                                     const char *details, ...)
37
38struct ovsdb_error *ovsdb_internal_error(struct ovsdb_error *error,
39                                         const char *file, int line,
51 * the current file name and line number, with MSG as the associated message.
52 * If ERROR is nonnull then the internal error is wrapped around ERROR.  Takes
53 * ownership of ERROR.  The caller is responsible for freeing the returned
58void ovsdb_error_destroy(struct ovsdb_error *);
59struct ovsdb_error *ovsdb_error_clone(const struct ovsdb_error *)
60    WARN_UNUSED_RESULT;
error.js https://github.com/mpmedia/bluebird.git | JavaScript | 132 lines
10
11describe("Promise.prototype.error", function(){
12    describe("catches stuff originating from explicit rejections", function() {
13        specify("using constructor", function(done) {
14            var e = new Error("sup");
15            new Promise(function(resolve, reject) {
16                reject(e);
17            }).error(function(err){
18                assert(err === e);
22        specify("using Promise.reject", function(done) {
23            var e = new Error("sup");
24            Promise.reject(e).error(function(err) {
29        specify("using deferred", function(done) {
30            var e = new Error("sup");
31            var d = Promise.defer();
Error.java https://github.com/peterikladious/sdk-core-java.git | Java | 91 lines
17	/**
18	 * A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.
19	 */
30	 */
31	public Error(String error) {
32		this.error = error;
37	 */
38	public void setError(String error) {
39		this.error = error;
52	public void setErrorDescription(String errorDescription) {
53		this.errorDescription = errorDescription;
54 	}
66	public void setErrorUri(String errorUri) {
67		this.errorUri = errorUri;
68 	}
error.coffee https://github.com/matthewsklar/BookLoversUSA.git | CoffeeScript | 40 lines
5
6describe 'error', ->
7
9      transformer = transform (row) ->
10        throw new Error 'Custom Error'
11      transformer.on 'error', (err) ->
14      transformer.on 'finish', ->
15        next new Error 'Should not be called'
16      transformer.write [ 'trigger' ]
20      transformer = generator.pipe transform (row) ->
21        throw new Error 'Custom Error'
22      transformer.on 'error', (err) ->
34    ], (row) ->
35      throw new Error 'Custom Error'
36    , (err, data) ->
error.cpp https://github.com/sonyomega/ogl-samples.git | C++ | 73 lines
1#include "error.hpp"
2#include <string>
8	int Error;
9	if((Error = glGetError()) != GL_NO_ERROR)
10	{
10	{
11		std::string ErrorString;
12		switch(Error)
14		case GL_INVALID_ENUM:
15			ErrorString = "GL_INVALID_ENUM";
16			break;
32		}
33		fprintf(stdout, "OpenGL Error(%s): %s\n", ErrorString.c_str(), Title);
34		assert(0);
35	}
36	return Error == GL_NO_ERROR;
37}
ovsdb-error.h https://github.com/noironetworks/ovs.git | C++ Header | 70 lines
25    OVS_WARN_UNUSED_RESULT;
26struct ovsdb_error *ovsdb_io_error(int error, const char *details, ...)
27    OVS_PRINTF_FORMAT(2, 3)
33
34struct ovsdb_error *ovsdb_wrap_error(struct ovsdb_error *error,
35                                     const char *details, ...)
37
38struct ovsdb_error *ovsdb_internal_error(struct ovsdb_error *error,
39                                         const char *file, int line,
51 * the current file name and line number, with MSG as the associated message.
52 * If ERROR is nonnull then the internal error is wrapped around ERROR.  Takes
53 * ownership of ERROR.  The caller is responsible for freeing the returned
58void ovsdb_error_destroy(struct ovsdb_error *);
59struct ovsdb_error *ovsdb_error_clone(const struct ovsdb_error *)
60    OVS_WARN_UNUSED_RESULT;
traffic-server-error-messages.en.rst https://github.com/anorsich/trafficserver.git | Unknown | 374 lines
1.. _traffic-server-error-messages:
2
2
3Error Messages
4**************
25
26Traffic Server Error Messages
27=============================
47
48``<Logfile> error: error_number``
49   Generic logging error.
58``Could not rename log <filename> to <rolled filename>``
59   System error when renaming log file during roll.
60
71``Missing field for field marker``
72   Error reading a log buffer.
73
error-help.js https://github.com/mrsonord/thimble.webmaker.org.git | JavaScript | 94 lines
28    var template = options.template;
29    var errorArea = options.errorArea;
30    var relocator = options.relocator;
54          endMark = null,
55          errorHTML = $("<div></div>").fillError(error);
56      errorArea.html(template({error: errorHTML.html()})).show();
56      errorArea.html(template({error: errorHTML.html()})).show();
57      errorArea.eachErrorHighlight(function(start, end, i) {
58        // Point the error message's arrow at the first occurrence of
69      });
70      relocator.relocate(errorArea, startMark, endMark, "error");
71
86        timeout = setTimeout(function() {
87          reportError(event.error);
88        }, ERROR_DISPLAY_DELAY);
error-model.h https://github.com/scarletttu/ns-3-codel-dev.git | C++ Header | 311 lines
67 * \ingroup network
68 * \defgroup errormodel Error Model
69 */
102 *
103 * Two practical error models, a ListErrorModel and a RateErrorModel,
104 * are currently implemented. 
226 * cause subsequent packet uids to change.  For instance, suppose one wants 
227 * to error packets 11 and 17 on a given device.  It may be that erroring
228 * packet 11 will cause the subsequent uid stream to change and 17 may no
236 */
237class ListErrorModel : public ErrorModel
238{
277 */
278class ReceiveListErrorModel : public ErrorModel
279{
nova-log-error.po git://github.com/openstack/nova.git | Portable Object | 1,044 lines
193#, python-format
194msgid "Error from libvirt during destroy. Code=%(errcode)s Error=%(e)s"
195msgstr "Error de libvirt durante destrucción. Código=%(errcode)s Error=%(e)s"
227msgid ""
228"Error occurred during volume_snapshot_create, sending error status to Cinder."
229msgstr ""
229msgstr ""
230"Error ocurrido durante volume_snapshot_create, enviando estado de error a "
231"Cinder."
233msgid ""
234"Error occurred during volume_snapshot_delete, sending error status to Cinder."
235msgstr ""
479msgid "Failed to remove %(base_file)s, error was %(error)s"
480msgstr "No se ha podido eliminar %(base_file)s, el error era %(error)s"
481
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21