[Mono-bugs] [Bug 470872] New: Exceptions are indistinguishable, should throw ZeroconfException
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Jan 29 23:40:56 EST 2009
https://bugzilla.novell.com/show_bug.cgi?id=470872
Summary: Exceptions are indistinguishable, should throw
ZeroconfException
Classification: Mono
Product: Mono: Class Libraries
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: Enhancement
Priority: P5 - None
Component: Mono.Zeroconf
AssignedTo: abockover at novell.com
ReportedBy: code at defx.de
QAContact: mono-bugs at lists.ximian.com
Found By: ---
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; de; rv:1.9.0.5)
Gecko/2008120122 Firefox/3.0.5 (.NET CLR 3.5.30729) Ubiquity/0.1.5
FirePHP/0.2.1
Mono.Zeroconf throws exceptions if things go wrong, i.e. if Bonjour isn't
running, etc. The problem is that the exceptions thrown are simply "new
Exception()"s, making it quite hard up the stack to determine what actually
happened.
The solution would be to throw a specialized ZeroconfException, or even better,
ZeroconfInitializationException in this case.
Reproducible: Always
Steps to Reproduce:
1. Disable zeroconf provider
2. Start mzclient and browse
Actual Results:
throw new Exception("No Zeroconf providers could be found or initialized.
Necessary daemon may not be running.");
was triggered in ProviderFactory.cs:114
Expected Results:
throw new ZeroconfInitializationException("No Zeroconf providers could be found
or initialized. Necessary daemon may not be running.");
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list