Would it be possible to use Ocamls standard 'Invalid_argument of string'instead?