We're using WatiN to test our web portals. During the course of an E2E test, we'll occasionally see client-side script errors on the IE status bar. I'd like to chain a handler onto the script error event and record the error for later analysis and bug filing.
Problem is, I don't know that there's a global script error event or how to ...
I am using WSAGetLastError function to retrieve failure details when using getHostByName function. But the error code returned by the function is 0042124C is not available in the documentation. Am I receiving the error code in some other format or am I using the function in a faulty way?
Thanks.
PS. Code segment below
// DNS Hostname....
I have various classes for handling form data and querying a database. I need some advice on reducing the amount of code I write from site to site.
The following code is for handling a form posted via ajax to the server. It simply instantiates a Form class, validates the data and processes any errors:
public static string submit(Dicti...
The problem is that I want to check if the file is too large to upload so that I can display a relevant error message, but when the file is larger than upload_max_filesize in php.ini it seems to be only displaying a 0.
Why is this happening? How can I test that the file is too large to give a relevant error?
...
I used a class that converts errors to exceptions in PHP 5 and it logs the errors to a file and/or emails them to a specified account. Is there a better way to do this? There is something about this I know can be better. I am using set_error_handler.
set_error_handler("exception_error_handler");
My code does what it should in that it ...
I'm working with antlr 3.2. I have a simple grammar that consists of atoms (which are either the characters "0" or "1"), and a rule which accumulates a comma separated list of them into a list.
When I pass in "00" as input, I don't get an error, which surprises me because this should not be valid input:
C:\Users\dan\workspace\antlrtest...
Test script:
function outer
{
[cmdletbinding(supportsshouldprocess=$true)]
param($s)
process
{
$pscmdlet.shouldprocess("outer $s", "ShouldProcess") | out-null
"" | out-file "outer $s"
inner ImplicitPassthru
inner VerbosePassthru -Verbose:$Verbose
inner WhatifPassthru -Wh...
I wish to know if i can catch the unhandled exceptions thrown by another process which I started using the Process.Start(...)
I know i can catch the standered error using this link , but what I want is to catch the error that are usually caught by the Just In Time debugger of the.net environment, the window with the following words:
"An...
Hi i have a form with rails validation.
When a field have an error rails apply the fieldWithError class only on the input with a certain id.
I want to apply the class fieldWithError also to the label.
Is possible do it?
thanks
...
I am currently developing an application for an angle measurement device (goniometer).
A DataGridView component is used for configuring nominal values (and tolerances) for the measured angles. The user shall be able to enter the angles in various ways, such as 2° (for degrees) or 120' (for minutes of arc) or 7200" (for arcseconds). For t...
In Visual C++ when terminate() is called the default behavior is to call abort() which by default shows a message box and then - after OK button on the message box is pressed - terminates the application. The "shows message box" part is not very good for programs that must work without human interaction since the program just hangs until...
I have in Rails application several tables with foreign keys constraints. For example, every order belongs to a customer. There's a costumer_id column on the orders table.
When I delete a costumer with a placed order, because of database constraints, MySQL returns the error:
Mysql::Error: Cannot delete or update
a parent row: a fo...
There has already been a question posted here which is very similar. Mine is extending that question a bit more. Say you want to catch multiple types of exception but want to handle it the same way, is there a way to do something like switch case ?
switch (case)
{
case 1:
case 2:
DoSomething();
break;
case 3:
DoSomethingEls...
My application produces an internal server error, running on tomcat it prints a stacktrace with the given error. On Oracle it hides the error and post it to application.log.
Is it possible to change this setting via the deployment descriptor?
500 Internal Server Error
Servlet error: An exception occurred. The current application deplo...
I'm new to PHP so I apologize if this seems silly. I've searched around and couldn't find anything that explained specifically what I'm looking for.
Ultimately I have two goals.
In production, when an unexpected error occurs, show the user a default "oops" page.
When an expected error occurs, handle it without PHP dying.
My mental ...
If I'm loading images via the <img> tag in a dynamic text field and an IOError is thrown, what would I attach the event listener too? the text field?
I tried this...
var textField:TextField = new TextField();
textField.htmlText = "here is some text <img src='image.jpg'> and then some more";
textField.addEventListener(IOErrorEvent.IOErr...
I would like to set up an error page which will diplay a message to the user, have the error logged, and have an automatic email sent out to the website administrator in the event of an error.
Which is better to use, a cferror tag or the onError method?
...
Hi everybody,
Do you know any solution to recover from the PHP fatal error : "Allowed memory size ... exhausted"
I have a shutdown function that is called when a fatal error appear. This function create an ErrorException from it, and logs it.
The problem is : when there is no more memory available, it can't log the error (I log in Fir...
Hello, I have a question:
How could I handle the session expire on a MVC application that has JQuery Ajax method calls on certain pages. The issue is the following:
When the client reaches the session timeout, each of my controllers inherits a class that checks if the session is alive (looking up on some stuff like the site session, d...
In ColdFusion 8 or below, is the marked line in the right place?
<cftry>
<cfquery name="local.qry" datasource="myDatasource">
SELECT ID FROM TableName
WHERE ...
</cfquery>
<cfset local.result = local.qry.ID><!--- this line! --->
<cfcatch>
<cfset local.result = Variables.objDatabase.CatchError(cfcatch)>
</cfcatch>
<...