Skip to content

Commit

Permalink
#60 Added NotFound domain exception
Browse files Browse the repository at this point in the history
  • Loading branch information
vityaman committed Apr 19, 2024
1 parent fe724f1 commit 63d6b23
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ val DomainException.httpCode: HttpStatus
}

val HttpStatus.reason: String
get() =
this.reasonPhrase
get() = this.reasonPhrase

fun DomainException.toResponseEntity() =
ResponseEntity
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package ru.vityaman.lms.botalka.domain.exception

class NotFoundException(message: String) :
DomainException(message)

0 comments on commit 63d6b23

Please sign in to comment.