# com.bea.netuix.application.exception
DuplicateDefinitionException Class

public class DuplicateDefinitionException
extends `NetuixException`

This exception is thrown when disassembling a portal from a .portal template, and a book or page in the .portal file has the same definition label as a book or page in the database. The request should be resubmitted with a `disassembler action` to keep what is in the database or replace it with what is in the .portal file. It is typically recommended that when in `development mode` the developer may want to accept what is in the .portal file. However, when in `production mode` the admin should probably accept what is in the database, as all customizations would be lost otherwise.

Related Topics

``CustomizationContext``

Hierarchy
  `Object`
  `Throwable`
  `Exception`
  `NetuixException`
  `DuplicateDefinitionException`

All Implemented Interfaces
  `Serializable`

## Constructor Summary

DuplicateDefinitionException() Constructs a `DuplicateDefinitionException` with no specified detail message.
DuplicateDefinitionException(`String` s, `Throwable` cause) Constructs a `DuplicateDefinitionException` with the specified detail message and causal exception.
DuplicateDefinitionException(`String` s) Constructs a `DuplicateDefinitionException` with the specified detail message.
DuplicateDefinitionException(`Throwable` cause) Constructs a `DuplicateDefinitionException` with the specified causal exception.

## Method Summary

Methods from `java.lang.`Throwable``
`fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

Methods from class `java.lang.`Object``
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

## Constructor Detail

### DuplicateDefinitionException

    public DuplicateDefinitionException()

  Constructs a `DuplicateDefinitionException` with no specified detail message.

### DuplicateDefinitionException

    public DuplicateDefinitionException(String s,
                                        Throwable cause)

  Constructs a `DuplicateDefinitionException` with the specified detail message and causal exception.

### DuplicateDefinitionException

    public DuplicateDefinitionException(String s)

  Constructs a `DuplicateDefinitionException` with the specified detail message.

### DuplicateDefinitionException

    public DuplicateDefinitionException(Throwable cause)

  Constructs a `DuplicateDefinitionException` with the specified causal exception.