[Common] Fixed usage of wrong exception