Encapsulation in object-oriented programming bundles data with the methods that operate on it and hides internal state behind a controlled interface.
An end-to-end test verifies a complete user workflow through the whole running system, from the interface down to databases and external services.
An exception is an object or signal that interrupts normal program flow when an error occurs and transfers control to the nearest…