partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

TranslatableException.php (380B)


      1 <?php
      2 
      3 namespace PartKeepr\CoreBundle\Exceptions;
      4 
      5 abstract class TranslatableException extends \Exception
      6 {
      7     public function __construct($code = 0, \Throwable $previous = null)
      8     {
      9         parent::__construct($this->getMessageKey());
     10     }
     11 
     12     /**
     13      * Returns the translatable message.
     14      *
     15      * @return mixed
     16      */
     17     abstract public function getMessageKey();
     18 }