Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Alba María Álvarez
/
AppRecetas
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
569aacef
authored
Aug 06, 2025
by
Alba María Álvarez
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
style(user/application): cambio en el mensaje de error
parent
da96b901
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
src/main/java/com/example/apprecetas/user/application/impl/DeleteUserUseCaseImpl.java
src/main/java/com/example/apprecetas/user/application/impl/DeleteUserUseCaseImpl.java
View file @
569aacef
...
@@ -18,7 +18,7 @@ public class DeleteUserUseCaseImpl implements DeleteUserUseCase {
...
@@ -18,7 +18,7 @@ public class DeleteUserUseCaseImpl implements DeleteUserUseCase {
@Override
@Override
public
void
deleteById
(
String
id
)
{
public
void
deleteById
(
String
id
)
{
readUserRepository
.
readById
(
id
)
readUserRepository
.
readById
(
id
)
.
orElseThrow
(()
->
new
EntityNotFoundException
(
"
El usuario con id "
+
id
+
" no existe.
"
));
.
orElseThrow
(()
->
new
EntityNotFoundException
(
"
Usuario con id "
+
id
+
" no encontrado
"
));
deleteUserRepository
.
deleteById
(
id
);
deleteUserRepository
.
deleteById
(
id
);
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment