Something went wrong. Try again.
Laravel AT Protocol Client (alpha & unstable)
Something went wrong. Try again.
601 B · 22 lines
PHP
at dev
1234567891011121314151617181920212223<?php
namespace SocialDept\AtpClient\Exceptions;
class MissingScopeException extends \Exception{ public function __construct( public readonly array $required, public readonly array $granted, ?string $message = null, ) { parent::__construct($message ?? $this->buildMessage()); }
protected function buildMessage(): string { $required = implode(', ', $this->required); $granted = empty($this->granted) ? 'none' : implode(', ', $this->granted);
return "Missing required scope(s): {$required}. Granted: {$granted}."; }}