sourcePath = $sourcePath; $message = sprintf('The path to the source file "%s" is outside the base path "%s"', $sourcePath, $basePath); parent::__construct($message, 0, $previous); } /** * Get the human-readable message for the end-user. It is supposed * to be translated and does not contain any confidential information * about the system and its sensitive data. * * @return string A human-readable message. */ public function getUserMessage() { return __( 'Invalid path of a source "%s". Path must point to the existed file inside the package.', $this->sourcePath ); } }