Class NameAlreadyExistsException

All Implemented Interfaces:
com.sun.identity.shared.locale.L10NMessage, Serializable

@SupportedAll public class NameAlreadyExistsException extends PolicyException
Exception thrown if a name of an object such as policy, rule or referral already exists (used by another object of the same type)
See Also:
  • Constructor Details

    • NameAlreadyExistsException

      public NameAlreadyExistsException(String msg, String name, int type)
      Constructs a NameAlreadyExistsException instance.
      Parameters:
      msg - exception message
      name - name that already exists
      type - type of object whose name already exist
    • NameAlreadyExistsException

      public NameAlreadyExistsException(String rbName, String errorCode, Object[] args, String name, int type)
      Constructs a NameAlreadyExistsException instance. With localized error message
      Parameters:
      rbName - Resource bundle name
      errorCode - error code to use access the resource bundle
      args - parameters for message formatting
      name - name that already exists
      type - type of object whose name already exist
    • NameAlreadyExistsException

      public NameAlreadyExistsException(String rbName, String errorCode, Object[] args, Throwable t, String name, int type)
      Constructs a NameAlreadyExistsException instance. With localized error message
      Parameters:
      rbName - Resource bundle name
      errorCode - error code to use access the resource bundle
      args - parameters for message formatting
      t - nested root cause exception
      name - name that already exists
      type - type of object whose name already exist
    • NameAlreadyExistsException

      public NameAlreadyExistsException(Throwable t, String name, int type)
      Constructs a NameAlreadyExistsException instance.
      Parameters:
      t - nested root cause exception
      name - name that already exists
      type - type of object whose name already exist
  • Method Details

    • getName

      public String getName()
      Gets the name that already exists.
      Returns:
      name that already exists
    • getObjectType

      public int getObjectType()
      Gets the type of object which encountered the invalid name. The defined objects are POLICY, RULE, ORGANIZATION, USER_COLLECTION RESPONSE_PROVIDER_COLLECTION CONDITION_COLLECTION REFERRAL_COLLECTION REFERRAL_TYPE SUBJECT_TYPE and SERVICE
      Returns:
      type of object that already exists