I think throwing an exception is better because fallback to other format is unexpected behaviour for some users.