# AuthException

Thrown when authentication is required but no user is logged in.

****

- Full class name: `Kirby\Exception\AuthException`
- Source: <https://github.com/getkirby/kirby/tree/5.5.3/src/Exception/AuthException.php#L15>

****

### AuthException

- [new AuthException()](https://getkirby.com/docs/reference/objects/exception/auth-exception/__construct.md)
- [$authException->__toString()](https://getkirby.com/docs/reference/objects/exception/auth-exception/__to-string.md)
- [$authException->__wakeup()](https://getkirby.com/docs/reference/objects/exception/auth-exception/__wakeup.md)
- [$authException->getCode()](https://getkirby.com/docs/reference/objects/exception/auth-exception/get-code.md)
- [$authException->getData()](https://getkirby.com/docs/reference/objects/exception/auth-exception/get-data.md)
- [$authException->getDetails()](https://getkirby.com/docs/reference/objects/exception/auth-exception/get-details.md)
- [$authException->getFile()](https://getkirby.com/docs/reference/objects/exception/auth-exception/get-file.md)
- [$authException->getFileRelative()](https://getkirby.com/docs/reference/objects/exception/auth-exception/get-file-relative.md)
- [$authException->getHttpCode()](https://getkirby.com/docs/reference/objects/exception/auth-exception/get-http-code.md)
- [$authException->getKey()](https://getkirby.com/docs/reference/objects/exception/auth-exception/get-key.md)
- [$authException->getLine()](https://getkirby.com/docs/reference/objects/exception/auth-exception/get-line.md)
- [$authException->getMessage()](https://getkirby.com/docs/reference/objects/exception/auth-exception/get-message.md)
- [$authException->getPrevious()](https://getkirby.com/docs/reference/objects/exception/auth-exception/get-previous.md)
- [$authException->getTrace()](https://getkirby.com/docs/reference/objects/exception/auth-exception/get-trace.md)
- [$authException->getTraceAsString()](https://getkirby.com/docs/reference/objects/exception/auth-exception/get-trace-as-string.md)
- [$authException->isTranslated()](https://getkirby.com/docs/reference/objects/exception/auth-exception/is-translated.md)
- [$authException->toArray()](https://getkirby.com/docs/reference/objects/exception/auth-exception/to-array.md)