forked from leftypol/leftypol
MediaException.php: add
This commit is contained in:
parent
130d250b7b
commit
c979e3b831
1 changed files with 30 additions and 0 deletions
30
inc/Service/Media/MediaException.php
Normal file
30
inc/Service/Media/MediaException.php
Normal file
|
@ -0,0 +1,30 @@
|
|||
<?php
|
||||
namespace Vichan\Service\Media;
|
||||
|
||||
|
||||
class MediaException extends \RuntimeException {
|
||||
/**
|
||||
* Could not open a file.
|
||||
*/
|
||||
public const ERR_NO_OPEN = 0;
|
||||
/**
|
||||
* No media handler available for the given mime.
|
||||
*/
|
||||
public const ERR_NO_HANDLER = 1;
|
||||
/**
|
||||
* Image width and/or height too large.
|
||||
*/
|
||||
public const ERR_IMAGE_TOO_LARGE = 2;
|
||||
/**
|
||||
* Error while computing a media file.
|
||||
*/
|
||||
public const ERR_COMPUTE_ERR = 3;
|
||||
/**
|
||||
* I/O error.
|
||||
*/
|
||||
public const ERR_IO_ERR = 4;
|
||||
/**
|
||||
* Bad media type (mime) supplied to the handler.
|
||||
*/
|
||||
public const ERR_BAD_MEDIA_TYPE = 5;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue