throw exception instead of showing an error