/**
  * @param \Exception $e
  *
  * @return WebhookResponse
  */
 public static function fromException(\Exception $e)
 {
     if ($e instanceof XsollaWebhookException) {
         return static::fromErrorCode($e->getXsollaErrorCode(), $e->getMessage(), $e->getHttpStatusCode());
     } else {
         return static::fromErrorCode('FATAL_ERROR', $e->getMessage());
     }
 }