You can read into this something like mugger says "my victim, whom when I was holding a knife out promised not to tell anyone about the robbery, went on to tell the police".
"I then sued my victim for causing me harm."
But it's hard to know about a situation when it's complex and you're a long way away from it. Maybe the book was unfair. Maybe it was fair. Or both. Maybe what happened was so bad it should supersede this kind of agreement. Who decides, and how?