Better handling input parameter

Raise exception is consistent with Protagonist