commit 64a8129315f4af9b5fbbfcfbb1fd43ebdee2d516 parent caa0c9d847f93781d3f0678aa509c29bf2e51044 Author: Felicitus <felicitus@felicitus.org> Date: Mon, 2 Nov 2015 16:51:02 +0100 Use the method getMessageKey() to construct the exception message Diffstat:
M | src/PartKeepr/CoreBundle/Exceptions/TranslatableException.php | | | 4 | ++++ |
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/PartKeepr/CoreBundle/Exceptions/TranslatableException.php b/src/PartKeepr/CoreBundle/Exceptions/TranslatableException.php @@ -4,6 +4,10 @@ namespace PartKeepr\CoreBundle\Exceptions; abstract class TranslatableException extends \Exception { + public function __construct () { + parent::__construct($this->getMessageKey()); + } + /** * Returns the translatable message * @return mixed