Java Code Examples for javax.persistence.EntityNotFoundException#getMessage()

The following examples show how to use javax.persistence.EntityNotFoundException#getMessage() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AffectedLibraryRepositoryImpl.java    From steady with Apache License 2.0 5 votes vote down vote up
private AffectedLibrary updateNestedLib(@NotNull AffectedLibrary _aff_lib) {
	final Library provided_lib = _aff_lib.getLib();
	Library managed_lib = null;
	if(provided_lib!=null) {
		try {
			managed_lib = LibraryRepository.FILTER.findOne(this.libRepository.findByDigest(provided_lib.getDigest()));

		} catch (EntityNotFoundException e) {
			throw new PersistenceException("Error while saving lib " + provided_lib + ": " + e.getMessage());
		}
		_aff_lib.setLib(managed_lib);
	}
	return _aff_lib;
}
 
Example 2
Source File: JpaObjectRetrievalFailureException.java    From spring-analysis-note with MIT License 4 votes vote down vote up
public JpaObjectRetrievalFailureException(EntityNotFoundException ex) {
	super(ex.getMessage(), ex);
}
 
Example 3
Source File: JpaObjectRetrievalFailureException.java    From java-technology-stack with MIT License 4 votes vote down vote up
public JpaObjectRetrievalFailureException(EntityNotFoundException ex) {
	super(ex.getMessage(), ex);
}
 
Example 4
Source File: EntityNotFoundExceptionMapper.java    From syndesis with Apache License 2.0 4 votes vote down vote up
@Override
protected String developerMessage(final EntityNotFoundException exception) {
    return "Entity Not Found Exception " + exception.getMessage();
}
 
Example 5
Source File: JpaObjectRetrievalFailureException.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
public JpaObjectRetrievalFailureException(EntityNotFoundException ex) {
	super(ex.getMessage(), ex);
}
 
Example 6
Source File: JpaObjectRetrievalFailureException.java    From spring4-understanding with Apache License 2.0 4 votes vote down vote up
public JpaObjectRetrievalFailureException(EntityNotFoundException ex) {
	super(ex.getMessage(), ex);
}