added raising exceptions in handling exception's section