com.sun.identity.policy
Class  InvalidFormatException
java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.sun.identity.policy.ChainedException
                    |
                    +--com.sun.identity.policy.PolicyException
                          |
                          +--com.sun.identity.policy.InvalidFormatException
- All Implemented Interfaces: 
- com.sun.identity.common.L10NMessage, java.io.Serializable
- public class InvalidFormatException- extends PolicyException
Exception thrown if a name of an object such as policy, rule or 
  referral has invalid format
- See Also: 
- Serialized Form
 
| Constructor Summary | 
| InvalidFormatException(java.lang.String msg,
                       java.lang.String name,
                       int type)Constructs a
 InvalidFormatExceptioninstance. | 
| InvalidFormatException(java.lang.String rbName,
                       java.lang.String errCode,
                       java.lang.Object[] args,
                       java.lang.String name,
                       int type)Constructs a
 InvalidFormatExceptioninstance. | 
| InvalidFormatException(java.lang.String rbName,
                       java.lang.String errCode,
                       java.lang.Object[] args,
                       java.lang.Throwable t,
                       java.lang.String name,
                       int type)Constructs a
 InvalidFormatExceptioninstance. | 
| InvalidFormatException(java.lang.Throwable t,
                       java.lang.String name,
                       int type)Constructs a
 InvalidFormatExceptioninstance. | 
 
| Method Summary | 
|  java.lang.String | getName()Gets the name of the object that encountered an invalid format.
 | 
|  int | getObjectType()Gets the type of object which encountered an invalid format.
 | 
 
 
| 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 | 
 
InvalidFormatException
public InvalidFormatException(java.lang.String msg,
                              java.lang.String name,
                              int type)
- Constructs a InvalidFormatExceptioninstance.
- 
- Parameters:
- msg- exception message
- name- name that was in invalid format
- type- type of object that had invalid name format
 
InvalidFormatException
public InvalidFormatException(java.lang.Throwable t,
                              java.lang.String name,
                              int type)
- Constructs a InvalidFormatExceptioninstance.
- 
- 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(java.lang.String rbName,
                              java.lang.String errCode,
                              java.lang.Object[] args,
                              java.lang.Throwable t,
                              java.lang.String name,
                              int type)
- Constructs a InvalidFormatExceptioninstance.
- 
- 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(java.lang.String rbName,
                              java.lang.String errCode,
                              java.lang.Object[] args,
                              java.lang.String name,
                              int type)
- Constructs a InvalidFormatExceptioninstance.
- 
- 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
 
getName
public java.lang.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 an invalid format.
 The defined objects are POLICY,RULEandSERVICE
- 
- Returns:
- type of object that had invalid name format
 
Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.