Class LockoutExceptionMapper

java.lang.Object
io.leandev.appfuse.error.mapper.LockoutExceptionMapper
All Implemented Interfaces:
ExceptionMapper<LockoutException>

public class LockoutExceptionMapper extends Object implements ExceptionMapper<LockoutException>

登入鎖定異常映射器

LockoutException 映射為 RFC 7807 ProblemDetail。

回應範例

{
  "type": "urn:appfuse:error:account-locked",
  "title": "Account Locked",
  "status": 401,
  "detail": "Too many failed login attempts (5). Account is locked for 5 minutes.",
  "instance": "/auth/login",
  "format": "Too many failed login attempts (${0}). Account is locked for ${1} minutes.",
  "params": [5, 5]
}
  • Constructor Details

    • LockoutExceptionMapper

      public LockoutExceptionMapper()
  • Method Details