1:  2:  3:  4:  5:  6:  7:  8:  9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 
<?php

namespace SAREhub\Client\Event;


class EventPropertyNotFoundException extends \RuntimeException
{

    private $event;
    private $property;

    public function __construct(Event $event, $property, \Exception $previous = null)
    {
        parent::__construct('property ' . $property . " not found in event: " . var_export($event, true), 0, $previous);
        $this->event = $event;
        $this->property = $property;
    }

    public function getEvent()
    {
        return $this->event;
    }

    public function getProperty()
    {
        return $this->property;
    }
}