Merge pull request #35 from TouchInstinct/fix/not-found-resolver
Fix NotFoundExceptionResolver
This commit is contained in:
commit
6dd6be5a91
|
|
@ -11,8 +11,8 @@ import ru.touchin.exception.handler.dto.ExceptionResolverResult
|
|||
class NotFoundExceptionResolver : ExceptionResolver {
|
||||
|
||||
override fun invoke(exception: Exception): ExceptionResolverResult? {
|
||||
if (exception !is CommonNotFoundException) {
|
||||
ExceptionResolverResult.createNotFoundError(exception)
|
||||
if (exception is CommonNotFoundException) {
|
||||
return ExceptionResolverResult.createNotFoundError(exception)
|
||||
}
|
||||
|
||||
return null
|
||||
|
|
|
|||
Loading…
Reference in New Issue