Unfortunately, that is not possible. As you said, the custom assertion
always receives a SoapException instead of the original exception.
I had the same problem when I tried to implement the ExceptionShield pattern
for the "Patterns & Practices Security guide".
Hi,
I've created a custom exception assertion.
The assertion is placed at the and of the policy assertions.
I'm trying to catch all the application exceptions within this custom
exception assertion.
I understand that I can't catch the WSE security exceptions(e.g. can't
find
the security token etc) but regarding the rest of the exceptions - I get
onlt
SoapExceptions in my custom assertion. Is it possobile to get the original
exception and not the SoapException in the custom assertion?
Re: Cpp Considered Harmful ... arraythrows an exception for you if x is out of ... In a C language, you have the option to either cross your fingers ... provide an assertion that only compiles without NDEBUG activated. ... formats the expression's value as a string.... (comp.lang.cpp)
Re: Ensuring a method is overridden ... invariants that would cause an exception anyway (such as a collection ... which is a built-in assertion you can not disable) ... is the runtime type of the class. ... has a specific technical meaning.... (comp.lang.java.programmer)
Re: Ensuring a method is overridden ... Technically, they are Exceptions, specifically RuntimeExceptions, but that doesn't prevent them from being a kind of JVM level assertion.... If invoking a method on a null pointer didn't throw an exception,... To argue that you meant it in "the English sense of the word" when you didn't say so at first is misleading. ... Please be aware that when you use a specific technical term in its specific technical context, that people will expect the technical meaning not the non-technical meaning, and to pretend otherwise only causes confusion. ... (comp.lang.java.programmer)