/**
  * {@inheritdoc}
  */
 public function __construct($class, $tokenStrategy)
 {
     $class = new ReflectionClass($class);
     parent::__construct(sprintf('Unsupported TokenStrategy %s in %s.', $tokenStrategy, $class->getName()));
 }
 /**
  * {@inheritdoc}
  */
 public function __construct($class, $flow)
 {
     $class = new ReflectionClass($class);
     parent::__construct(sprintf('Unsupported flow %s for %s.', array_search($flow, $class->getConstants()), $class));
 }