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,
String name)
Creates a DuplicateMappingException using the given type and name.
|
DuplicateMappingException(String customMessage,
DuplicateMappingException.Type type,
String name)
Creates a DuplicateMappingException using the given customMessage, type and name.
|
DuplicateMappingException(String type,
String name)
Deprecated.
Use the for taking
DuplicateMappingException.Type instead. |
DuplicateMappingException(String customMessage,
String type,
String name)
Deprecated.
Use the for taking
DuplicateMappingException.Type instead. |
Modifier and Type | Method and Description |
---|---|
String |
getName() |
String |
getType() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public DuplicateMappingException(DuplicateMappingException.Type type, String name)
type
- The type of the duplicated thing.name
- The name of the duplicated thing.@Deprecated public DuplicateMappingException(String type, String name)
DuplicateMappingException.Type
instead.type
- The type of the duplicated thing.name
- The name of the duplicated thing.public DuplicateMappingException(String customMessage, DuplicateMappingException.Type type, 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(String customMessage, String type, 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-2015 Red Hat, Inc. All Rights Reserved.