src/Robin/Ntlm/Encoding/Exception/EncodingDetectionException.php
public static function forCurrentSystem($code = self::CODE_FOR_SYSTEM, Exception $previous = null)
    {
        $message = self::DEFAULT_MESSAGE . self::MESSAGE_EXTENSION_FOR_SYSTEM;

        return new static($message, $code, $previous);
    }
public static function forCurrentSystem($code = self::CODE_FOR_SYSTEM, Exception $previous = null)
    {
        $message = self::DEFAULT_MESSAGE . self::MESSAGE_EXTENSION_FOR_SYSTEM;

        return new static($message, $code, $previous);
    }
public static function forCurrentSystem ( $ code = self :: CODE_FOR_SYSTEM , Exception $ previous = null ) { $ message = self :: DEFAULT_MESSAGE . self :: MESSAGE_EXTENSION_FOR_SYSTEM ; return new static ( $ message , $ code , $ previous ) ; }
Creates an exception instance for the current system.

@param int $code The exception code.
@param Exception|null $previous A previous exception used for chaining.
@return static
Creates an exception instance for the current system .