public class NameAlreadyExistsException extends PolicyException
CONDITION_COLLECTION, ORGANIZATION, POLICY, REFERRAL_COLLECTION, REFERRAL_TYPE, RESPONSE_PROVIDER_COLLECTION, RULE, SERVICE, SUBJECT_TYPE, USER_COLLECTION
Constructor and Description |
---|
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. |
Modifier and Type | Method and Description |
---|---|
String |
getName()
Gets the name that already exists.
|
int |
getObjectType()
Gets the type of object which encountered
the invalid name.
|
public NameAlreadyExistsException(String msg, String name, int type)
NameAlreadyExistsException
instance.msg
- exception messagename
- name that already existstype
- type of object whose name already existpublic NameAlreadyExistsException(String rbName, String errorCode, Object[] args, String name, int type)
NameAlreadyExistsException
instance.
With localized error messagerbName
- Resource bundle nameerrorCode
- error code to use access the resource bundleargs
- parameters for message formattingname
- name that already existstype
- type of object whose name already existpublic NameAlreadyExistsException(String rbName, String errorCode, Object[] args, Throwable t, String name, int type)
NameAlreadyExistsException
instance.
With localized error messagerbName
- Resource bundle nameerrorCode
- error code to use access the resource bundleargs
- parameters for message formattingt
- nested root cause exceptionname
- name that already existstype
- type of object whose name already existpublic NameAlreadyExistsException(Throwable t, String name, int type)
NameAlreadyExistsException
instance.t
- nested root cause exceptionname
- name that already existstype
- type of object whose name already existpublic int getObjectType()
POLICY
,
RULE
, ORGANIZATION
,
USER_COLLECTION
RESPONSE_PROVIDER_COLLECTION
CONDITION_COLLECTION
REFERRAL_COLLECTION
REFERRAL_TYPE
SUBJECT_TYPE
and SERVICE
Copyright © 2010-2016, ForgeRock All Rights Reserved.