PageRenderTime 35ms queryFilters 41ms Sphinxql 2778ms GetByIds 111ms meta 0ms repositoryFilters 27ms languageFilters 193ms sourceFilters 40ms

6,625,476 results for 'ERROR repo:technopunk2099/metasploit-framework' (35 ms)

Source

Language

Repository

raw-error.js https://github.com/zippo445/nodegit.git | JavaScript | 68 lines
24
25// Error
26exports.constructor = function(test){
29  // Test for function
30  helper.testFunction(test.equals, git.Error, 'Error');
31
32  // Ensure we get an instance of Error
33  test.ok(new git.Error() instanceof git.Error, 'Invocation returns an instance of Error');
34
41  test.equals(git.Error.returnCodes.GIT_OK, 0, 'GIT_OK should equal 0'),
42  test.equals(git.Error.returnCodes.GIT_ERROR, -1, 'GIT_ERROR should equal  -1'),
43  test.equals(git.Error.returnCodes.GIT_ENOTFOUND, -3, 'GIT_ENOTFOUND should equal  -3'),
43  test.equals(git.Error.returnCodes.GIT_ENOTFOUND, -3, 'GIT_ENOTFOUND should equal  -3'),
44  test.equals(git.Error.returnCodes.GIT_EEXISTS, -4, 'GIT_EEXISTS should equal  -4'),
45  test.equals(git.Error.returnCodes.GIT_EAMBIGUOUS, -5, 'GIT_EAMBIGUOUS should equal  -5'),
convenience-error.js https://github.com/zippo445/nodegit.git | JavaScript | 86 lines
39  var error = new git.error();
40  test.equal(error.codes.GITERR_NOMEMORY, git.raw.Error.codes.GITERR_NOMEMORY, 'GITERR_NOMEMORY code should match expected value');
41  test.equal(error.codes.GITERR_OS, git.raw.Error.codes.GITERR_OS, 'GITERR_OS code should match expected value');
41  test.equal(error.codes.GITERR_OS, git.raw.Error.codes.GITERR_OS, 'GITERR_OS code should match expected value');
42  test.equal(error.codes.GITERR_INVALID, git.raw.Error.codes.GITERR_INVALID, 'GITERR_INVALID code should match expected value');
43  test.equal(error.codes.GITERR_REFERENCE, git.raw.Error.codes.GITERR_REFERENCE, 'GITERR_REFERENCE code should match expected value');
50  test.equal(error.codes.GITERR_OBJECT, git.raw.Error.codes.GITERR_OBJECT, 'GITERR_OBJECT code should match expected value');
51  test.equal(error.codes.GITERR_NET, git.raw.Error.codes.GITERR_NET, 'GITERR_NET code should match expected value');
52  test.equal(error.codes.GITERR_TAG, git.raw.Error.codes.GITERR_TAG, 'GITERR_TAG code should match expected value');
60  test.equal(error.returnCodes.GIT_OK, git.raw.Error.returnCodes.GIT_OK, 'GIT_OK return code should match expected value');
61  test.equal(error.returnCodes.GIT_ERROR, git.raw.Error.returnCodes.GIT_ERROR, 'GIT_ERROR return code should match expected value');
62  test.equal(error.returnCodes.GIT_ENOTFOUND, git.raw.Error.returnCodes.GIT_ENOTFOUND, 'GIT_ENOTFOUND return code should match expected value');
79    repository.commit('not a proper commit sha', function(error, commit) {
80      test.notEqual(error.code, git.error.GIT_SUCCESS, 'Attempting to get commit by invalid SHA should error');
81      test.done();
error.js https://github.com/zippo445/nodegit.git | JavaScript | 63 lines
8 * @param {String} [message = 'No message'] The error description. Set from giterr_last->message.
9 * @param {Integer} [code = git.raw.Error.codes.GITERR_INVALID] The error code. Set from giterr_last->klass
10 */
19
20util.inherits(GitError, Error);
21
22/**
23 * Refer to vendor/libgit2/include/git2/errors.h for error code definitions.
24 *
52  /** 0   */ GIT_OK: git.raw.Error.returnCodes.GIT_OK,
53  /** -1  */ GIT_ERROR: git.raw.Error.returnCodes.GIT_ERROR,
54  /** -3  */ GIT_ENOTFOUND: git.raw.Error.returnCodes.GIT_ENOTFOUND,
61
62exports.error = GitError;
63
error-handling-tests.js https://github.com/twistedvisions/node-postgres.git | JavaScript | 182 lines
5  var client = helper.client();
6  client.on('error', function(err) {
7    assert.ok(false, "client should not throw query error: " + util.inspect(err));
12
13test('error handling', function(){
14  test('within a simple query', function() {
20    assert.emits(query, 'error', function(error) {
21      test('error is a psql error', function() {
22        assert.equal(error.severity, "ERROR");
51
52      test("query emits the error", function() {
53        assert.emits(query, 'error', function(err) {
127  var tid = setTimeout(function() {
128    assert(false, "When connecting to an invalid host the error event should be emitted but it has been " + delay + " and still no error event.");
129  }, delay);
error.c https://github.com/yirenjie/FreeSWITCH.git | C | 106 lines
1/*
2 * a error2str function to make sense of all the
3 * error codes we have laying ardoun
14
15ldns_lookup_table ldns_error_str[] = {
16	{ LDNS_STATUS_OK, "All OK" },
23        { LDNS_STATUS_INVALID_POINTER, "Invalid compression pointer" },
24        { LDNS_STATUS_MEM_ERR, "General memory error" },
25        { LDNS_STATUS_INTERNAL_ERR, "Internal error, this should not happen" },
25        { LDNS_STATUS_INTERNAL_ERR, "Internal error, this should not happen" },
26        { LDNS_STATUS_SSL_ERR, "Error in SSL library" },
27        { LDNS_STATUS_ERR, "General LDNS error" },
85	{ LDNS_STATUS_SYNTAX_BAD_ESCAPE, "Syntax error, bad escape sequence" },
86	{ LDNS_STATUS_SOCKET_ERROR, "Error creating socket" },
87	{ LDNS_STATUS_DNSSEC_EXISTENCE_DENIED, "Existence denied by NSEC" },
error.js https://github.com/rentzsch/javascriptmvc.git | JavaScript | 202 lines
60			var params = {error: {}}, description;
61			params.error.subject = error.subject;
62			if((description = MVC.$E('_error_text'))){error['User Description'] = description.value;}
118		});
119		if(Error && new Error().stack) e.Stack = new Error().stack;
120		if(!e.subject) e.subject = 'ApplicationError on: '+window.location.href;
142	},
143	transform_error: function(error){
144		if(typeof error == 'string'){
153				error.message = message.substring(0,error_arr.index);
154				error.backtrace = message.substring(error_arr.index+11,message.length);
155			}
183			MVC.ApplicationError.kill_event(params.event);
184			e = MVC.ApplicationError.transform_error(e);
185			
20-error-pages.t https://github.com/gitpan/Jifty.git | Perl | 60 lines
21    $mech->warnings_like(qr/Can't locate object method "non_existent_method" via package "Jifty::Web"/);
22    $mech->base_like(qr{errors/500}, "End up on error page");
23    $mech->content_like(qr/something went awry/i, "Have error header");
29    ok($mech->continuation, "Have a continuation");
30    ok($mech->continuation->response->error, "Have an error set");
31    isa_ok($mech->continuation->response->error, "HTML::Mason::Exception", "Error is a reference");
33    # Region itself gets full page wrapper if it's the only request
34    $mech->get_ok("$prefix/region-with-error", "Request region (no wrapper!) with error");
35    $mech->warnings_like(qr/Can't locate object method "non_existent_method" via package "Jifty::Web"/);
35    $mech->warnings_like(qr/Can't locate object method "non_existent_method" via package "Jifty::Web"/);
36    $mech->base_like(qr{errors/500}, "End up at error page");
37    $mech->content_like(qr/something went awry/i, "Have error header");
45    $mech->warnings_like(qr/Can't locate object method "non_existent_method" via package "Jifty::Web"/);
46    $mech->base_unlike(qr{errors/500}, "Doesn't redirect if only a region error");
47    #$mech->content_unlike(qr/something went awry/i, "Doesn't have error header");
Error.java https://github.com/ervandew/eclim.git | Java | 218 lines
24/**
25 * Represents an error to be reported to the user.
26 *
41   *
42   * @param message The error message.
43   * @param filename The file containing the error.
43   * @param filename The file containing the error.
44   * @param line The line where the error occured.
45   * @param column The column where the error occured.
46   */
47  public Error (
48      String message,
187    }
188    Error error = (Error)other;
189    boolean equal = new EqualsBuilder()
error.php https://github.com/HabariMag/habarimag-old.git | PHP | 263 lines
20	 * @param integer $code Code of the exception
21	 * @param boolean $is_error true if the exception represents an error handled by the Error class
22	 */
31	 *
32	 * Configures the Error class to handle all errors.
33	 */
35	{
36		set_error_handler( array( 'Error', 'error_handler' ) );
37		set_exception_handler( array( 'Error', 'exception_handler' ) );
86	/**
87	 * Used to handle all PHP errors after Error::handle_errors() is called.
88	 */
151
152		// throwing an Error make every error fatal!
153		//throw new Error($errstr, 0, true);
set-error-handler.txt https://github.com/c77cc/vim-devel.git | text | 203 lines
2
3  mixed set_error_handler(callback error_handler [, int error_types])~
4
23The following error types cannot be handled with a user defined function:
24E_ERROR, E_PARSE, E_CORE_ERROR, E_CORE_WARNING, E_COMPILE_ERROR,
25E_COMPILE_WARNING, and most of E_STRICT raised in the file where
77
78Error handling with |set_error_handler| and |trigger_error| The example below
79shows the handling of internal exceptions by triggering errors and handling
136  // set to the user defined error handler
137  $old_error_handler = set_error_handler("myErrorHandler");
138  
198
199ErrorException |error_reporting| |restore_error_handler| |trigger_error| error
200level constants information about the callback type
error-console-actions.c https://github.com/STRNG/gimp.git | C | 105 lines
39  { "error-console-popup", GIMP_STOCK_WARNING,
40    NC_("error-console-action", "Error Console Menu"), NULL, NULL, NULL,
41    GIMP_HELP_ERRORS_DIALOG },
44    NC_("error-console-action", "_Clear"), "",
45    NC_("error-console-action", "Clear error console"),
46    G_CALLBACK (error_console_clear_cmd_callback),
59    NC_("error-console-action", "_Save Error Log to File..."), "",
60    NC_("error-console-action", "Write all error messages to a file"),
61    FALSE, FALSE,
65    NC_("error-console-action", "Save S_election to File..."), "",
66    NC_("error-console-action", "Write the selected error messages to a file"),
67    TRUE, FALSE,
88{
89  GimpErrorConsole *console = GIMP_ERROR_CONSOLE (data);
90  gboolean          selection;
error.c https://github.com/Zadet/cgminer-gc3355.git | C | 64 lines
3
4void jsonp_error_init(json_error_t *error, const char *source)
5{
18
19void jsonp_error_set_source(json_error_t *error, const char *source)
20{
35
36void jsonp_error_set(json_error_t *error, int line, int column,
37                     size_t position, const char *msg, ...)
45
46void jsonp_error_vset(json_error_t *error, int line, int column,
47                      size_t position, const char *msg, va_list ap)
60
61    vsnprintf(error->text, JSON_ERROR_TEXT_LENGTH, msg, ap);
62    error->text[JSON_ERROR_TEXT_LENGTH - 1] = '\0';
error-handler.js https://github.com/ryanpoplin/node.git | JavaScript | 344 lines
30    }
31    log.error("not ok", "code", code)
32  }
71  var printStack = false
72  // console.error("errorHandler", er)
73  if (!npm.config.loaded) {
88  } else if (!(er instanceof Error)) {
89    log.error("weird error", er)
90    return exit(1, true)
139    log.error("", "File: "+er.file)
140    log.error("", ["Failed to parse package.json data."
141              ,"package.json must be actual JSON, not just JavaScript."
226    })
227    log.error("peerinvalid", [er.message].concat(peerErrors).join("\n"))
228    break
gpg-error.h https://bitbucket.org/hjwhang/libimobiledevice-win32.git | C++ Header | 704 lines
52
53   An error code together with an error source build up an error
54   value.  As the error value is been passed from one component to
351
352    /* The following error codes are used to map system errors.  */
353#define GPG_ERR_SYSTEM_ERROR	(1 << 15)
619
620/* Retrieve the error code for the system error ERR.  This returns
621   GPG_ERR_UNKNOWN_ERRNO if the system error is not mapped (report
625
626/* Retrieve the system error for the error code CODE.  This returns 0
627   if CODE is not a system error code.  */
692static GPG_ERR_INLINE gpg_error_t
693gpg_error_from_syserror (void)
694{
error.php https://bitbucket.org/trujka/codegrounds.git | PHP | 307 lines
34				static::$count++;
35				\Error::show_php_error(new \ErrorException($this->message, $this->code, 0, $this->file, $this->line));
36			}
42			static::$count++;
43			\Error::notice('Error throttling threshold was reached, no more full error reports are shown.', true);
44		}
69
70	public static $fatal_levels = array(E_PARSE, E_ERROR, E_USER_ERROR, E_COMPILE_ERROR);
71
86			$severity = static::$levels[$last_error['type']];
87			logger(\Fuel::L_ERROR, $severity.' - '.$last_error['message'].' in '.$last_error['file'].' on line '.$last_error['line']);
88
88
89			$error = new \ErrorException($last_error['message'], $last_error['type'], 0, $last_error['file'], $last_error['line']);
90			if (\Fuel::$env != \Fuel::PRODUCTION)
class-wp-error.php https://bitbucket.org/acipriani/madeinapulia.com | PHP | 277 lines
4 *
5 * Contains the WP_Error class and the is_wp_error() function.
6 *
12 *
13 * Container for checking for WordPress errors and error messages. Return
14 * WP_Error and use {@link is_wp_error()} to check if this class is returned.
152	/**
153	 * Retrieve all error messages or error messages matching code.
154	 *
231	 *
232	 * The error code can only contain one error data.
233	 *
269 * @param mixed $thing Check if unknown variable is a WP_Error object.
270 * @return bool True, if WP_Error. False, if not WP_Error.
271 */
class-wp-error.php https://bitbucket.org/Thane2376/death-edge.ru.git | PHP | 262 lines
4 *
5 * Contains the WP_Error class and the is_wp_error() function.
6 *
12 *
13 * Container for checking for WordPress errors and error messages. Return
14 * WP_Error and use {@link is_wp_error()} to check if this class is returned.
196	/**
197	 * Retrieve error data for error code.
198	 *
231	 *
232	 * The error code can only contain one error data.
233	 *
254 * @param mixed $thing Check if unknown variable is a WP_Error object.
255 * @return bool True, if WP_Error. False, if not WP_Error.
256 */
error.c https://github.com/kularny/android_device_motorola_omap4-common.git | C | 180 lines
70
71static TLS_PFX snd_local_error_handler_t local_error = NULL;
72
77 */
78snd_local_error_handler_t snd_lib_error_set_local(snd_local_error_handler_t func)
79{
119 */
120snd_lib_error_handler_t snd_lib_error = snd_lib_error_default;
121
128 */
129int snd_lib_error_set_handler(snd_lib_error_handler_t handler)
130{
132#ifndef NDEBUG
133	if (snd_lib_error != snd_lib_error_default)
134		snd_err_msg = snd_lib_error;
error.js https://github.com/markba/bashhistory.io.git | JavaScript | 209 lines
19 * used by both the HTTP instrumentation, which uses HTTP status codes to
20 * determine whether a transaction is in error, and the domain-based error
21 * handler, which traps actual instances of Error, try to set sensible
25 *                                       coming out of the instrumentation.
26 * @param {Error}       exception        Something trapped by an error listener.
27 * @param {object}      customParameters Any custom parameters associated with
122  if (!transaction) throw new Error("Error collector got a blank transaction.");
123  if (!metrics) throw new Error("Error collector requires metrics to count errors.");
124
184    var error = createError(transaction, exception, customParameters);
185    logger.debug({error : error}, "Error to be sent to collector:");
186    this.errors.push(error);
202
203  var len = Math.min(errors.length, MAX_ERRORS - this.errors.length);
204  logger.warn("Merging %s (of %s) errors for next delivery.", len, errors.length);
class-wp-error.php https://github.com/davodey/WordPress.git | PHP | 255 lines
4 *
5 * Contains the WP_Error class and the is_wp_error() function.
6 *
12 *
13 * Container for checking for WordPress errors and error messages. Return
14 * WP_Error and use {@link is_wp_error()} to check if this class is returned.
189	/**
190	 * Retrieve error data for error code.
191	 *
224	 *
225	 * The error code can only contain one error data.
226	 *
247 * @param mixed $thing Check if unknown variable is a WP_Error object.
248 * @return bool True, if WP_Error. False, if not WP_Error.
249 */
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21