LingotekDocumentArchivedException.php in Lingotek Translation 4.0.x
Same filename and directory in other branches
- 8.2 src/Exception/LingotekDocumentArchivedException.php
- 3.0.x src/Exception/LingotekDocumentArchivedException.php
- 3.1.x src/Exception/LingotekDocumentArchivedException.php
- 3.2.x src/Exception/LingotekDocumentArchivedException.php
- 3.3.x src/Exception/LingotekDocumentArchivedException.php
- 3.4.x src/Exception/LingotekDocumentArchivedException.php
- 3.5.x src/Exception/LingotekDocumentArchivedException.php
- 3.6.x src/Exception/LingotekDocumentArchivedException.php
- 3.7.x src/Exception/LingotekDocumentArchivedException.php
- 3.8.x src/Exception/LingotekDocumentArchivedException.php
Namespace
Drupal\lingotek\ExceptionFile
src/Exception/LingotekDocumentArchivedException.phpView source
<?php
namespace Drupal\lingotek\Exception;
/**
* An exception for issues when a document is already archived.
*
* @package Drupal\lingotek\Exception
*/
class LingotekDocumentArchivedException extends LingotekException {
/**
* The document id.
*
* @var string
*/
protected $documentId;
/**
* Construct the exception. Note: The message is NOT binary safe.
*
* @param string $document_id
* The document id.
* @param string $message
* (optional) The Exception message to throw.
* @param int $code
* (optional) The Exception code.
* @param \Throwable $previous
* (optional) The previous throwable used for the exception chaining.
*/
public function __construct($document_id, $message = "", int $code = 0, \Throwable $previous = NULL) {
parent::__construct($message, $code, $previous);
$this->documentId = $document_id;
}
/**
* Get the document id which was already archived.
*
* @return string
*/
public function getDocumentId() {
return $this->documentId;
}
}
Classes
Name | Description |
---|---|
LingotekDocumentArchivedException | An exception for issues when a document is already archived. |