Class IllegalManagedObjectNameException

  • All Implemented Interfaces:
    Serializable, LocalizableException

    public final class IllegalManagedObjectNameException
    extends OperationsException
    Thrown when an attempt is made to create a new managed object with an illegal name.

    This exception can occur when a new managed object is given a name which is either an empty string, a string containing just white-spaces, or a string which is invalid according to the managed object's naming property (if it has one).

    See Also:
    Serialized Form
    • Constructor Detail

      • IllegalManagedObjectNameException

        public IllegalManagedObjectNameException​(String illegalName)
        Create a new illegal name exception and no naming property definition.
        Parameters:
        illegalName - The illegal managed object name.
      • IllegalManagedObjectNameException

        public IllegalManagedObjectNameException​(String illegalName,
                                                 PropertyDefinition<?> namingPropertyDefinition)
        Create a new illegal name exception and a naming property definition.
        Parameters:
        illegalName - The illegal managed object name.
        namingPropertyDefinition - The naming property definition.
    • Method Detail

      • getIllegalName

        public String getIllegalName()
        Get the illegal managed object name.
        Returns:
        Returns the illegal managed object name.
      • getNamingPropertyDefinition

        public PropertyDefinition<?> getNamingPropertyDefinition()
        Get the naming property definition if applicable.
        Returns:
        Returns naming property definition, or null if none was specified.