|
I'm trying to return a detailed error to VB6 using CComCoClass::Error , but it seems I can only return an error code /or/ a message - but not both.
return Error(_T("Not connected"), __uuidof(IMyInterface), HRESULT_FROM_WIN32(ERROR_CONNECTION_INVALID))...
Started by bdonlan on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
And that brings us SetErrorInfo....
VB6 tries to be smart and interpret with CreateErrorInfo and SetErrorInfo get me an error code and an error description in VB6.
Indicates that the error code is really the HRESULT value.
|
|
Hi
I would like to back up our mysql database. We have huge records in the database. What are the errors can occur and possible while running mysqldump.? Mysql official site did not mention the specific error and error codes for mysqldump, They just commonly...
Started by Ravi on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at serverfault):
What error do you expect to happen from a simple mysqldump? There are no errors I'm aware.
|
|
Hi,
For testing purposes it would be nice to have a site that has links that align with the various HTTP error codes (or at least the main ones), that is they will produce the associated error page. For example a link that will produce a 501 etc. (I am...
Started by Greg on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Of /error and test it as http://example.com/error?sc=500 .By the way, omitting the status codeYou can to combine List of HTTP status codes with this C# code:
int code = 404; int text = "Not found"; throw new HttpException....
|
Ask your Facebook Friends
|
I have writen some code in VBA (Excel) with error handling labels. It worked fine until I recently notice the error handling code gets executed everytime, not just when an error occurs. Does anybody know why this happens? Thanks.
Here's a trivial test...
Started by Martin on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
On Error GoTo Err_Hnd ' 'Lock interface code here (hourglass, screenupdating....
It isn't intrinsically an error strRtnVal As String 'Return value variable.
Is only error handling code because you are using it as such.
|
|
Apart from error codes, error strings and logs, are there any other features which can be incorporated in the code to increase getting debug / trace information during code runtime which can help debug issues (or let us know what is going on) at runtime...
Started by Jay on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Here's an example of the code that sends a stacktrace Debugger, this code was used when....
Build without optimization, to preserve as much of the "intent" of the code as possible Build be useful in debugging crashes (again in Linux).
|
|
Some weird error cropped up suddenly outta nowhere and is preventing me from checking in my code via TortoiseSVN. I'm using a free account on myversioncontrol.com
This is on a Windows Vista system. It was working fine till earlier in the day. Any clue...
Started by Steve on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
You may need to pony up the £3.50pcm or find somewhere else (Google Code is one suggestion, though that is implemented using a pre-commit hook or the myversioncontrol people made an error and added.
|
|
I have a Java project connecting to an Ingres database and using the Spring Framework. This issue is related to the error codes list configuration.
According to Spring Framework API :
Class SQLErrorCodes: JavaBean for holding JDBC error codes for a particular...
Started by Adrian on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Extracted from the Ingres 9.3 documentation for you the SQL State Values and Generic Error Codes
Ingres 9.3 SQL Reference Guide - Appendix C: SQLSTATE Values and Generic Error Codes
The 9.3 SQLState.
|
|
I would like to handle an OracleException thrown when my network/database connection is interrupted, where can I find out what error codes I might can receive?
I guess since we are talking about a connection interruption these would be technically TNS...
Started by George Mauer on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
ORA-12154 TNS:could not resolve service name server process" ORA-12545 TNS:name lookup failure" ORA-12560 TNS:protocol adapter error"
Take a look at Oracle Database Error....
Adapter error", can actually mean many different things.
|
|
Does anyone know why:
public void foo() { System.out.println("Hello"); return; System.out.println("World!"); }
Would be reported as an "unreachable error" under Eclipse, but
public void foo() { System.out.println("Hello"); if(true) return; System.out....
Started by Uri on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
Unreachable code is an error into a compiler....
The compiler doesn't allow you to create byte code with unreachable statements.
In your first example, it is an error because the code is illegal by the definition of java.
|
|
Looking for concrete examples or links to concrete examples of such errors.
Thanks in advance.
Started by fung on
, 22 posts
by 22 people.
Answer Snippets (Read the full thread at stackoverflow):
This is the problem....
100% code coverage would imply that every line of code.
It's an estimate on how well you're test cases cover your source code base.
Code coverage doesn't mean that your code is bug free in any way.
|