From 275d0bbf555c8917be82ce4cc21eb4cabb00f4c5 Mon Sep 17 00:00:00 2001 From: Andrew Branson Date: Fri, 3 Oct 2014 17:30:41 +0200 Subject: Huge exception overhaul: Merged ClusterStorageException with PersistencyException. Replaced MembershipException with InvalidCollectionModification CORBA Exception. Made all predef steps throw more accurate exceptions when they go wrong, and let more exceptions bubble through from underneath. --- src/main/idl/CommonExceptions.idl | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) (limited to 'src/main/idl/CommonExceptions.idl') diff --git a/src/main/idl/CommonExceptions.idl b/src/main/idl/CommonExceptions.idl index 176b4a9..d5abb1d 100644 --- a/src/main/idl/CommonExceptions.idl +++ b/src/main/idl/CommonExceptions.idl @@ -34,12 +34,12 @@ module common { /************************************************************************** - * Thrown when the directory couldn't be modified during Entity creation, or - * Role management + * Thrown when the process isn't privileged enough to make the requested + * change, either because it is a client process, or its management objects + * are incorrect. **************************************************************************/ - exception CannotManageException + exception CannotManage { - string mDescription; }; @@ -49,18 +49,24 @@ module common * Most commonly occurs when the Activity is in a different state than the * caller has assumed. **************************************************************************/ - exception InvalidTransitionException + exception InvalidTransition + { + }; + + /************************************************************************** + * The modification to the collection could not be performed, due to rules + * within the collection itself. + **************************************************************************/ + exception InvalidCollectionModification { - string mDescription; }; /************************************************************************** * Either the supplied data, or the relevant description, was invalid. **************************************************************************/ - exception InvalidDataException + exception InvalidData { - string mDescription; }; @@ -69,16 +75,14 @@ module common **************************************************************************/ exception AccessRightsException { - string mDescription; }; /************************************************************************** * The requested object was not found **************************************************************************/ - exception ObjectNotFoundException + exception ObjectNotFound { - string mDescription; }; @@ -87,15 +91,13 @@ module common **************************************************************************/ exception PersistencyException { - string mDescription; }; /************************************************************************** * The object already exists. **************************************************************************/ - exception ObjectAlreadyExistsException + exception ObjectAlreadyExists { - string mDescription; }; @@ -104,7 +106,6 @@ module common **************************************************************************/ exception ObjectCannotBeUpdated { - string mDescription; }; }; //end of module common -- cgit v1.2.3