Revert "Migrated from constant for exception to resources"

This reverts commit 7770b320b5b305b3ae8081b48eaefeccf9e8d7c7.