PHP 8.2.31
Preview: SassScriptException.php Size: 915 B
/home/nshryvcy/himaltourism.com/wp-content/plugins/megamenu/classes/scss/1.11.1/src/Exception/SassScriptException.php

<?php

namespace ScssPhp\ScssPhp\Exception;

/**
 * An exception thrown by SassScript.
 *
 * This class does not implement SassException on purpose, as it should
 * never be returned to the outside code. The compilation will catch it
 * and replace it with a SassException reporting the location of the
 * error.
 */
class SassScriptException extends \Exception
{
    /**
     * Creates a SassScriptException with support for an argument name.
     *
     * This helper ensures a consistent handling of argument names in the
     * error message, without duplicating it.
     *
     * @param string      $message
     * @param string|null $name    The argument name, without $
     *
     * @return SassScriptException
     */
    public static function forArgument($message, $name = null)
    {
        $varDisplay = !\is_null($name) ? "\${$name}: " : '';

        return new self($varDisplay . $message);
    }
}

Directory Contents

Dirs: 0 × Files: 6

Name Size Perms Modified Actions
380 B lrw-r--r-- 2025-01-05 05:34:13
Edit Download
1.02 KB lrw-r--r-- 2025-01-05 05:34:13
Edit Download
367 B lrw-r--r-- 2025-01-05 05:34:13
Edit Download
73 B lrw-r--r-- 2025-01-05 05:34:13
Edit Download
915 B lrw-r--r-- 2025-01-05 05:34:13
Edit Download
533 B lrw-r--r-- 2025-01-05 05:34:13
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).