assertions.length: consolidated exception handling

Much DRYer.