Commit 20f71e29 authored by Ghitha Dinan's avatar Ghitha Dinan

handle internal server error

parent 6c04f54f
...@@ -88,7 +88,7 @@ class CustomExceptionHandler : ResponseEntityExceptionHandler() { ...@@ -88,7 +88,7 @@ class CustomExceptionHandler : ResponseEntityExceptionHandler() {
var status = HttpStatus.INTERNAL_SERVER_ERROR var status = HttpStatus.INTERNAL_SERVER_ERROR
if (ex is BaseException) { if (ex is BaseException) {
response.message = ex.message response.message = "Terjadi kesalahan sistem. Silahkan ulangi beberapa saat lagi"
ex.data?.let { ex.data?.let {
response.data = it response.data = it
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment