Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
book-store
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Krishnakanth Balla
book-store
Commits
e59396bb
Commit
e59396bb
authored
Apr 03, 2023
by
Krishnakanth Balla
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
No changes
parent
34a54890
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
UserDto.java
src/main/java/com/nisum/bookstore/dto/UserDto.java
+14
-0
BookNotFoundException.java
...com/nisum/bookstore/exceptions/BookNotFoundException.java
+1
-0
No files found.
src/main/java/com/nisum/bookstore/dto/UserDto.java
0 → 100644
View file @
e59396bb
package
com
.
nisum
.
bookstore
.
dto
;
import
lombok.*
;
@Data
@Getter
@Setter
@Builder
public
class
UserDto
{
public
String
id
;
public
String
name
;
public
int
age
;
public
int
gender
;
}
src/main/java/com/nisum/bookstore/exceptions/BookNotFoundException.java
View file @
e59396bb
...
...
@@ -9,4 +9,5 @@ public class BookNotFoundException {
public
static
<
T
>
Mono
<
T
>
monoResponseBookNotFoundException
(
String
id
)
{
return
Mono
.
error
(
new
ResponseStatusException
(
HttpStatus
.
NOT_FOUND
,
"Book ["
+
id
+
"] not found"
));
}
}
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