com.sun.identity.policy
Class NameNotFoundException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--com.sun.identity.policy.ChainedException
|
+--com.sun.identity.policy.PolicyException
|
+--com.sun.identity.policy.NameNotFoundException
- All Implemented Interfaces:
- com.sun.identity.common.L10NMessage, java.io.Serializable
- 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:
- Serialized Form
|
Constructor Summary |
NameNotFoundException(java.lang.String msg,
java.lang.String name,
int type)
Constructor |
NameNotFoundException(java.lang.String rbName,
java.lang.String errCode,
java.lang.Object[] args,
java.lang.String name,
int type)
Constructor |
NameNotFoundException(java.lang.String rbName,
java.lang.String errCode,
java.lang.Object[] args,
java.lang.Throwable t,
java.lang.String name,
int type)
Constructor |
NameNotFoundException(java.lang.Throwable t,
java.lang.String name,
int type)
Constructor |
|
Method Summary |
java.lang.String |
getName()
Gets the name that was not found. |
int |
getObjectType()
Gets the type of object for which name was not found
The defined objects are POLICY,
RULE, ORGANIZATION,
USER_COLLECTION
and SERVICE |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, toString |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NameNotFoundException
public NameNotFoundException(java.lang.String msg,
java.lang.String name,
int type)
- Constructor
- Parameters:
msg - exception messagename - name that was not foundtype - type of object whose name was not found
NameNotFoundException
public NameNotFoundException(java.lang.String rbName,
java.lang.String errCode,
java.lang.Object[] args,
java.lang.String name,
int type)
- Constructor
- Parameters:
rbName - Resource bundle name of exception messageerrCode - id used with resource bundle to get error messageargs - any arguments for message formatting. null if no
additional arguments are necessaryname - name that was not foundtype - type of object whose name was not found
NameNotFoundException
public NameNotFoundException(java.lang.String rbName,
java.lang.String errCode,
java.lang.Object[] args,
java.lang.Throwable t,
java.lang.String name,
int type)
- Constructor
- Parameters:
rbName - Resource bundle name of exception messageerrCode - id used with resource bundle to get error messageargs - any arguments for message formatting. null if no
additional arguments are necessaryt - nested root cause exceptionname - name that was not foundtype - type of object whose name was not found
NameNotFoundException
public NameNotFoundException(java.lang.Throwable t,
java.lang.String name,
int type)
- Constructor
- Parameters:
t - nested root cause exceptionname - name that was not foundtype - type of object whose name was not found
getName
public java.lang.String getName()
- Gets the name that was not found.
- Returns:
- name that was not found.
getObjectType
public int getObjectType()
- Gets the type of object for which name was not found
The defined objects are
POLICY,
RULE, ORGANIZATION,
USER_COLLECTION
and SERVICE
- Returns:
- type of object for which name was not found
Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.