Throw illegal argument as default case