public function callErrorTrait($message, int $code, ?Exception $previous, $thrower): void
    {
        $message = $this->createMessage($message, $code);
        /** @noinspection PhpUndefinedMethodInspection */
        /** @noinspection PhpUndefinedClassInspection */
        parent::__construct($message, $code, $previous);
        $this->truncateTrace($thrower);
    }
public function callErrorTrait($message, int $code, ?Exception $previous, $thrower): void
    {
        $message = $this->createMessage($message, $code);
        /** @noinspection PhpUndefinedMethodInspection */
        /** @noinspection PhpUndefinedClassInspection */
        parent::__construct($message, $code, $previous);
        $this->truncateTrace($thrower);
    }
public function callErrorTrait ( $ message , int $ code , ? Exception $ previous , $ thrower ) : void { $ message = $ this -> createMessage ( $ message , $ code ) ; /** @noinspection PhpUndefinedMethodInspection */ /** @noinspection PhpUndefinedClassInspection */ parent :: __construct ( $ message , $ code , $ previous ) ; $ this -> truncateTrace ( $ thrower ) ; }
Performs common actions

@param mixed $message
a error message or variables for the message template
@param int $code
a error code
@param Exception|null $previous
an object of a previous exception
@param mixed $thrower
one who has thrown exception
Performs common actions