if the cake does not contain chocolate, it is not toxic for dogs. however, cake contains unhealthy ingredients like sugar, fats, and wheat that are not optimal for a dog's health. at best, they're simply empty calories, and at worst, could trigger allergies or indigestion.