improved error reporting

This commit is contained in:
neikermann committed 2021-06-21 23:33:02 +02:00
1 parent 95468c609d
commit 562ff50bb0
3 files changed
+92 -44

No files matched your search

+22
View File
@@ -24,4 +24,26 @@ public function __construct()
$inv_errors = [];
$depcon_errors = [];
}
public function addError(String $error)
{
$this->error_msgs[] = $error;
}
public function addInvError(String $error)
{
$this->inv_errors[] = $error;
}
public function addDepconError(String $error)
{
$this->depcon_errors[] = $error;
}
public function overallErrorCount(): int
{
return count($this->error_msgs)
+ count($this->inv_errors)
+ count($this->depcon_errors);
}
}