404 Not found exception

Hello everyone, I read the documentation on the cakebook but I didn’t succeed to use not found execption.
Can someone help me by explaining me more precisely how to make it work please.
Thanks in advance.

Can you give us a bit more information on what you tried?