Exceptions and Errors are better Files structure is better New ComponentContext.ts New DataTable.tsx tables.ts Massive components refactoring New Group.java New LoggingRequestFilter.java LoggingSessionListener.java New NotificationStore.ts SysInfoStore.ts New reactiveValue.ts ReactiveControls.tsx New dependencies And much more
15 lines
464 B
Java
15 lines
464 B
Java
package ru.tubryansk.tdms.exception;
|
||
|
||
import ru.tubryansk.tdms.controller.payload.ErrorResponse;
|
||
|
||
public class NotFoundException extends BusinessException {
|
||
public NotFoundException(Class<?> entityClass, Object id) {
|
||
super(entityClass.getSimpleName() + " с идентификатором " + id + " не наеден");
|
||
}
|
||
|
||
@Override
|
||
public ErrorResponse.ErrorCode getErrorCode() {
|
||
return ErrorResponse.ErrorCode.NOT_FOUND;
|
||
}
|
||
}
|