Class DuplicateRegistrationException

  • All Implemented Interfaces:
    Serializable

    public class DuplicateRegistrationException
    extends MOException
    A DuplicateRegistrationException is thrown when a managed object registration attempt conflicts with an existing registration because their scope's overlap.
    Version:
    1.1
    Author:
    Frank Fock
    See Also:
    Serialized Form
    • Constructor Detail

      • DuplicateRegistrationException

        public DuplicateRegistrationException()
      • DuplicateRegistrationException

        public DuplicateRegistrationException​(String message)
      • DuplicateRegistrationException

        public DuplicateRegistrationException​(MOScope registrationScope)
      • DuplicateRegistrationException

        public DuplicateRegistrationException​(MOScope registrationScope,
                                              MOScope registeredScope)
    • Method Detail

      • getRegistrationScope

        public MOScope getRegistrationScope()
        Returns the scope of the failed registration attempt.
        Returns:
        a MOScope instance, typically a MOContextScope.
      • getRegisteredScope

        public MOScope getRegisteredScope()
        Returns the scope that is already registered and overlaps with the scope returned by getRegistrationScope().
        Returns:
        a MOScope instance.
        Since:
        1.1