You are here

public function LingotekDocumentArchivedException::__construct in Lingotek Translation 3.2.x

Same name and namespace in other branches
  1. 8.2 src/Exception/LingotekDocumentArchivedException.php \Drupal\lingotek\Exception\LingotekDocumentArchivedException::__construct()
  2. 4.0.x src/Exception/LingotekDocumentArchivedException.php \Drupal\lingotek\Exception\LingotekDocumentArchivedException::__construct()
  3. 3.0.x src/Exception/LingotekDocumentArchivedException.php \Drupal\lingotek\Exception\LingotekDocumentArchivedException::__construct()
  4. 3.1.x src/Exception/LingotekDocumentArchivedException.php \Drupal\lingotek\Exception\LingotekDocumentArchivedException::__construct()
  5. 3.3.x src/Exception/LingotekDocumentArchivedException.php \Drupal\lingotek\Exception\LingotekDocumentArchivedException::__construct()
  6. 3.4.x src/Exception/LingotekDocumentArchivedException.php \Drupal\lingotek\Exception\LingotekDocumentArchivedException::__construct()
  7. 3.5.x src/Exception/LingotekDocumentArchivedException.php \Drupal\lingotek\Exception\LingotekDocumentArchivedException::__construct()
  8. 3.6.x src/Exception/LingotekDocumentArchivedException.php \Drupal\lingotek\Exception\LingotekDocumentArchivedException::__construct()
  9. 3.7.x src/Exception/LingotekDocumentArchivedException.php \Drupal\lingotek\Exception\LingotekDocumentArchivedException::__construct()
  10. 3.8.x src/Exception/LingotekDocumentArchivedException.php \Drupal\lingotek\Exception\LingotekDocumentArchivedException::__construct()

Construct the exception. Note: The message is NOT binary safe.

Parameters

string $document_id: The document id.

string $message: (optional) The Exception message to throw.

int $code: (optional) The Exception code.

\Throwable $previous: (optional) The previous throwable used for the exception chaining.

File

src/Exception/LingotekDocumentArchivedException.php, line 31

Class

LingotekDocumentArchivedException
An exception for issues when a document is already archived.

Namespace

Drupal\lingotek\Exception

Code

public function __construct($document_id, $message = "", int $code = 0, \Throwable $previous = NULL) {
  parent::__construct($message, $code, $previous);
  $this->documentId = $document_id;
}