com.sun.identity.policy
クラス NameAlreadyExistsException

java.lang.Object
  上位を拡張 java.lang.Throwable
      上位を拡張 java.lang.Exception
          上位を拡張 com.sun.identity.policy.PolicyException
              上位を拡張 com.sun.identity.policy.NameAlreadyExistsException

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)

関連項目:
直列化された形式

フィールドの概要
 
クラス com.sun.identity.policy.PolicyException から継承されたフィールド
CONDITION_COLLECTION, ORGANIZATION, POLICY, REFERRAL_COLLECTION, REFERRAL_TYPE, RESPONSE_PROVIDER_COLLECTION, RULE, SERVICE, SUBJECT_TYPE, USER_COLLECTION
 
コンストラクタの概要
NameAlreadyExistsException(String msg, String name, int type)
          Constructs a NameAlreadyExistsException instance.
NameAlreadyExistsException(String rbName, String errorCode, Object[] args, String name, int type)
          Constructs a NameAlreadyExistsException instance.
NameAlreadyExistsException(String rbName, String errorCode, Object[] args, Throwable t, String name, int type)
          Constructs a NameAlreadyExistsException instance.
NameAlreadyExistsException(Throwable t, String name, int type)
          Constructs a NameAlreadyExistsException instance.
 
メソッドの概要
 String getName()
          Gets the name that already exists.
 int getObjectType()
          Gets the type of object which encountered the invalid name.
 

コンストラクタの詳細

NameAlreadyExistsException

public NameAlreadyExistsException(String msg,
                                  String name,
                                  int type)
Constructs a NameAlreadyExistsException instance.

パラメータ:
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

パラメータ:
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

パラメータ:
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.

パラメータ:
t - nested root cause exception
name - name that already exists
type - type of object whose name already exist
メソッドの詳細

getName

public String getName()
Gets the name that already exists.

戻り値:
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

戻り値:
type of object that already exists