Use ampl::Error instead of SlmException to remove dependency from the C++ API and because the latter doesn't provide an error message.