Exception handling when reading parameters.