Common/shared contracts and exceptions.