Questions tagged [error-code]

An error code is a value returned to provide context on why an error occurred. Error codes are often provided in lieu of an error message for the sake of brevity or consistency.

Error codes are often provided in contexts where providing specific error messages would be costly, too varied, or redundant. Tables of error codes are often provided with the full text of the error messages so that users can find a full explanation of the cause of the error.

Error code can be easily programmatically handled, unlike error messages, which can be unpredictable or sometime impossible to rely on (for example, when they are translated, and thus different for each language).

483 questions
-1
votes
1 answer

Unable to catch an unknown exception

I wrote myself an F# OpenGL wrapper with OpenTK and I saw that when I run my application for around 5min it will abort, throw an exception and print it to the console. The problem is that the console in visual studio immediately closes and I am…
Maik Klein
  • 13,812
  • 20
  • 88
  • 168
-1
votes
1 answer

Is my API response good enough?

I'm making an API to allow others to integrate our services into their own systems. Finding the best way to formulate a response is not easy - I've seen so many different ways of doing it. Many times it is done quite poorly and myself and others…
Levi Johansen
  • 296
  • 2
  • 15
-2
votes
2 answers

Are MySQL error codes returned by mysqli_errno() consistent?

I'm wondering if MySQL error codes returned by mysqli_errno() are consistent, or in other words, can they change in the next release of MySQL? I was doing something like this: $errNo = mysqli_errno($link); if($errNo == 1146) { //Table doesn't…
c00000fd
  • 18,074
  • 19
  • 132
  • 318
-2
votes
1 answer

PDF to image conversion with Fitz on Windows 10 64bit segmentation fault

I am compiling the following program on OSX and Windows (VM) package main import ( "fmt" fitz "github.com/gen2brain/go-fitz" ) func main() { doc, err := fitz.New("ML-XX-XX-XX.000_REV1.pdf") if err != nil { panic(err) …
amlwwalker
  • 2,866
  • 2
  • 20
  • 34
-2
votes
1 answer

MySQL Error codeS 30000 NOW

I worked on this project on another computer and everything was working fine. Once I pulled it to this computer mac, I started to get a bunch of Error code 30000 when I'm trying to run the statements. I am using NetBeans and I'm trying to run the…
0xtimur
  • 883
  • 2
  • 9
  • 13
-2
votes
2 answers

C language i get an error in my code

hello I am searching where I did the wrong step? #include #include int main(int argc, char *argv[]) { int account_on_the_bank=25; printf("how much money do you have in the banque? \n"); …
hiicham07
  • 15
  • 5
-2
votes
1 answer

MapViewOfFile failes with errorCode 6 (Invalid Handle)

Im trying to map the file to the memory and use MapViewOfFile(), but it failes with error code 6. I tried just about anything, I also read about big files being the problem, but the problem happens also with a 1kb file. my code: HANDLE hFile =…
-2
votes
1 answer

What does error code LZO_E_LOOKBEHIND_OVERRUN mean?

I am attempting to decompress some compressed data, but I'm getting an error code of LZO_E_LOOKBEHIND_OVERRUN. What does this error mean? I have checked comments in the source code and several results on Google but I can't find what it means. I am…
Mex
  • 983
  • 6
  • 15
-2
votes
5 answers

C++ error number allocation - are there any accepted standards?

Are there any conventions about which error numbers I should use in my C++ code? Do I start at 1 or should I pick a high number and go from there? An example was requested, so here it is: #define ERR_EVERYTHING_IS_WRONG 42 try { throw…
Beakie
  • 1,685
  • 2
  • 16
  • 40
-2
votes
1 answer

Spotify error message display in iPhone app

I am implementing spotify in my iPhone app using CocoaLibSpotify library. I need to show the error messages specified in the guideline https://developer.spotify.com/technologies/libspotify/guidelines-ios/. Should I need to check the error codes in…
Tinku George
  • 195
  • 2
  • 11
-3
votes
1 answer

My spam command doesn't work when the message has spaces

my message is (Hello World!) and command (/spam Hello World) And the terminal : (sorry i can't copy paste it because the my terminal can not copy this) my code : @commands.command(description="you want spam but you slow typing? use this…
-3
votes
1 answer

Why I get the error-code 50 after trying to execute system(unzip) in PHP

I tried to unzip a file with system('unzip file.zip', $return_val); I get the Error-Code 50 if I execute the code: echo $return_val. Does somebody knows why? And how to fix it?
-3
votes
1 answer

error: ‘cast’ does not name a type void setCastDescription(std::string desc) cast.description = desc; }

player.h:155:43: error: expected ‘;’ at end of member declaration void setCastDescription(std::string desc) cast.description = desc; } player.h:155:45: error: ‘cast’ does not name a type void setCastDescription(std::string desc)…
-3
votes
2 answers

error message on change password code using php

I used a script for my user to change their password when logged in and when I tested it I showed this error message Notice: Undefined index: username in /home/www/sitename/directory/changepw.php on line 8 Notice: Undefined index: pin in…
Tina
  • 1
  • 6
-3
votes
1 answer

error updating my database vb 2008

Imports System.Data Imports System.Data.OleDb Public Class frmChangePassword Public dbrs As New OleDb.OleDbCommand Public Provider As New OleDb.OleDbDataAdapter Public dbConn As New OleDb.OleDbConnection Private Sub…
Tolits
  • 1
  • 3
1 2 3
32
33