Class NameNotFoundException

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

@SupportedAll public class NameNotFoundException extends PolicyException
Exception thrown if an object such as policy, rule or referral for the given name does not exist.
See Also:
  • Constructor Details

    • NameNotFoundException

      public NameNotFoundException(String msg, String name, int type)
      Constructor
      Parameters:
      msg - exception message
      name - name that was not found
      type - type of object whose name was not found
    • NameNotFoundException

      public NameNotFoundException(String rbName, String errCode, Object[] args, String name, int type)
      Constructor
      Parameters:
      rbName - Resource bundle name of exception message
      errCode - id used with resource bundle to get error message
      args - any arguments for message formatting. null if no additional arguments are necessary
      name - name that was not found
      type - type of object whose name was not found
    • NameNotFoundException

      public NameNotFoundException(String rbName, String errCode, Object[] args, Throwable t, String name, int type)
      Constructor
      Parameters:
      rbName - Resource bundle name of exception message
      errCode - id used with resource bundle to get error message
      args - any arguments for message formatting. null if no additional arguments are necessary
      t - nested root cause exception
      name - name that was not found
      type - type of object whose name was not found
    • NameNotFoundException

      public NameNotFoundException(Throwable t, String name, int type)
      Constructor
      Parameters:
      t - nested root cause exception
      name - name that was not found
      type - type of object whose name was not found
  • Method Details

    • getName

      public String getName()
      Gets the name that was not found.
      Returns:
      name that was not found.
    • 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 for which name was not found