luya\traits\ErrorHandlerTrait::transferMessage PHP Method

transferMessage() public method

Sometimes you just want to pass informations to your application, this method allows you to transfer a message to your error api server. Example of sending a message php Yii::$app->errorHandler->transferMessage('Something went wrong here!', __FILE__, __LINE__);
public transferMessage ( string $message, string $file = __FILE__, string $line = __LINE__ )
$message string The message you want to send to the error api server.
$file string The you are currently send the message (use __FILE__)
$line string The line you want to submit (use __LINE__)
    public function transferMessage($message, $file = __FILE__, $line = __LINE__)
    {
        return $this->apiServerSendData($this->getExceptionArray(['message' => $message, 'file' => $file, 'line' => $line]));
    }