-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: throw exception if node/mjml not found
fixes Signed-off-by: Fred Carlsen <[email protected]>
- Loading branch information
Showing
2 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
/** | ||
* MJML plugin for Craft CMS 3.x | ||
* | ||
* Render Twig emails with MJML, the only framework that makes responsive email easy. | ||
* | ||
* @link https://superbig.co | ||
* @copyright Copyright (c) 2018 Superbig | ||
*/ | ||
|
||
namespace superbig\mjml\exceptions; | ||
|
||
use yii\base\Exception; | ||
|
||
/** | ||
* @author Superbig | ||
* @package MJML | ||
* @since 1.0.0 | ||
*/ | ||
class MJMLException extends RuntimeException | ||
{ | ||
public $cliCommand = ''; | ||
|
||
public function setCliCommand(string $cmd) | ||
{ | ||
$this->cliCommand = $cmd; | ||
} | ||
|
||
public function getCliCommand() | ||
{ | ||
return $this->cliCommand; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters