open-orchestra/open-orchestra-media-bundle

View on GitHub
Media/Exception/MissingOptionException.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace OpenOrchestra\Media\Exception;

use Symfony\Component\HttpKernel\Exception\HttpException;

/**
 * Class MissingOptionException
 */
class MissingOptionException extends HttpException
{
    /**
     * @param string $message
     */
    public function __construct($option, $method)
    {
        parent::__construct(500, 'The option \'' . $option . '\' is required in ' . $method);
    }
}