Added custom exception for cake related errors.