PageRenderTime 6ms queryFilters 0ms Sphinxql 3011ms GetByIds 17ms meta 0ms repositoryFilters 10ms languageFilters 10ms sourceFilters 1ms

3,992,007 results for 'ERROR repo:kgp700/siyahkernel' (6 ms)

Source

Language

Repository

error.js https://bitbucket.org/sempasha/node-jsonrpc.git | JavaScript | 139 lines
1/**
2 * @fileOverview [JSON-RPC 2.0 Ошибка]{@link http://www.jsonrpc.org/specification#error_object}
3 * @ignore
20 * @alias module:main.Error
21 * @augments Error
22 * @constructor
23 * @param {Number} code числовой код ошибки, протоколом
24 * [JSON-RPC 2.0]{@link http://www.jsonrpc.org/specification#error_object} зарезервированы некоторые коды
25 * @param {String} message текствовое сообщение, протоколом
37 * } catch (error) {
38 *     throw new jsonrpc.Error(-32700, 'Parse error');
39 * }
67            if (!(data instanceof Array) && !(data instanceof Error) && data.constructor !== Object) {
68                throw new TypeError('Invalid data, must be a structured data (Object, Array, Error) or primitive, ' +
69                    'but ' + type_data + ' given');
Error.h https://bitbucket.org/spamdaemon/xylon.git | C++ Header | 63 lines
1#ifndef _XYLON_MODEL_INSTRUCTIONS_ERROR_H
2#define _XYLON_MODEL_INSTRUCTIONS_ERROR_H
12         /**
13          * The Error instruction terminates processing.
14          */
14          */
15         class Error : public Instruction
16         {
16         {
17               Error(const Error&);
18               Error&operator=(const Error&);
21            protected:
22               Error() throws();
23
25            public:
26               ~Error() throws();
27
error.h https://github.com/kularny/android_device_motorola_omap4-common.git | C++ Header | 86 lines
35/**
36 *  \defgroup Error Error handling
37 *  Error handling macros and functions.
42#define SND_ERROR_INCOMPATIBLE_VERSION		(SND_ERROR_BEGIN+0)	/**< Kernel/library protocols are not compatible. */
43#define SND_ERROR_ALISP_NIL			(SND_ERROR_BEGIN+1)	/**< Lisp encountered an error during acall. */
44
59typedef void (*snd_lib_error_handler_t)(const char *file, int line, const char *function, int err, const char *fmt, ...) /* __attribute__ ((format (printf, 5, 6))) */;
60extern snd_lib_error_handler_t snd_lib_error;
61extern int snd_lib_error_set_handler(snd_lib_error_handler_t handler);
67#define SNDERR(args...) snd_lib_error(__FILE__, __LINE__, __FUNCTION__, 0, ##args) /**< Shows a sound error message. */
68#define SYSERR(args...) snd_lib_error(__FILE__, __LINE__, __FUNCTION__, errno, ##args) /**< Shows a system error message (related to \c errno). */
69#endif
81
82snd_local_error_handler_t snd_lib_error_set_local(snd_local_error_handler_t func);
83
user-error.hbs https://github.com/donaminos/Ghost.git | Handlebars | 55 lines
23    <main role="main" id="main">
24      <section class="error-content error-404 js-error-container">
25        <section class="error-details">
25        <section class="error-details">
26          <figure class="error-image">
27            <img
27            <img
28              class="error-ghost"
29              src="{{asset "img/404-ghost@2x.png" ghost="true"}}"
31          </figure>
32          <section class="error-message">
33            <h1 class="error-code">{{code}}</h1>
33            <h1 class="error-code">{{code}}</h1>
34            <h2 class="error-description">{{message}}</h2>
35          </section>
error.hbs https://github.com/donaminos/Ghost.git | Handlebars | 28 lines
1{{!< default}}
2<section class="error-content error-404 js-error-container">
3    <section class="error-details">
3    <section class="error-details">
4        <figure class="error-image">
5            <img class="error-ghost" src="{{asset "img/404-ghost@2x.png" ghost="true"}}" srcset="{{asset "img/404-ghost.png" ghost="true"}} 1x, {{asset "img/404-ghost@2x.png" ghost="true"}} 2x"/>
6        </figure>
7        <section class="error-message">
8            <h1 class="error-code">{{code}}</h1>
8            <h1 class="error-code">{{code}}</h1>
9            <h2 class="error-description">{{message}}</h2>
10        </section>
13{{#if stack}}
14    <section class="error-stack">
15        <h3>Stack Trace</h3>
core-asynclistener-error.simple.js https://github.com/markba/bashhistory.io.git | JavaScript | 230 lines
39var callbacksObj = {
40  error: function(domain, er) {
41    caught++;
72  console.log('expected:', expectCaught);
73  assert.equal(caught, expectCaught, 'caught all expected errors');
74  console.log('ok');
84  expectCaught++;
85  throw new Error('sync throw');
86
95  setTimeout(function() {
96    throw new Error('setTimeout - simple');
97  });
100  setImmediate(function() {
101    throw new Error('setImmediate - simple');
102  });
error.js https://github.com/matklad/breakout.git | JavaScript | 55 lines
15/**
16 * @fileoverview Provides a base class for custom Error objects such that the
17 * stack is correctly maintained.
18 *
19 * You should never need to throw goog.debug.Error(msg) directly, Error(msg) is
20 * sufficient.
37  if (Error.captureStackTrace) {
38    Error.captureStackTrace(this, goog.debug.Error);
39  } else {
49};
50goog.inherits(goog.debug.Error, Error);
51
53/** @override */
54goog.debug.Error.prototype.name = 'CustomError';
55
error.js https://github.com/zhangyuanwei/jsdoc.git | JavaScript | 39 lines
4describe('jsdoc/util/error', function() {
5    var error = require('jsdoc/util/error');
6    var handle = error.handle;
9    it('should exist', function() {
10        expect(error).toBeDefined();
11        expect(typeof error).toBe('object');
24        it('should log messages with logger.error()', function() {
25            spyOn(logger, 'error');
26            handle('test');
27
28            expect(logger.error).toHaveBeenCalled();
29        });
34
35            expect(logger.error).toHaveBeenCalledWith('Error: Oh no!');
36        });
Error.hs https://github.com/akakcolin/ajhc.git | Haskell | 101 lines
1module System.IO.Error (
2    IOError(),  userError,  mkIOError,  annotateIOError,  isAlreadyExistsError,
3    isDoesNotExistError,  isAlreadyInUseError,  isFullError,  isEOFError,
3    isDoesNotExistError,  isAlreadyInUseError,  isFullError,  isEOFError,
4    isIllegalOperation,  isPermissionError,  isUserError,  ioeGetErrorString,
5    ioeGetHandle,  ioeGetFileName,  IOErrorType(),  alreadyExistsErrorType,
5    ioeGetHandle,  ioeGetFileName,  IOErrorType(),  alreadyExistsErrorType,
6    doesNotExistErrorType,  alreadyInUseErrorType,  fullErrorType,
7    eofErrorType,  illegalOperationErrorType,  permissionErrorType,
34-- TODO(john): fix
35annotateIOError :: IOError -> String -> Maybe Handle -> Maybe FilePath -> IOError
36annotateIOError ioe _s _mh _mfp = ioe
38check :: IOErrorType -> IOError -> Bool
39check errorType ioe = ioeGetErrorType ioe == errorType
40
error.go https://github.com/jovibizstack/etcd.git | Go | 149 lines
16
17package error
18
100type Error struct {
101	ErrorCode int    `json:"errorCode"`
102	Message   string `json:"message"`
106
107func NewError(errorCode int, cause string, index uint64) *Error {
108	return &Error{
109		ErrorCode: errorCode,
110		Message:   errors[errorCode],
111		Cause:     cause,
120// Only for error interface
121func (e Error) Error() string {
122	return e.Message + " (" + e.Cause + ")"
error.go https://github.com/redaready/beego.git | Go | 331 lines
25    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
26    <title>beego application error</title>
27    <style>
69
70// render default application error page with error and stack string.
71func ShowErr(err interface{}, rw http.ResponseWriter, r *http.Request, Stack string) {
274func SimpleServerError(rw http.ResponseWriter, r *http.Request) {
275	http.Error(rw, http.StatusText(http.StatusInternalServerError), http.StatusInternalServerError)
276}
301	if _, ok := ErrorMaps["500"]; !ok {
302		ErrorMaps["500"] = InternalServerError
303	}
306// show error string as simple text message.
307// if error string is empty, show 500 error as default.
308func Exception(errcode string, w http.ResponseWriter, r *http.Request, msg string) {
error.js https://github.com/devildeveloper/usps-webtools.git | JavaScript | 52 lines
5    Examples:
6        new USPSError('Error Message');
7        new USPSError('Error Message', err);
8
9    If creating an error instance with a string, note that the stack trace will be that of where the error was initialized
10    If extending a native error (by passing it as second argument) then trace will be accurate, keys copied over, and original message & name will be copied to the 'original' attribute
10    If extending a native error (by passing it as second argument) then trace will be accurate, keys copied over, and original message & name will be copied to the 'original' attribute
11    If extending a non-native error (string or object) then the result will be similar to the first case, but the 'original' attribute will be equal to the non-native error
12
13    @param {String} msg The relevant error message
14    @param {Error|String|Object} [original] The original error being extended
15*/
31}
32USPSError.prototype.__proto__ = Error.prototype;
33
nested-types-error.bsl https://github.com/kashmervil/fsharp.git | Unknown | 19 lines
1
2nested-types-error.fs(8,8,8,27): typecheck error FS0491: The member or object constructor 'ProtectedMethod' is not accessible. Private members may only be accessed from within the declaring type. Protected members may only be accessed from an extending type and cannot be accessed from inner lambda expressions.
3
3
4nested-types-error.fs(9,13,9,32): typecheck error FS0491: The member or object constructor 'ProtectedProperty' is not accessible. Private members may only be accessed from within the declaring type. Protected members may only be accessed from an extending type and cannot be accessed from inner lambda expressions.
5
5
6nested-types-error.fs(14,8,14,27): typecheck error FS0491: The member or object constructor 'ProtectedMethod' is not accessible. Private members may only be accessed from within the declaring type. Protected members may only be accessed from an extending type and cannot be accessed from inner lambda expressions.
7
7
8nested-types-error.fs(15,13,15,32): typecheck error FS0491: The member or object constructor 'ProtectedProperty' is not accessible. Private members may only be accessed from within the declaring type. Protected members may only be accessed from an extending type and cannot be accessed from inner lambda expressions.
9
9
10nested-types-error.fs(18,13,18,55): typecheck error FS0801: This type has no accessible object constructors
11
error.h https://github.com/arisec91/polarssl.git | C++ Header | 123 lines
1/**
2 * \file error.h
3 *
27#ifndef POLARSSL_ERROR_H
28#define POLARSSL_ERROR_H
29
32/**
33 * Error code layout.
34 *
34 *
35 * Currently we try to keep all error codes within the negative space of 16
36 * bytes signed integers to support all platforms (-0x0000 - -0x8000). In
113
114#if defined(POLARSSL_ERROR_STRERROR_BC)
115void error_strerror( int errnum, char *buffer, size_t buflen );
error.c https://github.com/neerajky/wget-1.51.git | C | 402 lines
56
57/* This variable is incremented each time 'error' is called.  */
58unsigned int error_message_count;
76# define error __error
77# define error_at_line __error_at_line
78
116
117# if HAVE_STRERROR_R || defined strerror_r
118#  define __strerror_r strerror_r
118#  define __strerror_r strerror_r
119# endif /* HAVE_STRERROR_R || defined strerror_r */
120#endif  /* not _LIBC */
398# undef error_at_line
399weak_alias (__error, error)
400weak_alias (__error_at_line, error_at_line)
error.h https://github.com/otokunaga2/osv.git | C++ Header | 77 lines
28
29static inline error no_error()
30{
33
34static inline struct error make_error(int _errno)
35{
38
39static inline bool error_bad(error e)
40{
47
48static inline int error_get(error e)
49{
56
57inline static int error_to_libc(error e)
58{
1254_libgpg-error.xml https://github.com/mschlenker/lesslinux-builder.git | XML | 83 lines
2	<package 
3		name="libgpg-error"
4		version="1.18"
9			<file>                                    
10				<pkg sha1="7ba54f939da023af8f5b3e7a421a32eb742909c4">libgpg-error-1.18.tar.bz2</pkg>
11				<mirror>ftp://ftp.gnupg.org/gcrypt/libgpg-error/</mirror>
12			</file>
13			<manualcheck date="20150309" interval="180" page="ftp://ftp.gnupg.org/gcrypt/libgpg-error/" />
14			<check>
14			<check>
15				<page html="ftp://ftp.gnupg.org/gcrypt/libgpg-error/">
16					<atext linktext="libgpg-error-1.23." />
16					<atext linktext="libgpg-error-1.23." />
17					<atext linktext="libgpg-error-1.24." />
18					<atext linktext="libgpg-error-1.25." />
1254_libgpg-error.xml https://github.com/mschlenker/lesslinux-builder.git | XML | 83 lines
2	<package 
3		name="libgpg-error"
4		version="1.17"
9			<file>                                    
10				<pkg sha1="ba5858b2947e7272dd197c87bac9f32caf29b256">libgpg-error-1.17.tar.bz2</pkg>
11				<mirror>ftp://ftp.gnupg.org/gcrypt/libgpg-error/</mirror>
12			</file>
13			<manualcheck date="20141101" interval="180" page="ftp://ftp.gnupg.org/gcrypt/libgpg-error/" />
14			<check>
14			<check>
15				<page html="ftp://ftp.gnupg.org/gcrypt/libgpg-error/">
16					<atext linktext="libgpg-error-1.23." />
16					<atext linktext="libgpg-error-1.23." />
17					<atext linktext="libgpg-error-1.24." />
18					<atext linktext="libgpg-error-1.25." />
user-error.hbs https://github.com/ritenv/Ghost.git | Handlebars | 56 lines
23    <main role="main" id="main">
24      <section class="error-content error-404 js-error-container">
25        <section class="error-details">
25        <section class="error-details">
26          <figure class="error-image">
27            <img
27            <img
28              class="error-ghost"
29              src="{{asset "img/404-ghost@2x.png" ghost="true"}}"
31          </figure>
32          <section class="error-message">
33            <h1 class="error-code">{{code}}</h1>
33            <h1 class="error-code">{{code}}</h1>
34            <h2 class="error-description">{{message}}</h2>
35            <a class="error-link" href="{{@blog.url}}">Go to the front page →</a>
error.hbs https://github.com/ritenv/Ghost.git | Handlebars | 29 lines
1{{!< default}}
2<section class="error-content error-404 js-error-container">
3    <section class="error-details">
3    <section class="error-details">
4        <figure class="error-image">
5            <img class="error-ghost" src="{{asset "img/404-ghost@2x.png" ghost="true"}}" srcset="{{asset "img/404-ghost.png" ghost="true"}} 1x, {{asset "img/404-ghost@2x.png" ghost="true"}} 2x"/>
6        </figure>
7        <section class="error-message">
8            <h1 class="error-code">{{code}}</h1>
8            <h1 class="error-code">{{code}}</h1>
9            <h2 class="error-description">{{message}}</h2>
10            <a class="error-link" href="{{@blog.url}}">Go to the front page →</a>
14{{#if stack}}
15    <section class="error-stack">
16        <h3>Stack Trace</h3>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21