This is achieved thanks to ExceptionHandler. ExceptionHandler expects PartialFunction[Throwable, Route] where you define what to do for each Throwable case.
確定! 回上一頁