2d.layer.invalid-calls.endLayer

Raises exception on lone endLayer calls.