Documentations › mmo.client › php › exceptions eSCS MMO\client\exceptions · 1 symbol · generated 5 Oct 2026
A Simple CSS (.scs) compilation error.
class MMO\client\exceptions\eSCS extends MMO\core\exceptions\eRuntime Namespace MMO\client\exceptionsExtends eRuntime Carries the [`SourceLocation`](https://mcp.mmoframework.fr/documentation/mmo.client/php/scs/SourceLocation.md#sourcelocation) the error was raised at, so the compiler can render a code frame
pointing at the offending source:
```text
Error: Undefined variable $spacing
at components/card.scs:12
12 | padding: $spacing
^^^^^^^^
``` throw new eSCS($this, 'Undefined variable [{name}].', ['name' => '$spacing'], $location, $source);
Methods4 function getError(): string Render the offending source line with a caret marker under it.
function getFrame(int $context = 0): string $context = 0 int number of surrounding lines to show returns string '' when the source or the location is unknown
$e->getFrame();
// "12 | padding: $spacing\n | ^^^^^^^^"
function report(): string returns string the full, human readable report: message, position and code frame
__construct($origin, $format, $context, $location, $source, $previous, $code) eSCS.php:27 function __construct(
mixed $origin,
string $format,
array $context = [],
?MMO\client\scs\SourceLocation $location = null,
?string $source = null,
?Throwable $previous = null,
int $code = 0
) Inherited members (29) Methods Declared by Description AddListener($handler, $order)eRuntime Register a listener directly (as opposed to ConnectListeners 's attribute-based discovery). ConnectListeners($obj)eRuntime Scan $obj's methods for #[Listen(EventClass::class)] attributes and register each one as a listener on the matching event class. DisconnectListeners($obj)eRuntime Undo a previous ConnectListeners : removes every listener that connect had registered for $obj on this event class. dispatch()eRuntime Invoke every GetListeners listener with $this. getCode()Exception getContext()eRuntime getFile()Exception getFormat()eRuntime getLine()Exception GetListeners()eRuntime Collect every listener for this class, including those registered on its parent classes (so a subclass event is also caught by listeners of its parent event), sorted by ascending $order (ties keep … getMessage()Exception getOrigin()eRuntime getPrevious()Exception getTrace()Exception getTraceAsString()Exception HasListener($handler)eRuntime jsonSerialize()eRuntime \JsonSerializable::jsonSerialize RemoveListener($handler)eRuntime Remove the last added handler from the listeners. Send($args)eRuntime Construct a new instance of this class with $args, then dispatch it to every listener. SetListenerOrder($handler, $order)eRuntime Change the order of an already-registered listener, whether added directly via AddListener or indirectly via ConnectListeners (which also stores its [$obj, $methodName] callables here). __toString()Exception __wakeup()Exception