src/Api/Type/BindingNotAcceptedException.php
public static function forBindingClass($typeName, $bindingClass, Exception $cause = null)
    {
        return new static(sprintf(
            'The type "%s" does accept bindings of class "%s".',
            $typeName,
            $bindingClass
        ), 0, $cause);
    }
public static function forBindingClass($typeName, $bindingClass, Exception $cause = null)
    {
        return new static(sprintf(
            'The type "%s" does accept bindings of class "%s".',
            $typeName,
            $bindingClass
        ), 0, $cause);
    }
public static function forBindingClass ( $ typeName , $ bindingClass , Exception $ cause = null ) { return new static ( sprintf ( 'The type "%s" does accept bindings of class "%s".' , $ typeName , $ bindingClass ) , 0 , $ cause ) ; }
Creates a new exception.

@param string         $typeName     The name of the binding type.
@param string         $bindingClass The class name of the binding.
@param Exception|null $cause        The exception that caused this
exception.

@return static The created exception.
Creates a new exception .