src/Utils/Options/Exception/UndefinedProfileException.php
public static function forProfile(string $name, ?\Throwable $previous = null): self
    {

        $example = self::getExample($name);
        $message = sprintf("Undefined profile: %s\n%s", $name, $example);

        return new static($message, $previous);
    }
public static function forProfile(string $name, ?\Throwable $previous = null): self
    {

        $example = self::getExample($name);
        $message = sprintf("Undefined profile: %s\n%s", $name, $example);

        return new static($message, $previous);
    }
public static function forProfile ( string $ name , ? \ Throwable $ previous = null ) : self { $ example = self :: getExample ( $ name ) ; $ message = sprintf ( "Undefined profile: %s\n%s" , $ name , $ example ) ; return new static ( $ message , $ previous ) ; }
Crea una instancia, con un mensae que indica que el perfil indicado no existe

@param string          $name
@param null|\Throwable $previous

@return \PlanB\Utils\Options\Exception\UndefinedProfileException
Crea una instancia con un mensae que indica que el perfil indicado no existe