Throw Exception if the Layout has not be setup