original_string: public static function from(DriverInterface $driver, $message = '', $code = 0, \Exception $previous = null)
      {
          //make sure that empty arguments don't get passed to exceptions as
          //they have default messages and codes.
          $self = $message ? ($code ? new static($message, $code, $previous) : new static($message)) : new static();
  
          $self->setDriver($driver);
  
          return $self;
      }
code: public static function from(DriverInterface $driver, $message = '', $code = 0, \Exception $previous = null)
      {
          //make sure that empty arguments don't get passed to exceptions as
          //they have default messages and codes.
          $self = $message ? ($code ? new static($message, $code, $previous) : new static($message)) : new static();
  
          $self->setDriver($driver);
  
          return $self;
      }
code_tokens: public static function from ( DriverInterface $ driver , $ message = '' , $ code = 0 , \ Exception $ previous = null ) { //make sure that empty arguments don't get passed to exceptions as //they have default messages and codes. $ self = $ message ? ( $ code ? new static ( $ message , $ code , $ previous ) : new static ( $ message ) ) : new static ( ) ; $ self -> setDriver ( $ driver ) ; return $ self ; }
docstring: Factory method to set the driver that created this exception.
  
  @param DriverInterface $driver The driver
docstring_tokens: Factory method to set the driver that created this exception .