diff --git a/OpenSim/Region/Environment/Modules/Terrain/TerrainModule.cs b/OpenSim/Region/Environment/Modules/Terrain/TerrainModule.cs index 40d4771093..dc8a023dda 100644 --- a/OpenSim/Region/Environment/Modules/Terrain/TerrainModule.cs +++ b/OpenSim/Region/Environment/Modules/Terrain/TerrainModule.cs @@ -179,14 +179,13 @@ namespace OpenSim.Region.Environment.Modules.Terrain { m_log.Error("[TERRAIN]: Unable to load heightmap, the " + loader.Value + " parser does not support file loading. (May be save only)"); - throw new Exception(String.Format("unable to load heightmap: parser {0} does not support loading", loader.Value)); + throw new TerrainException(String.Format("unable to load heightmap: parser {0} does not support loading", loader.Value)); } catch (FileNotFoundException) { m_log.Error( "[TERRAIN]: Unable to load heightmap, file not found. (A directory permissions error may also cause this)"); - throw new Exception(String.Format("unable to load heightmap: file {0} not found (or permissions do not allow access", - filename)); + throw new TerrainException(String.Format("unable to load heightmap: file {0} not found (or permissions do not allow access", filename)); } } CheckForTerrainUpdates(); @@ -195,8 +194,7 @@ namespace OpenSim.Region.Environment.Modules.Terrain } } m_log.Error("[TERRAIN]: Unable to load heightmap, no file loader availible for that format."); - throw new Exception(String.Format("unable to load heightmap from file {0}: no loader available for that format", - filename)); + throw new TerrainException(String.Format("unable to load heightmap from file {0}: no loader available for that format", filename)); } /// @@ -219,7 +217,7 @@ namespace OpenSim.Region.Environment.Modules.Terrain catch (NotImplementedException) { m_log.Error("Unable to save to " + filename + ", saving of this file format has not been implemented."); - throw new Exception(String.Format("unable to save heightmap: {0}: saving of this file format not implemented")); + throw new TerrainException(String.Format("unable to save heightmap: {0}: saving of this file format not implemented")); } }