How do you know when you have epilepsy?

Like what are the symptoms and causes?