public function LingotekDocumentArchivedException::__construct in Lingotek Translation 3.1.x
Same name and namespace in other branches
- 8.2 src/Exception/LingotekDocumentArchivedException.php \Drupal\lingotek\Exception\LingotekDocumentArchivedException::__construct()
- 4.0.x src/Exception/LingotekDocumentArchivedException.php \Drupal\lingotek\Exception\LingotekDocumentArchivedException::__construct()
- 3.0.x src/Exception/LingotekDocumentArchivedException.php \Drupal\lingotek\Exception\LingotekDocumentArchivedException::__construct()
- 3.2.x src/Exception/LingotekDocumentArchivedException.php \Drupal\lingotek\Exception\LingotekDocumentArchivedException::__construct()
- 3.3.x src/Exception/LingotekDocumentArchivedException.php \Drupal\lingotek\Exception\LingotekDocumentArchivedException::__construct()
- 3.4.x src/Exception/LingotekDocumentArchivedException.php \Drupal\lingotek\Exception\LingotekDocumentArchivedException::__construct()
- 3.5.x src/Exception/LingotekDocumentArchivedException.php \Drupal\lingotek\Exception\LingotekDocumentArchivedException::__construct()
- 3.6.x src/Exception/LingotekDocumentArchivedException.php \Drupal\lingotek\Exception\LingotekDocumentArchivedException::__construct()
- 3.7.x src/Exception/LingotekDocumentArchivedException.php \Drupal\lingotek\Exception\LingotekDocumentArchivedException::__construct()
- 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\ExceptionCode
public function __construct($document_id, $message = "", int $code = 0, \Throwable $previous = NULL) {
parent::__construct($message, $code, $previous);
$this->documentId = $document_id;
}