Issue 6857: Make exceptions readOnly