I have a large project in C# (.NET 2.0) which contains very large chunks of code generated by SubSonic. Is a try-catch like this causing a horrible performance hit?
for (int x = 0; x < identifiers.Count; x++)
{decimal target = 0;
try
{
target = Convert.ToDecimal(assets[x + identifiers.Coun...
Hi everyone,
I recently migrated to PHP 5.3.2, and realized that I am unable to turn off notice errors in my site now. I went to php.ini, and in these lines:
; Common Values:
; E_ALL & ~E_NOTICE (Show all errors, except for notices and coding standards warnings.)
; E_ALL & ~E_NOTICE | E_STRICT (Show all errors, except for notices...
I have built a blog using Ruby on Rails. New to both. I am implementing AJAX pretty effectively until I get to the error handling portion.
I allow for comments on posts and do this by rendering a comment partial and remote form in the /views/posts/show.html.erb page. Upon successful save of a comment the show page is updated using view...
Hi everyone,
We're working with a new codeigniter based application that are cross referencing different PHP functions forwards and backwards from various libraries, models and such.
We're running PHP5 on the server and we try to find a good way for managing errors and status reports that arises from the usage of our functions.
While ...
One of the main things I wanted to achieve in my experimental programming language was: When errors occur (Syntax, Name, Type, etc.) keep the program running, no matter how serious or devastating it is.
I know that this is probably very bad, but I just wanted something that doesn't kill itself on every error - I find it interesting what ...
I'm writing a game and I've got a console for developers to interact with JavaScript methods in the game. I have a problem though; I can't figure out how to drop JavaScript errors to the console. Is there anyway to write errors to a div or HTML element?
...
Possible Duplicate:
How do I catch a PHP Fatal Error
I have this line of PHP code:
thisFunctionDoesNotExist();
And it stops script execution with:
Fatal error: Call to undefined function
I tried using set_error_handler and it does help for warning type of errors. But not for fatal errors. As I understand it from various ...
I'm writing quite a bit of code in Prototype.js which returns null if a DOM-id wasn't found.
$("someId").show();
If someId doesn't exist, a method will be called on null, which halts the entire program, in effect disabling all JS effects after the error. I could just check for null before executing such a statement, but this is getti...
Possible Duplicate:
WPF global exception handler
Hello SO, since "good old" WinForms days, I have been writing client code similar to
static void Main (string[] args)
{
AppDomain.CurrentDomain.UnhandledException +=
CurrentDomain_UnhandledException;
System.Windows.Forms.Application.ThreadException +=
...
In one of my Selenium test cases, I try to ensure that certain pages can't be accessed. Instead, HTTP return code 403 should be given.
However, here Selenium terminates test execution with the following exception:
com.thoughtworks.selenium.SeleniumException: XHR ERROR: URL = http://user:[email protected]/admin Response_Code = 40...
Hi guys,
We're building a PHP app based on Good old MVC (codeigniter framework) and have run into trouble with a massive chained action that consists of multiple model calls, that together is a part of a big transaction to the database.
We want to be able to do a list of actions and get a status report of each one back from the functio...
I've recently encountered the error:
System.Data.SqlClient.SqlException:
The transaction log for database
'mydatabase' is full. To find out why
space in the log cannot be reused, see
the log_reuse_wait_desc column in
sys.databases
on one of my windows services. It's supposed to retry after catching an Sql Exception, wha...
I've created a custom datasource which fetches data from a web api, and I'm now looking at implementing error handling.
In the datasource, I'm calling $model->onError(). In the model, I've created the onError method, and I can access error details with $this->getDataSource()->error;
However I can't redirect or set a flash message becau...
hey guys, here's a simple scenario
NServiceBus Client/Server setup.
The "Message" is a custom Class I wrote.
The Client sends a request message. The Server receives the message, and the server does this:
Bus.Reply(new UserDataResponseMessage { ID = Guid.NewGuid(), Response = users });
Then nothing. The Client never receives a resp...
Ok, I'm allowing the uploading of files which can have multiple functions in them. I need to be able to somehow error trap the include_once so that if the function_exists already and that function is being called within the file that is uploaded, than it, either 1 sends an error message, or 2 doesn't include the file at all.
Any Ideas?...
Hi everyone,
I am really not sure if this is the right way to go, since exceptions is really a fresh subject to me. Is it possible to catch multiple exceptions (let the execution of the script continue) and then store the exceptions in a array to be able to return all exceptions caused?
By that said, it would be awesome to be able to u...
I've been working with Rails for a while now and one thing I find myself constantly doing is checking to see if some attribute or object is nil in my view code before I display it. I'm starting to wonder if this is always the best idea.
My rationale so far has been that since my application(s) rely on user input unexpected things can oc...
Hi guys I'm working with Zend framework and just hate the fact that I seem to encounter hundreds of exception errors like if I try to reference a non existant property of an object my application just dies and crashes. However I have no idea where to see these errors or how to be able to display them on screen. I've set display errors to...
Hey all,
This should be very basic, but I am a little stumped!
Here is my array:
$menu = array(
'Home',
'Stuff'=>array(
'Losta Stuff',
'Less Stuff',
'Ur moms stuff',
'FAQ'
),
'Public Works'
);
Here is my logic:
echo "<ol>\n";
foreach( (array)$menu as $header )
{
echo ' <li><b>'.$header."</b><br />\n";
e...
I am limiting file size users can upload to the site from Web.config. As explained here, it should throw a ConfigurationErrorsException if size is not accepted. I tried to catch it from the action method or controller for upload requests but no luck. Connection is resetted and I can't get it to show an error page.
...