issues
search
mktkhr
/
stamp-iot
MIT License
3
stars
0
forks
source link
ExceptionHandlerにExceptionの処理を共通化する
#114
Closed
mktkhr
closed
8 months ago
mktkhr
commented
1 year ago
目的
現実装では,
ResponceEntity
を用いて任意のステータスコードのレスポンスを返却しているが,キャッチできていない例外はそのままである
フロントにエラーの内容自体を返却することによるリスクを回避するために,ExceptionHandlerを実装する
期待結果
既存のException処理をExceptionHandlerに処理させる
必要に応じて任意のExceptionクラスを追加する
キャッチできていない例外も拾うことができていること
目的
ResponceEntity
を用いて任意のステータスコードのレスポンスを返却しているが,キャッチできていない例外はそのままである期待結果