Committing stack class with exception throwing support.