Throwing exceptions for bad input syntax.