Class InvalidFormatException

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

@SupportedAll public class InvalidFormatException extends PolicyException
Exception thrown if a name of an object such as policy, rule or referral has invalid format
See Also:
  • Constructor Details

    • InvalidFormatException

      public InvalidFormatException(String msg, String name, int type)
      Constructs a InvalidFormatException instance.
      Parameters:
      msg - exception message
      name - name that was in invalid format
      type - type of object that had invalid name format
    • InvalidFormatException

      public InvalidFormatException(Throwable t, String name, int type)
      Constructs a InvalidFormatException instance.
      Parameters:
      t - nested root cause exception
      name - name that was in invalid format
      type - type of object that had invalid name format
    • InvalidFormatException

      public InvalidFormatException(String rbName, String errCode, Object[] args, Throwable t, String name, int type)
      Constructs a InvalidFormatException instance.
      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 in invalid format
      type - type of object that had invalid name format
    • InvalidFormatException

      public InvalidFormatException(String rbName, String errCode, Object[] args, String name, int type)
      Constructs a InvalidFormatException instance.
      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 in invalid format
      type - type of object that had invalid name format
  • Method Details

    • getName

      public String getName()
      Gets the name of the object that encountered an invalid format.
      Returns:
      name that was in invalid format
    • 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 had invalid name format