[Mono-devel-list] Raising Finer Grained Exceptions
Jason Raneses
jason at raneses.com
Fri Oct 10 17:45:48 EDT 2003
I have a quick question regarding the manner in which exceptions are
thrown when developing for Mono vs. Microsoft .NET. I am working on
porting a number of classes that document that they will only throw a
few exception types, but upon inspecting them with .NET Reflector,
they indeed can throw more than those that are documented.
In addition, Id like to know if I am able to throw additional
exceptions as I see fit, such as InvalidArgumentException and
ArgumentOutOfRangeException, even if Microsofts code does not. I
know ideally were trying to mirror everything in a consistent
manner, however in a lot of cases, Microsofts implementation is
lacking and it is hard for the anal side of me to not write something
more robust than what theyve provided.
Thanks,
Jason
More information about the Mono-devel-list
mailing list