It has been possible to work with unique index errors through modeling a unique index in the model since 2015.11. It works beautifully with string based indexes, e.g. invoice numbers. There is an improvement request pending though for cases when the index is composed of guid values here.