VenAuthException
class
Vendidit\AuthServer\Exceptions\VenAuthExceptionSource:src/Exceptions/VenAuthException.php
Base for every exception this package throws.
Carries:
- $code (HTTP status when applicable; 0 for local errors)
- $serverCode (the auth-server’s “code” envelope field, e.g. TOKEN_EXPIRED)
- $details (parsed body envelope; never assume keys)
Never put the server’s HTTP body verbatim into Exception::$message — many apps log/display message directly. The server’s message is for engineers; the human-readable message lives in $details when present.
Methods
getDetails()
@var array<string,mixed> */ protected array $details = [];
protected ?string $serverCode = null;
public function getServerCode(): ?string{ return $this->serverCode;}
/** @return array<string,mixed>