EntityNotFoundException

public class EntityNotFoundException extends MdsException

The EntityNotFoundException exception signals a situation in which an entity with a given id does not exist in database.

Constructors

EntityNotFoundException

public EntityNotFoundException(String entityName)

Constructs a new EntityNotFoundException with mds.error.entityNotFound as a message key.

Parameters:
  • entityName – the name of entity not found

EntityNotFoundException

public EntityNotFoundException(Long id)

Constructs a new EntityNotFoundException with mds.error.entityNotFound as a message key.

Parameters:
  • id – the id of entity not found