for_name() public static method

Returns a new exception object.
Since: 3.0.0
public static for_name ( string $name ) : static
$name string The name of the value or factory callback.
return static Exception object.
 /**
  * Removes the value or factory callback with the given name.
  *
  * Removing values or factory callbacks is not allowed.
  *
  * @since 3.0.0
  *
  * @param string $name The name of a value or factory callback.
  *
  * @return void
  *
  * @throws ContainerOffsetUnsetException
  */
 public function offsetUnset($name)
 {
     throw ContainerOffsetUnsetException::for_name($name);
 }