public class EntityNotFoundException extends Exception
Constructor and Description |
---|
EntityNotFoundException()
Exception constructor.
|
EntityNotFoundException(Class<?> type)
Exception constructor.
|
EntityNotFoundException(T entity)
Exception constructor.
|
EntityNotFoundException(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 EntityNotFoundException()
public EntityNotFoundException(@Nonnull Class<?> type)
type
- The type of the entity which was not found.public EntityNotFoundException(@Nonnull T entity)
T
- The generic type of the entity.entity
- The actual entity that was not found.Copyright © 2020 SAP SE. All rights reserved.