You are here

MarkdownUrlNotExistsException.php in Markdown 8.2

File

src/Exception/MarkdownUrlNotExistsException.php
View source
<?php

namespace Drupal\markdown\Exception;


/**
 * Exception thrown when a URL is expected to exist but does not.
 *
 * @todo Extend from \RuntimeException and implement MarkdownExceptionInterface
 *   in 3.0.0.
 */
class MarkdownUrlNotExistsException extends MarkdownException {

  /**
   * {@inheritdoc}
   */
  public function __construct($file, $code = 0, $previous = NULL) {
    parent::__construct(sprintf('Markdown cannot parse the URL: %s', $file), $code, $previous);
  }

}

Classes

Namesort descending Description
MarkdownUrlNotExistsException Exception thrown when a URL is expected to exist but does not.