protected function setErrorDetails(string $reason, int $code)
    {
        $this->setError(ArrayContainer::make([
                'code'    => $code,
                'message' => $reason,
        ]));
    }
protected function setErrorDetails(string $reason, int $code)
    {
        $this->setError(ArrayContainer::make([
                'code'    => $code,
                'message' => $reason,
        ]));
    }
protected function setErrorDetails ( string $ reason , int $ code ) { $ this -> setError ( ArrayContainer :: make ( [ 'code' => $ code , 'message' => $ reason , ] ) ) ; }
Set the exception error details

@param string $reason
@param int    $code
Set the exception error details