public function LingotekDocumentLockedException::__construct in Lingotek Translation 3.3.x
Same name and namespace in other branches
- 8.2 src/Exception/LingotekDocumentLockedException.php \Drupal\lingotek\Exception\LingotekDocumentLockedException::__construct()
- 4.0.x src/Exception/LingotekDocumentLockedException.php \Drupal\lingotek\Exception\LingotekDocumentLockedException::__construct()
- 3.0.x src/Exception/LingotekDocumentLockedException.php \Drupal\lingotek\Exception\LingotekDocumentLockedException::__construct()
- 3.1.x src/Exception/LingotekDocumentLockedException.php \Drupal\lingotek\Exception\LingotekDocumentLockedException::__construct()
- 3.2.x src/Exception/LingotekDocumentLockedException.php \Drupal\lingotek\Exception\LingotekDocumentLockedException::__construct()
- 3.4.x src/Exception/LingotekDocumentLockedException.php \Drupal\lingotek\Exception\LingotekDocumentLockedException::__construct()
- 3.5.x src/Exception/LingotekDocumentLockedException.php \Drupal\lingotek\Exception\LingotekDocumentLockedException::__construct()
- 3.6.x src/Exception/LingotekDocumentLockedException.php \Drupal\lingotek\Exception\LingotekDocumentLockedException::__construct()
- 3.7.x src/Exception/LingotekDocumentLockedException.php \Drupal\lingotek\Exception\LingotekDocumentLockedException::__construct()
- 3.8.x src/Exception/LingotekDocumentLockedException.php \Drupal\lingotek\Exception\LingotekDocumentLockedException::__construct()
Construct the exception. Note: The message is NOT binary safe.
Parameters
string $old_document_id: The old document id.
string $new_document_id: The new 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/ LingotekDocumentLockedException.php, line 41
Class
- LingotekDocumentLockedException
- An exception for issues when a document is already locked because a new version exists.
Namespace
Drupal\lingotek\ExceptionCode
public function __construct($old_document_id, $new_document_id, $message = "", int $code = 0, \Throwable $previous = NULL) {
parent::__construct($message, $code, $previous);
$this->oldDocumentId = $old_document_id;
$this->newDocumentId = $new_document_id;
}