As a general rule, compensation is the relief or remedy provided by the law of this State for the violation of private rights, and the means of securing their observance; and specific and preventive relief may be given in no other cases than those specified in this Part of the Civil Code.