private void error() {
            throw new UnsupportedOperationException("list is immutable");
        }
Throw exception if an attempt is made to change an immutable list.
jphp-runtime/src/php/runtime/memory/support/GapList.java