After deployment of new version of our ASP.NET 2.0 application, it started to raise security exception: „System.Security.SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.“.
After quick research on internet we were ...
My question is rather simple, but I am stuck. How can I choose the desired constructor from base class?
// node.h
#ifndef NODE_H
#define NODE_H
#include <vector>
// definition of an exception-class
class WrongBoundsException
{
};
class Node
{
public:
...
Node(double, double, std::vector<double>&) throw (WrongBoun...
I have a large mathematical expression that has to be created dinamically. So, for example, once I have parsed "something" the result will be a string like: "$foo+$bar/$baz";.
So, for calculating the result of that expression I'm using the eval function... something like this:
eval("\$result = $expresion;");
echo "The result is: $resul...
Do any languages that support retry constructs in exception handling track and expose the number of times their catch/rescue (and/or try/begin) blocks have been executed in a particular run?
I find myself counting (and limiting) the number of times a code block is re-executed after an exception often enough that this would be a handy la...
hello to everyone, I have some program and everytime I run it, it throws exception and I don't know how to check what exactly it throws, so my question is, is it possible to catch exception and print it (I found rows which throws exception) thanks in advance
...
I am writing a rather large JavaScript software. I need to trace calls, log events, debug actions, while maintain performance and portability across browsers.
Webkit and Firebug both offer console object with methods like trace(), log(), error(), warning(), etc. They are great, but what do I do when the browser is IE or Opera?
Imagine ...
I have the following relationship:
// In A.java class
@OneToMany(mappedBy="a", fetch=FetchType.LAZY)
@Cascade(CascadeType.SAVE_UPDATE)
private List<B> bList;
// In B.java class
@ManyToOne(fetch=FetchType.LAZY)
@JoinColumn(name="id_a")
@Cascade(CascadeType.SAVE_UPDATE)
private A a;
I get this exception:
StaleStateException: Batch upd...
I'm wondering why .NET exceptions classes from Base Class Library has some mutable members by default
Why I can change the Source, HelpLink and values from Data, but can't change anything else like the Message?
Why throwing the exception rewrites the StackTrace making it mutable too? Is appending the stack trace information to existing...
Hi, I'm trying to publish an application via click once and I'm having this weird exception. I searched for information but doesn't find any relevant.
Does anybody does what can be happening? Do you need any other informatio?
Thank you.
PLATFORM VERSION INFO
Windows : 6.1.7600.0 (Win32NT)
Common Language Runtime ...
Edit: Not JUnit 4 available at this time.
Hi there,
I have a question about "smart" exception testing with JUnit. At this time, I do it like this:
public void testGet() {
SoundFileManager sfm = new SoundFileManager();
// Test adding a sound file and then getting it by id and name.
try {
SoundFile add...
I'm working on an rather small application (C#, winform) that is kind of front-end to MS Access database file stored on shared drive. While it is possible that drive could be down I am checking connection while loading Main Form.
I would like to know your opinions on how to deal with this problem.
I came up with ideas like:
Applicat...
In the CLR (the runtime used by C#, VB.NET, etc.) there's a way of registering a callback to be called when an unhandled exception is thrown.
Is there anything similar in Java?
I'm guessing it would presumably be some API to which you'd pass an object that implements some interface with a single method. When an exception is thrown and ...
Hi,
In .NET, when catching exceptions, should I always catch derived exceptions (so not ArgumentException but the derived types)?
Also:
If I am asked to use error codes, would this be in the constructor like so?:
throw new Exception("4000", ex);
Or a custom exception type with an errorcode property? (This may get confusing with exce...
This isn't so much a question as a pondering thought - why does NSNotificationCenter throw an exception when it's released? I'm still new to iPhone development, and thus don't know the innards of Cocoa yet, so it'd be good to understand why.
I'm assigning the defaultCenter to a variable, calling addObserver:selector:name:object and then...
It's been said in a couple places (here and here) that Python's emphasis on "it's easier to ask for forgiveness than permission" (EAFP) should be tempered with the idea that exceptions should only be called in truly exceptional cases. Consider the following, in which we're popping and pushing on a priority queue until only one element is...
How to resolve exception that thrown when session.invalidate() called in OC4J (10.1.3.5)?
10/06/22 07:46:39 ERROR: Error during SSO logout
10/06/22 07:46:39 java.lang.UnsupportedOperationException
10/06/22 07:46:39 at oracle.adf.share.DefaultContext.loadEnvironment(ADFContext.java:574)
10/06/22 07:46:39 at oracle.adf.share.A...
Hello,
I have a big and bloated software and I want to add a new GUI element to it. The GUI element was written using XAML and WPF. I created the UI element in a separate assembly, and reference it in the big software. The two projects compiled smoothly under VS2010, but when I run my application I get a TypeLoadException.
Looking into...
I'm trying to catch a login exception thrown by the class that readerAccount belongs to in the code below.
while(!readerAccount.isAuthenticated()) {
try {
readerAccount.login();
} catch(AuthenticationException e) {
cmDialog.show();
Toast.makeText(this.mCtx, "login failed", Toast.LENGTH_SHORT).show();
...
Hi!
I'm working on an application where a lot of data is inserted into an SQL database at once. I use LINQ to SQL, and have something like this as my insert operation:
foreach (var obj in objects)
{
context.InsertOnSubmit(obj);
}
context.SubmitChanges();
Here's the problem: If I get an exception (for instance, DuplicateKeyException),...
I have a web application which needs to do some checking before user is allowed to use the application. I want to throw some kind of exception that undeploys or kills the the web application if these checks fails, however I am not sure if there are any exceptions I can throw that kills the web application RuntimeException()? or if I have...