I have a model that uses the low level validate_on_create method, based on a simple condition I'm adding an error message to the field, e.g
self.errors.add(:expiry_date, "is too soon") if self.expiry_date && self.expiry_date < Date.today + 1.week
When rendering the view 'new' after a failed save the field isn't picked up by error_mess...
I need to localize error messages from a compiler. As it stands, all error messages are spread throughout the source code as string literals in English. We want to translate these error messages into German. What would be the best way to approach this? Leave the string literals as-is, and map the char* to another language inside the erro...
struct Div
{
int i;
int j;
};
class A
{
public:
A();
Div& divs;
};
In my constructor definition, I have the following
A::A() : divs(NULL)
{}
I get the following error:
Error72 error C2354:
'A::divs' : initialization of reference member requires a temporary variable
...
Why does the following error occur on Line 7 of the query below?
Error: ORA-01861: literal does not match format string
Query:
01: SELECT hour
02: FROM (WITH all_hours AS
03: (SELECT TO_DATE ('2000-01-01', 'yyyy-mm-dd')
04: + NUMTODSINTERVAL (LEVEL - 1, 'hour') hour
05: FROM DUAL
06: ...
I am using a FindFile routine to search through all files in a directory. The original code was freely available from Latium Software. It runs the FindFile is a separate Thread.
It has always worked fine, and still continues to work fine. But since I upgraded from Delphi 4 to Delphi 2009, it now gives a Warning:
W1055: Published caused...
Hi all.
Is it possible to generate the HTML page normally shown for an uncaught exception in ASP.NET, using an Exception object?
I have an app that catches an exception in Global.asax -> Application_Error, and does a Server.Transfer() to our pretty general-error page. I have an #if DEBUG flag that's pulling out the Exception from Serve...
What message oriented middle ware with a Python API are out there?
What ones did you use and recommend (or not)?
...
Hey guys well I'm working on this system and it giving me sooo much trouble. I just want to quit at this point. Long story short I made a few changes to how a mySQL table works, I went from storing a comma separated list for a few different fields to storing the same data each in its own field. I then rewrote the code to work with the ne...
Hi,
I'm using the Mockito library for Java testing and getting errors in Mockito when I run my test. (I'm using the NetBeans IDE, in case that's relevant). For example, I have a class called Animal and I am trying to perform the following simple test:
@Test
public void mokito_test(){
Animal mockAnimal = mock(Animal.class);
An...
In the static void Main() of my winforms app I get the following exception:
"Unable to cast object of type
'Microsoft.VisualStudio.HostingProcess.ParkingWindow'
to type 'CSVImport.frmImport'."
This happened afte moving some functionality out to a public class.
I build to framework 3.5.
Here is the kicker: When I start the app...
I have installed a PHP application onto a shared hosting web server. I am getting a 500 Internal Server Error. I don't seem to have access to any log files so I would like the error page to temporarily give details of the error.
I know how to do this in ASP.Net but I am not that familiar with PHP.
...
What is the prefered way to raise errors (ParseError) in Parsec? I got some code inside a parser that performs a check and if the check fails a ParseError should be returned (i.e. Left ParseError when running parse).
...
I making report engine with JasperReport. Everything works fine so far but I have small miss understanding. In my code I'm trying to compile template file and return JasperReport object and if the compilation is failed then compile another file and return error message. But it does not work for some reason. Here is my code:
/**
* Gener...
BOL states that SQL Server level 10 messages are "Informational messages that return status information or report errors that are not severe."
However these errors seem severe and not informational:
2540 - The system cannot self repair this error.
2745 - Process ID %d has raised user error %d, severity %d. SQL Server is terminating th...
Hi all, I get this error on a .click() event in jQuery. I see it in Firebug. I use the latest version, 1.3.2 (min)
The click fires an $.ajax() request for a Form in my website. I asked google about this and all he knows is "%" or "[@]" as unrecognized expressions, nothing about the "#".
here is a bit of my code:
$("form#buyForm #su...
Squeak was once innovative by giving people more than a dull error message: a debugger and go figure out!
However, nowadays there's a google, and now it'd rock to copy paste the error message, which is typically served as the title of a debugger window. How can I copy and paste that error message?
...
Is there say way to universally tell php to redirect to a certain page on any fatal errors?
Say i have a site with many different files, and i want to hide problems (while still logging them) and send the user to the same error page, no matter what the error is or what page they are on.
Lets just pretend for sake of argument that i do...
I have a Model that is using DataAnnotations. Something like
public class Appointment {
[Required(ErrorMessage="Please enter your name")]
public string Name { get; set; }
[Required(ErrorMessage="Please enter your appointment date?")]
[DataType(DataType.Date, ErrorMessage="Appointment date is not a date")]
public Da...
I am using Ruby, RestfulX, and Paperclip to upload a File, using the FileReference class.
I get the response from Paperclip in the terminal that says I've successfully saved the file, but it appears Flash never gets what it needs to know the upload has been successful.
I'm getting this error if I try to upload again while the CursorMan...
A common problem I find when dealing with non-technical users when supporting technical issues is "translating" what I'm hearing to what actually is causing the problem. In our current application we do things like provide error message details that can be forwarded to our support team, however my question is:
1. Is there an approach ...