unite-cms/unite-cms

View on GitHub
src/Bundle/AdminBundle/Exception/InvalidAdminViewType.php

Summary

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


namespace UniteCMS\AdminBundle\Exception;

use GraphQL\Error\UserError;
use Throwable;

class InvalidAdminViewType extends UserError
{
    const MESSAGE = '@adminView fragments are only allowed on UniteContent, UniteUser or UniteSingleContent types.';

    public function __construct($message = self::MESSAGE, $code = 0, Throwable $previous = null) {
        parent::__construct($message, $code, $previous);
    }
}