EscolaLMS/Courses

View on GitHub
src/Exceptions/TopicException.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
<?php

namespace EscolaLms\Courses\Exceptions;

use Exception;

class TopicException extends Exception
{
    const CONTENT_VALIDATION = 'Topic Content Validation fails';

    private array $data;

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

    public function getData()
    {
        return $this->data;
    }
}