Add minimum artwork dimensions

This commit is contained in:
Alex Cabal 2024-01-08 13:48:56 -06:00
parent 3d85a6d936
commit 5b6a334dd0
4 changed files with 21 additions and 2 deletions

View file

@ -0,0 +1,11 @@
<?
namespace Exceptions;
class ArtworkImageDimensionsTooSmallException extends AppException{
protected $message;
// This has to be initialized in a constructor because we use the number_format() function.
public function __construct(){
$this->message = 'Image dimensions are too small. The minimum image size is ' . number_format(COVER_ARTWORK_IMAGE_MINIMUM_WIDTH) . ' × ' . number_format(COVER_ARTWORK_IMAGE_MINIMUM_HEIGHT) . '.';
}
}