mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
Put exception class in message
This commit is contained in:
parent
9277bd2026
commit
c92ae086f6
1 changed files with 4 additions and 1 deletions
|
|
@ -18,7 +18,10 @@ class InvalidRequestException extends Exception {
|
||||||
* @param int $code
|
* @param int $code
|
||||||
*/
|
*/
|
||||||
public function __construct($path, $code = 0) {
|
public function __construct($path, $code = 0) {
|
||||||
parent::__construct('Invalid request for ' . $path, $code);
|
$class = get_class($this);
|
||||||
|
$parts = explode('\\', $class);
|
||||||
|
$baseName = array_pop($parts);
|
||||||
|
parent::__construct('Invalid request for ' . $path . ' (' . $baseName . ')', $code);
|
||||||
$this->path = $path;
|
$this->path = $path;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue