Parse server side error message to reconstruct server sql exception

Parse server side error message to reconstruct server sql exception on client side.