I'm working on an object that at some point instantiates another object. That inner object might throw an exception. I could just let that exception bubble up to whatever code is handling the parent object, which is what I want to do, following the philosophy of KISS. Or, I could do some exception handling within the parent object, and p...
Ok Ill admit I haven't done too much research on this yet, shame on me. It's almost 1 am though and i`m getting lazy to read heh.
Someone please explain the difference between java.lang.RuntimeException and java.lang.Exception? How do I decide which one to extend if I create my own exception?
(I`m C++ programmer learning Java)
THANK...
I'm trying to handle AJAX errors in a web application that uses jQuery.
I'm setting up an event handler to deal with AJAX errors like this:
$('body').ajaxError(error_handler);
However, despite the information that's passed to that handler, I'm finding it difficult to determine what sort of error occured.
The two errors I'm intereste...
What is the upper level exception that I can catch SQLAlechmy exceptions with ?
>>> from sqlalchemy import exc
>>> dir(exc)
['ArgumentError', 'CircularDependencyError', 'CompileError', 'ConcurrentModificationError', 'DBAPIError', 'DataError', 'DatabaseError', 'DisconnectionError', 'FlushError', 'IdentifierError', 'IntegrityError', 'Inte...
When checked exceptions are thrown from methods in a constructor that the constructor can't handle is it okay to catch them and throw them back out as a runtime exception if your sure the application can't handle it and will be useless without the object being constructed?
...
Right now, it just shows:
A first chance exception of type 'System.ArgumentException' occurred in Microsoft.Stubs.VsPackage.dll
Is there any way I can get it to include a partial stack trace with the exception message without having to break into the debugger?
...
When running the MSBuild scripts for a project, I'm getting the following errors:
Properties\licenses.licx(1): error LC0004: Exception occurred creating type 'Infragistics.Win.UltraWinEditors.UltraNumericEditor, Infragistics.Win.UltraWinEditors.v5.2, Version=5.2.20052.1028, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb' System.Compon...
I've searched SO for an answer to this, but haven't found one.
When an object throws an exception at the end of the constructor, is the object valid or is this one of those 'depends on the construction technique'?
Example:
struct Fraction
{
int m_numerator;
int m_denominator;
Fraction (double value,
...
While debugging my application with Delphi 2009, I sometimes get the following exception occurring:
This only happens occasionally, but after pressing OK, then my IDE and program both may freeze. If I am lucky I can sometimes do a File/SaveAll in Delphi, but sometimes I can't. Either way I am stuck and then the only thing I can do is ...
Many properties for SPContext.Current objects throws SecurityException. (Like SPContext.Current.Fields, many properties in SPContext.Current.Site (see details).
DLL Is in GAC
Using Site Owner when trying those
properties.
Maybe it has to do something with
database access? However SharePoint
site is working - I can add list
items, etc.
...
In C# how do I define my own Exceptions?
...
In ASP.NET,How can i know the Specific details about an exception (like What kind of Exception it is (FileNotFound /Arithmentc etc..) )from a General Exception class object
...
I have an Xml document that looks similar too
<Reports xmlns="">
<Report>
<ReportID>1</ReportID>
<ParameterTemplate />
</Report>
</Reports>
It fails serializing to this object
[XmlType(TypeName = "Report")]
public class Report
{
[XmlElement("ReportID")]
public int ID { get; set; }
[XmlElement("ParameterTempla...
When I add this style, it breaks my application with a StackOverflowException.
<Style TargetType="GroupBox" BasedOn="{StaticResource {x:Type GroupBox}}" >
<!-- <Setter Property="Background" Value="{DynamicResource WindowBackgroundBrush}" /> -->
</Style>
In case it matters, I'm using the ShinyBlue theme.
Any ideas what would cause thi...
In .NET, method signatures don't tell me if I have missed handling some exceptions that could be thrown by my code.
Is there some tool that can warn me, if say I am using a HashTable remove but haven't handled the ArgumentNullException? I don't want to be surprised at run time.
And does this mean that you need to know your code very wel...
The java.lang.Iterator interface has 3 methods: hasNext, next and remove. In order to implement a read-only iterator, you have to provide an implementation for 2 of those: hasNext and next.
My problem is that these methods does not declare any exceptions. So if my code inside the iteration process declares exceptions, I must enclose my ...
I have a class called "Website", and inside of that class I have the following property:
public HtmlForm RegisterForm
{
get
{
if (Forms.RegForm != null) / Forms is a custom object called HTMLForms that is a custom list collection
{
return Forms.RegForm;
}
else
{
// ...
I am writing a Java based service with WSDL for a .Net client to consume, and I thought that when I receive an invalid value from the client that I would throw an exception that my client could then catch and display in a message box or something to the user (the client is a desktop app).
I was wondering if it would be ok to use this ap...
I'm wondering what the correct way is to pass on an exception from one method to another.
I'm working on a project that is divided into Presentation (web), Business and Logic layers, and errors (e.g. SqlExceptions) need to be passed down the chain to notify the web layer when something goes wrong.
I've seen 3 basic approaches:
try ...
Made a new window application. Right-clicked Frameworks > Add Existing Frameworks. Selected Frameworks folder, then AudioToolbox.framework.
Build, and 11 crashes.
#elif defined __ppc__ || __ppc64__
#define _IntSaturate(x) ((int) (x))
#else
#error "Unknown architecture."
// To use unoptimized standard C code, remove above line.
#defi...