Skip to content

Commit 74eb5a3

Browse files
committed
feat: make it posible to modifie trace
1 parent a1e4353 commit 74eb5a3

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/Exceptions/BlunderErrorException.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,18 @@ public function __construct(
3939
parent::__construct($message, $code, $severity, $file, $line, $previous);
4040
}
4141
*/
42+
private array $traceLine = [];
43+
44+
public function setTracedLine(array $trace): self
45+
{
46+
$this->traceLine = ($trace ?? []);
47+
return $this;
48+
}
49+
50+
public function getTracedLine(): array
51+
{
52+
return $this->traceLine;
53+
}
4254

4355
/**
4456
* Will return the default ErrorException message

0 commit comments

Comments
 (0)