kronostechnologies/graphql-framework

View on GitHub
src/Kronos/GraphQLFramework/Resolver/Controller/Exception/NoMatchingControllerFoundException.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php


namespace Kronos\GraphQLFramework\Resolver\Controller\Exception;


use Kronos\GraphQLFramework\Exception\FrameworkException;
use Throwable;

class NoMatchingControllerFoundException extends FrameworkException
{
    const MSG = 'No matching controller was found for GraphQL type "%typeName%"';

    public function __construct($typeName, Throwable $previous = null)
    {
        $message = str_replace("%typeName%", $typeName, self::MSG);

        parent::__construct($message, 0, $previous);
    }

}