diff --git a/vehiclesplus-v3/api/examples.md b/vehiclesplus-v3/api/examples.md index 83d1c77..39ee4f7 100644 --- a/vehiclesplus-v3/api/examples.md +++ b/vehiclesplus-v3/api/examples.md @@ -128,8 +128,7 @@ public void removeVehicleFromPoliceGarage(String vehicleModelName) { Bukkit.getLogger().info("Vehicle with model '" + vehicleModelName + "' has been successfully removed from the police garage."); } catch (DataStorageException e) { // Handle any errors that occur during the removal process - Bukkit.getLogger().warning("Error: Failed to remove vehicle with model '" + vehicleModelName + "' from the garage."); - throw new RuntimeException("Error while removing vehicle", e); + Bukkit.getLogger().log(Level.WARNING, "Error: Failed to remove vehicle with model '" + vehicleModelName + "' from the garage.", e); } } else { // If no matching vehicle was found, print an error message