class

KemalIdentity::Error

Inherits Exception < Reference < Object

Base class for everything this shard raises.

An error message must never contain a login, a token, or a digest. "session not found", not "session #{digest} not found". Expected authentication failures are values (Failed), not exceptions — the only deliberate exceptions on the authentication path are require! and require_fresh!, which raise so that a route guard can be one line.