Except as provided in this chapter, no provision of this chapter may in any way be contravened or set aside by private agreement.