Harbors and Navigation Code § 259
CHAPTER 2. Penalties
Neither the master nor the owner of any vesel can recover damages for injuries to the vessel or to himself resulting from a collision growing out of a failure to comply with the provisions of the preceding six sections.