Skip to content

Commit 14fd204

Browse files
committed
Use UnexpectedValueException as it is more specific.
1 parent 346d743 commit 14fd204

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Uri.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
*/
1717
namespace Cake\Http;
1818

19-
use Error;
2019
use Psr\Http\Message\UriInterface;
20+
use UnexpectedValueException;
2121

2222
/**
2323
* The base and webroot properties have piggybacked on the Uri for
@@ -71,7 +71,7 @@ public function __get(string $name)
7171
if ($name === 'base' || $name === 'webroot') {
7272
return $this->{$name};
7373
}
74-
throw new Error("Undefined property via __get('{$name}')");
74+
throw new UnexpectedValueException("Undefined property via __get('{$name}')");
7575
}
7676

7777
/**

0 commit comments

Comments
 (0)