From 2cf63ca4bace1165d5f0385f4d0dbcce83269775 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Wed, 12 May 2004 03:33:51 +0000 Subject: add for translators. 2004-05-12 Not Zed * shell-errors.xml.h: add for translators. 2004-05-11 Not Zed * shell-errors.xml: Shell errors. * e-shell.c (e_shell_attempt_upgrade): handle exceptions better. allow the user to keep going or abort. stop as soon as something fails. Related to #53083. (attempt_upgrade): abort and quit if the subcall failed. it will display an appropriate error box. (attempt_upgrade): abort if we don't have enough space. #57290. * Evolution-Component.idl (upgradeFromVersion): remove the return code, use exceptions to indicate failure. svn path=/trunk/; revision=25869 --- shell/Evolution-Component.idl | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'shell/Evolution-Component.idl') diff --git a/shell/Evolution-Component.idl b/shell/Evolution-Component.idl index 69893387fc..f200680633 100644 --- a/shell/Evolution-Component.idl +++ b/shell/Evolution-Component.idl @@ -33,11 +33,18 @@ module Evolution { interface Component : Bonobo::Unknown { exception Failed {}; exception UnknownType {}; + /* We don't know about the old version we're upgrading from */ + exception UnsupportedVersion {}; + /* We encountered a non-recoverable, fatal error, explain why */ + exception UpgradeFailed { + string what; + string why; + }; /*** Upgrade path. ***/ - boolean upgradeFromVersion (in short major, in short minor, in short revision); - + void upgradeFromVersion (in short major, in short minor, in short revision) + raises (UnsupportedVersion, UpgradeFailed); /*** Basic functionality. ***/ -- cgit v1.2.3