Throw an error not to leave the interface.