Layouts.requireSerialized
Requires an exact layout string rather than a built-in layout name.
Source and package
- Qualified name
-
io.github .libtmux .Layouts. require Serialized - Package
- io.github.libtmux
- Declared in
Layouts- Distribution
- io.github.libtmux:libtmux
- Source
- libtmux/src/main/java/io/github/libtmux/Layouts.java
-
Description#
The classic form answers "did tmux write this?" by its own checksum, without needing to know what tmux is running. JSON carries nothing equivalent, so the only question left to ask is "could this tmux have written it?" - which is a version, not a parse. Recognising the shape is as far as this goes: a JSON body that passes the shape check but is not real is tmux's own problem to refuse, and it does, safely, on every release that understands the format at all (confirmed against next-3.9: malformed JSON answers an ordinary parse error, never a crash).
- Parameters
- Raises
-
-
Illegal
Argument – if the string is not a layout tmux wroteException -
Unsupported
Feature – if it is JSON-shaped butException runningpredates the format, so it cannot be one this server wrote
-