Bugzilla – Bug 4295
Add exceptions as error handling mechanism
Last modified: 2008-12-18 11:12:53 UTC
Use Exception::Class for error handling. * Be able to propagate an error message to the user via either the playerUI or the webUI (javascript?) Exceptions will be defined as something like this: package Slim::Utils::Exceptions; # $Id$ use strict; use base qw(Exporter); use Exception::Class::TryCatch; # Let the callers import these automatically. our @EXPORT = qw(try catch); use Exception::Class ( 'Slim::Exceptions::Base' => { description => 'An unknown exception in SlimServer has occured.' }, 'Slim::Exceptions::Undef' => { description => 'An undef value was passed in!' },
Dean notes Alan should keep this in mind during refactoring.
This bug is being closed since it was resolved for a version which is now released! Please download the new version of SqueezeCenter (formerly SlimServer) at http://www.slimdevices.com/su_downloads.html If you are still seeing this bug, please re-open it and we will consider it for a future release.