According to the Indian Contract Act, 1872, an agreement that is not enforceable by law is considered void under Section 2(e). This means that the agreement has no legal effect and cannot be enforced in a court of law.