CHAPTER 10
EXCEPTIONS
308
Item 76: Strive for failure atomicity
After an object throws an exception, it is generally desirable that the object still be in
a well-defined, usable state, even if the failure occurred in the midst of performing
an operation. This is especially true for checked exceptions, from which the caller is
expected to recover.
Do'stlaringiz bilan baham: