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:
  • Constructor Details

    • DuplicateRegistrationException

      public DuplicateRegistrationException()
    • DuplicateRegistrationException

      public DuplicateRegistrationException(String message)
    • DuplicateRegistrationException

      public DuplicateRegistrationException(MOScope registrationScope)
    • DuplicateRegistrationException

      public DuplicateRegistrationException(MOScope registrationScope, MOScope registeredScope)
  • Method Details

    • 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