/**
  * @param ApiProblem $apiProblem
  */
 public function __construct(ApiProblem $apiProblem)
 {
     parent::__construct($apiProblem->toArray(), $apiProblem->status);
 }
 /**
  * Register log.
  *
  * @param ApiProblem $exception
  */
 protected function logger(ApiProblem $exception)
 {
     call_user_func(array($this->logger, $exception->getType()), '[API] Exception: ', $exception->toArray());
 }