public class DuplicateMappingException extends MappingException
Modifier and Type | Class and Description |
---|---|
static class |
DuplicateMappingException.Type
Enumeration of the types of things that can be duplicated.
|
Constructor and Description |
---|
DuplicateMappingException(DuplicateMappingException.Type type,
java.lang.String name)
Creates a DuplicateMappingException using the given type and name.
|
DuplicateMappingException(java.lang.String customMessage,
DuplicateMappingException.Type type,
java.lang.String name)
Creates a DuplicateMappingException using the given customMessage, type and name.
|
DuplicateMappingException(java.lang.String type,
java.lang.String name)
Deprecated.
Use the for taking
DuplicateMappingException.Type instead. |
DuplicateMappingException(java.lang.String customMessage,
java.lang.String type,
java.lang.String name)
Deprecated.
Use the for taking
DuplicateMappingException.Type instead. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName() |
java.lang.String |
getType() |
public DuplicateMappingException(DuplicateMappingException.Type type, java.lang.String name)
type
- The type of the duplicated thing.name
- The name of the duplicated thing.@Deprecated public DuplicateMappingException(java.lang.String type, java.lang.String name)
DuplicateMappingException.Type
instead.type
- The type of the duplicated thing.name
- The name of the duplicated thing.public DuplicateMappingException(java.lang.String customMessage, DuplicateMappingException.Type type, java.lang.String name)
customMessage
- A custom exception message explaining the exception conditiontype
- The type of the duplicated thing.name
- The name of the duplicated thing.@Deprecated public DuplicateMappingException(java.lang.String customMessage, java.lang.String type, java.lang.String name)
DuplicateMappingException.Type
instead.customMessage
- A custom exception message explaining the exception conditiontype
- The type of the duplicated thing.name
- The name of the duplicated thing.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.