Hello,
for some reason I'm experiencing the Operational Error with "can't rollback" message when I attempt to roll back my transaction in the following context:
try:
cursors[instance].execute("lock revision, app, timeout IN SHARE MODE")
cursors[instance].execute("insert into app (type, active, active_revision, contents, z) valu...
I have the problem described here:
http://gcc.gnu.org/wiki/Visibility
Exception class exported from shared library cannot be caught when used outside of the library, and the program terminates. I added __attribute__((visibility("default"))) to the class declaration:
class __attribute__((visibility("default"))) MyException
{
...
...
Hi, I'd like to print a simple table in my page with 3 columns, building name, tags and architecture style. If I try to retrieve the list of building names and arch. styles there is no problem:
SELECT buildings.name, arch_styles.style_name
FROM buildings
INNER JOIN buildings_arch_styles
ON buildings.id = buildings_arch_styles.building_i...
I have seen the following exception case several times
public SomeClass(IEnumerable<T> someValues)
{
if (null == someValues)
{
throw new ArgumentNullException("someValues");
}
int counter = 0;
foreach (T value in someValues)
{
if (null == value)
...
hello,
i've the following code for button creation and on action of button , i'm calling buildUI method
CGRect cgRct = CGRectMake(10 ,30 ,400, 320); //define size and position of view
subMainView_G_obj = [[UIView alloc] initWithFrame:cgRct]; //initilize the view
subMainView_G_obj.autoresizesSubviews = YES;
//set view property ov ...
Hi,
I'm trying to create a mock HttpContextBase for unit test.
var fakePrinciple = new GenericPrincipal(
new GenericIdentity(userId),
rolesList.ToArray());
var mockHttpContext = new Mock<HttpContextBase>();
mockHttpContext.Setup(t => t.User).Returns(fakePrinciple);
HttpContextBase mockedContext = mock...
Since a couple of weeks the Visual Studio (2008 9.0.30729.1 SP) Exception Assistant has stopt appearing while debugging using the C# IDE. Instead the old ugly and useless debug dialog comes up:
To make sure, I've checked the following:
"Tools / Options / Debugging / General / Enable the exception assistant" is on.
"Debug / Exception...
Whenever I load ONLY the 1.3 or 1.4 library on an html page im developing on my desktop I get an error that says "setting a property that only has a getter"
I dont have any additonal code, this is coming straight from the jquery.min.js file
I also get a bazillion warnings in Firebug.
Can someone help me resolve this issue?
I can't d...
For Example:
myJSON = {
param1:val1,
param2:val2
}
vs.
myJSON = {
"param1":val1,
"param2":val2
}
Also are there any browser compatibility issues or possible exceptions that may arise out of using one or the other?
...
Why it's impossible to throw exception from __toString()?
class a
{
public function __toString()
{
throw new Exception();
}
}
$a = new a();
echo $a;
the code above produces this:
Fatal error: Method a::__toString() must not throw an exception in /var/www/localhost/htdocs/index.php on line 12
I was pointed to ht...
What is better to use for Exception output message dynamic generation String or StringBuilder or StringBuffer?
...
So I have a winform solution, deployed via clickonce.
Eveything worked fine until i added a WCF project. (see error in parsing the manifest file at end of post)
Now I notice that MSBuild compiles the service into a _PublishedWebsites dir.
I don't know what the need for this is, but I am suspecting this is the cause of the problem. This w...
Hi I have below pseudo code with throws an exception like this
throw new MyException("Bad thing happened","com.stuff.errorCode");
where MyException extends Exception class. Below is how I am handling the exception
ActionMessages errors = new ActionMessages();
if(ex.getErrorCode() != null && !"".equals(ex.getErrorCode()))
error = n...
Can anyone tell me what's wrong with my IL code here?
IL_0000: nop
IL_0001: ldarg.1
IL_0002: isinst MyXmlWriter
IL_0007: stloc.0
IL_0008: ldloc.0
IL_0009: ldarg.2
IL_000a: ldind.ref
IL_000b: unbox.any TestEnum
IL_0010: ldfld Int64 value__/FastSerializer.TestEnum
IL_0015: callvirt Void WriteValue(Int...
Could you please explain to me what the difference is between an error and an exception?
...
I have a Winodws Mobile 6.1 application running on an ARMV4I processor. Given a stack address (from unwinding an exception), I like to determine what module owns that address.
Using the ToolHelpAPI, I'm able to determine most modules using the following method:
HANDLE snapshot = ::CreateToolhelp32Snapshot( TH32CS_SNAPMODULE | TH32CS_GE...
SVector.H:
void pop_back() throw (underflow_error);
In my SVector.cpp file, should I also include the throw (underflow_error) part as well?
void pop_back() throw (underflow_error)
{
// implementation
}
OR
void pop_back()
{
// implementation
}
Thanks.
...
I am new to Java. I just read that class variables in Java have default value.
I tried the following program and was expecting to get the output as 0, which is the default value on an integer, but I get the NullPointerException.
What am I missing?
class Test{
static Integer iVar;
public static void main(String...args) {
...
I hate generating an exception for things that I can simply test with an if statement. I know that a zero length zip/jar will trigger an exception if you try to access it using the java.util.zip/java.util.jar APIs. So, it seems like there should be a smallest file that these utility APIs are capable of working with.
...
I've got a bunch of questions about how people use exceptions in Perl. I've included some background notes on exceptions, skip this if you want, but please take a moment to read the questions and respond to them.
Thanks.
Background on Perl Exceptions
Perl has a very basic built-in exception system that provides a spring-board for mor...