expect the unexpected

Results 2 issues of expect the unexpected

Hello, If the size of the file exceeds a certain value, I want to throw a message that I will specify by raising a special exception, how do I do...