error-message

Form validation errors with parameters in a URL

For many of my forms, the user submits to a particular URL and if there are errors, the script redirects back to the original page with the errors in the URL. That page then reads the URL parameters and displays the errors to the user like so: http://localhost:8080/test/?signup_error_email=no_at_symbol Works great. But sometimes the...

Send email when any error occurs in CakePHP

Hi, I am using CakePHP in PHP development. I have set my debug mode to 0 in core.php file. Configure::write('debug', 1); This setting will not show any error on site. So the user/developer will not be able to see errors. Thant's why I want to make something that will send me an email with error title and error code like Warning messa...

Python set error reporting level like in PHP

Hello, How can I set error reporting and warning outputs in Python like in PHP error_reporting(E_LEVEL)? ...

PHP parse error - please point out the coding horror...

Here is the code: Class_view.php contains the class definition as an associative array: class View { private $viewArray=array(); function getViewArray() { return $this->viewArray; } function addToViewArray($key,$value){ $this->view[$key]=$value; } } In Index.php I have: $view=new View(); $view->a...

Is there a standard simple message/error reporting mechanism?

The other day, a co-worker created a simple interface to report errors/messages public interface IErrorReporter { void ReportError(string title, string message, string detail); } The goal is to keep lower-level "business logic" code free of UI such as MessageBox.Show(). My reaction is there has to be something already "out there...

Rails: best way to validate and display error messages for fields not in model

In my Rails 3 application I have a typical 'Email this to a friend' form that has yours/friend's email and name fields. Each of them must be validated and error messages must be displayed, in a fashion similar to ActiveRecord forms: <%= form_tag %> <div class="fields"> <%= label_tag :friends_name %> <%= text_field_tag ...

How to exclude a folder that is producing warnings/errors in an Eclipse project?

Okay. I'm sick of this problem. This has to have an easy fix, I'm sure of it!! I hope SO can help me to get rid of this once and for all! Question How do we get Eclipse to stop trying to process/compile all files under a particular project directory? The goal is for no errors/warnings to exist in the problems view if t...

Help: Java error message re: incompatible types

I'm writing a program for my intro to Java class. I'm getting an error message, and I can't figure out what exactly it's telling me or how to resolve the issue. This is the message: packageCost.java:17: incompatible types found : void required: java.lang.String input = System.out.print("Please enter the weight of " +...

JSF2 Messages tag for user interaction

Hi, I use the tag h:messages for displaying form validation messages (in a red error style). I was wondering if you can use that tag to display other messages as well. For example a success message (obviously in another style) or an info message. So that I can integrate such a messages tag in any page and use it to provide information t...

how to let eclipse cdt show runtime error (e.g. segmentation fault)

I develop and run C++ program in Eclipse CDT on Linux. The problem is that Eclipse CDT does't show any runtime error message (e.g. segmentation fault) in console, while I can get such error message when running program directly with command line. ...

How do you make an error in flash somehow display once it's a .swf?

The error I have is Error opening URL "http://www.website.com/something.php?query=someinvalidquery" The query isn't actually supposed to go through, but I'd like some sort of error message saying so. ...

Getting error publishing Silverlight 3 app on IIS 6 \ Windows 2003

I get the error below when I'm publishing a Silverlight 3 app on a IIS 6 \ Windows 2003 box. The app is just a vs08>file>new project>Silverlight App with the mainpage having one textblock that says "TEST". I get this error when I'm in IE only, but Firefox, Chrome just show nothing (no error and no app). The error is a bit confusing...

ASP.net IIS Error Message (Screenshot included)

I'm creating a new ASP.net website via Visual Studio. I then try to run the default.aspx page it generates, and it throws this error: I've tried deleting the affected lines as suggested by MSDN but to no avail! I am on Windows 7, with ASP.net installed If I delete all the lines I get: Any ideas? ...

Catch REFERENCE constraint exception from SQL in C#

What will be proper way to catch exception which throw SQL server when I deleting data with Reference constraint from C# code. I want to show my users message like: "I can't delete the data because is used" , rather than of showing message like this: The DELETE statement conflicted with the REFERENCE constraint ... The conflict ccurr...

twisted: unhelpful "AlreadyCalled" error

My twisted python program keeps spewing this message ever so often: Unhandled error in Deferred: Traceback (most recent call last): File "c:\python25\lib\site-packages\twisted\internet\defer.py", line 757, in gotResult _inlineCallbacks(r, g, deferred) File "c:\python25\lib\site-packages\twisted\internet\defer.py", line 747, in ...

Where are Default Validation Error Messages in Rails 3.0?

Where are the default validation error messages in Rails 3.0? What is the equivalent of ActiveRecord::Error.default_error_messages[:taken], for example? I have gotten as far as finding that ActiveModel handles the errors rather than ActiveRecord, but I can't find the errors themselves. ...

Elmah add message to error logged through call to Raise(e)

I'm a bit confused at how to add a message to an error logged programatically with ELMAH. eg: public ActionResult DoSomething(int id) { try { ... } catch (Exception e) { // I want to include the 'id' param value here, and maybe some // other stuff, but how? ErrorSignal.FromCurrentContext().Raise(e);...

error exe-bad access after executing this line

NSURL *url = [NSURL URLWithString: [NSString stringWithFormat:@"%@%@%@%@%@",[ConfigDB valueForKey:categoryURL], @"?ownerId=", 20,@"&userId=",64]]; can any one tell me wat wrong with this ...

Error: "The file '/MasterPages/MainMaster.master' does not exist." (Yes, this file does exist!)

Hi, I just got a new desktop computer with Windows 7 Pro as the operating system. I installed Visual Studio 2008 on to this new computer and tried to open a previously existing ASP.NET 3.5 solution that displayed perfectly fine on my previous computer (this previous computer used the Windows XP operating system, IIS6, and IE7 browser). ...

About Ruby error 'kEnd' ?

I'm having a lot of trouble with Ruby after coming back to it from a long break. I'm getting a lot of 'unexpected kEND' errors, and I've tracked it down to lines below. I'm not having trouble with a particular piece of code, but rather, the concept of 'unexpected kEND' . if (condition) do-one-line-thing() and # inside of a loop....