forked from leftypol/leftypol
34 lines
653 B
PHP
34 lines
653 B
PHP
<?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;
|
|
/**
|
|
* Unsupported handler.
|
|
*/
|
|
public const ERR_BAD_HANDLER = 6;
|
|
}
|