feat(get): add error handling

Will throw on invalid string path templates