checkOpen method
- String? correlationId
Checks if the queue has been opened and throws an exception is it's not.
correlationId
(optional) transaction id to trace execution through call chain.
Implementation
void checkOpen(String? correlationId) {
if (!isOpen()) {
throw InvalidStateException(
correlationId, 'NOT_OPENED', 'The queue is not opened');
}
}