for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* {@see https://github.com/zee/ Zee Project (c)}
*/
declare(strict_types=1);
namespace Zee\Errors;
final class Error
{
private $message;
private $context;
public function __construct(string $message, array $context = [])
$this->message = $message;
$this->context = $context;
}
public function __toString(): string
return $this->getMessage();
public function getMessage(): string
return $this->message;
public function getContext(): array
return $this->context;