lms/vendor/nette/utils/src/Utils/exceptions.php
2025-12-15 12:26:23 +01:00

51 lines
760 B
PHP

<?php
/**
* This file is part of the Nette Framework (https://nette.org)
* Copyright (c) 2004 David Grudl (https://davidgrudl.com)
*/
declare(strict_types=1);
namespace Nette\Utils;
/**
* An error occurred while working with the image.
*/
class ImageException extends \Exception
{
}
/**
* The image file is invalid or in an unsupported format.
*/
class UnknownImageFileException extends ImageException
{
}
/**
* JSON encoding or decoding failed.
*/
class JsonException extends \JsonException
{
}
/**
* Regular expression pattern or execution failed.
*/
class RegexpException extends \Exception
{
}
/**
* Type validation failed. The value doesn't match the expected type constraints.
*/
class AssertionException extends \Exception
{
}