linxxd

linxxd

  • NA
  • 10
  • 0

SoapException: filter message

Nov 5 2004 8:12 AM
Hello, When I throw a SoapException from my Application, the returned ErrorMessage is something like: System.Web.Services.Protocols.SoapException: invalid AccountId at blabla.myThrow(SaferpayException e) in blablaWebService.asmx.cs:line 109 at blablaMethod(string message) in blabla.asmx.cs:line 56 This ErrorMessage is very long and not clear. I also don't want the user to know in which file the exception occured. I just want them to see "invalid AccountId". Isn't that possible? I don't want to parse the message, hopefully parsing is not the only solution! Thanks, Muzi