* Returns the flash messages store for a given mode * * @param mode - Access mode ('write' or 'read')
(mode: 'write' | 'read')
| 162 | * @param mode - Access mode ('write' or 'read') |
| 163 | */ |
| 164 | #getFlashStore(mode: 'write' | 'read'): ValuesStore { |
| 165 | if (!this.#valuesStore) { |
| 166 | throw new errors.E_SESSION_NOT_READY() |
| 167 | } |
| 168 | |
| 169 | if (mode === 'write' && this.readonly) { |
| 170 | throw new errors.E_SESSION_NOT_MUTABLE() |
| 171 | } |
| 172 | |
| 173 | return this.responseFlashMessages |
| 174 | } |
| 175 | |
| 176 | /** |
| 177 | * Determines whether a value should be stored in flash messages. |
no outgoing calls
no test coverage detected