public class EntityAlreadyExistsException extends Exception
Constructor and Description |
---|
EntityAlreadyExistsException()
Exception constructor.
|
EntityAlreadyExistsException(Class<?> type)
Exception constructor.
|
EntityAlreadyExistsException(T entity)
Exception constructor.
|
EntityAlreadyExistsException(T entity,
Class<?> type)
Exception constructor.
|
Modifier and Type | Method and Description |
---|---|
io.vavr.control.Option<String> |
getEntity()
Get the contained entity.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public EntityAlreadyExistsException()
public EntityAlreadyExistsException(@Nonnull Class<?> type)
type
- The type of the entity which already exists.public EntityAlreadyExistsException(@Nonnull T entity)
T
- The generic type of the entity.entity
- The actual entity that already exists.Copyright © 2020 SAP SE. All rights reserved.