<?php

namespace KupShop\AutomationConfiguratorBundle\Exceptions;

class ActionRuntimeException extends \Exception
{
    protected $data;

    public function __construct($message = '', $data = null, $code = 0, ?Throwable $previous = null)
    {
        $this->data = $data;
        parent::__construct($message, $code, $previous);
    }

    /**
     * @return mixed|null
     */
    public function getData()
    {
        return $this->data ?? [];
    }
}
