<?php 

namespace NPS\Exception;

/**
 * User input exception
 * @author Lukas Korinek
 */
class UserInputException extends \Exception
{
    /** @var string $subject */
    private $subject;

    public function __construct($message, $subject)
    {
        $this->subject = $subject;
        parent::__construct($message);
    }

    /**
     * Gets the exception subject
     * @return string
     */
    public function getSubject()
    {
        return $this->subject;
    }
}

