Schneespur — Open-source winter service documentation software (PWA + Admin). GPS tracking via OwnTracks, weather data, photo evidence, and legally compliant service records for winter maintenance operators. License: AGPL-3.0-or-later
11 lines
309 B
PHP
11 lines
309 B
PHP
<?php
|
|
namespace Safe\Exceptions;
|
|
|
|
class ArrayException extends \ErrorException implements SafeExceptionInterface
|
|
{
|
|
public static function createFromPhpError(): self
|
|
{
|
|
$error = error_get_last();
|
|
return new self($error['message'] ?? 'An error occurred', 0, $error['type'] ?? 1);
|
|
}
|
|
}
|