
Contracts
CppCast
00:00
How to Test a Framework With a Throwing Violation Handler
The throwing violation handler gives you a way to say okay here's a function the preconditions have been violated so I don't want to go into the body of that function anymore. This is exactly why we need the Lakers rule because if you then put no except on that function then you get the terminator which is exactly what you don't want. The first use case which Josh said I independently discovered was when I was trying to figure out how to test our code and I stumbled upon this as I was using catch, your framework fill.
Transcript
Play full episode