Added const to exceptions.