We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71cb230 commit 116302aCopy full SHA for 116302a
lib/Sabberworm/CSS/Parser.php
@@ -161,10 +161,10 @@ private function parseAtRule() {
161
}
162
$this->consume(';');
163
if ($sPrefix !== null && !is_string($sPrefix)) {
164
- throw new \Exception('Wrong namespace prefix '.$sPrefix);
+ throw new UnexpectedTokenException('Wrong namespace prefix', $sPrefix, 'custom');
165
166
if (!($mUrl instanceof CSSString || $mUrl instanceof URL)) {
167
- throw new \Exception('Wrong namespace url of invalid type '.$mUrl);
+ throw new UnexpectedTokenException('Wrong namespace url of invalid type', $mUrl, 'custom');
168
169
return new CSSNamespace($mUrl, $sPrefix);
170
} else {
0 commit comments