Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
optometrists
/
cache
/
cache
/
cache
/
cache
/
cache
/
cache
/
.wp-cli
/
wp-content
/
plugins
/
responsive-menu
/
v4.0.0
/
libs
/
scssphp
/
vendor
/
scssphp
/
scssphp
/
src
/
Exception
:
SassScriptException.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?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); } }