Throw custom classes instead of throwing generic Error
Throw custom classes instead of throwing generic Error