Re: Exception
- From: "Scott M." <s-mar@xxxxxxxxxxxxx>
- Date: Thu, 30 Jul 2009 16:51:25 -0400
Well, by definition, an exception contains information about the environment
that it was thrown in, but if you catch the original exception that it's
module and line number won't be passed to the client. Only the module and
line of the module that caught the exception and then triggered a new one.
-Scott
"Pablo Noble" <pnoble03@xxxxxxxxxxx> wrote in message
news:ux5C6gREKHA.4432@xxxxxxxxxxxxxxxxxxxxxxx
Hi Scott, thanks for your reply.
But i did that, but when my client catch the exception, he can see the
clase name and the line where the exception was. I wan´t that he can see
that info.
Is it possible ? Can you send me any example on how to encapsule that info
and the client can´t see that info ?
Really, thanks a lot.
"Scott M." <s-mar@xxxxxxxxxxxxx> escribió en el mensaje
news:uquQrbKEKHA.1340@xxxxxxxxxxxxxxxxxxxxxxx
Catch the exception at the web service and then throw your own custom
exception to the client that is populated with whatever information you
want in it.
"Pablo Noble" <pnoble03@xxxxxxxxxxx> wrote in message
news:eusYc2HEKHA.2832@xxxxxxxxxxxxxxxxxxxxxxx
Hi, my question is:
Is ts possible to hide some information when y throw a soapexception
from my web service to my client ? for example, i don´t like the client
see the class and line where the error was ?
thanks in advance
.
- References:
- Exception
- From: Pablo Noble
- Re: Exception
- From: Scott M.
- Re: Exception
- From: Pablo Noble
- Exception
- Prev by Date: Cannot add to list of known types, another type with same contract
- Next by Date: Howto refresh WCF SSL configuration when certificate is renewed
- Previous by thread: Re: Exception
- Next by thread: *** REST, large POST, and "Server Error" (for gurus only)
- Index(es):
Relevant Pages
|