axy/errors
axy/errors is a PHP 8.1+ helper for defining and organizing exception classes. Provides common exception structures, basic error classes, default messages, backtrace truncation, and global options to standardize error handling across projects.
class InvalidConfig extends Logic implements Error
The configuration does not match the expected format.
$config = [
'url' => 'http://example.com',
'method' => 'get',
'timeout' => [1, 2, 3],
];
$crawler = new Crawler($config); // Crawler config has an invalid format: "timeout must be a number"
$configName - the config name$errorMessage - the error messagegetConfigName():stringgetErrorMessage():stringHow can I help you explore Laravel packages today?