Throw meaningful exception instead of hiding bug