Imported Upstream version 14.47.0
[platform/upstream/libzypp.git] / zypp / media / MediaException.cc
index 9cf3839..a1cbb7c 100644 (file)
@@ -85,22 +85,6 @@ namespace zypp
         << endl;
     }
 
-   std::ostream & MediaMetalinkInitException::dumpOn( std::ostream & str) const
-    {
-      return str << form(
-        // TranslatorExplanation: curl is the name of a library, don't translate
-        _("Download (Metalink curl) initialization failed for '%s'"), _url.c_str())
-        << endl;
-    }
-
-   std::ostream & MediaAria2cInitException::dumpOn( std::ostream & str) const
-    {
-      return str << form(
-        // TranslatorExplanation: curl is the name of a library, don't translate
-        _("Download (Metalink curl) initialization failed for '%s'"), _url.c_str())
-        << endl;
-    }
-
     std::ostream & MediaSystemException::dumpOn( std::ostream & str) const
     {
       return str << form(
@@ -179,42 +163,6 @@ namespace zypp
        << endl << _msg << endl;
     }
 
-   std::ostream & MediaMetalinkException::dumpOn( std::ostream & str) const
-    {
-      // TranslatorExplanation: curl is the name of a library, don't translate
-      return str << form(_(
-        "Download (metalink curl) error for '%s':\n"
-        "Error code: %s\n"
-        "Error message: %s\n"), _url.c_str(), _err.c_str(), _msg.c_str());
-    }
-
-    std::ostream & MediaMetalinkSetOptException::dumpOn( std::ostream & str) const
-    {
-      return str << form(
-        // TranslatorExplanation: curl is the name of a library, don't translate
-        _("Error occurred while setting download (metalink curl) options for '%s':"),
-        _url.c_str())
-       << endl << _msg << endl;
-    }
-
-   std::ostream & MediaAria2cException::dumpOn( std::ostream & str) const
-    {
-      // TranslatorExplanation: curl is the name of a library, don't translate
-      return str << form(_(
-        "Download (metalink curl) error for '%s':\n"
-        "Error code: %s\n"
-        "Error message: %s\n"), _url.c_str(), _err.c_str(), _msg.c_str());
-    }
-
-    std::ostream & MediaAria2cSetOptException::dumpOn( std::ostream & str) const
-    {
-      return str << form(
-        // TranslatorExplanation: curl is the name of a library, don't translate
-        _("Error occurred while setting download (metalink curl) options for '%s':"),
-        _url.c_str())
-       << endl << _msg << endl;
-    }
-
     std::ostream & MediaNotDesiredException::dumpOn( std::ostream & str ) const
     {
       return str << form(
@@ -262,6 +210,14 @@ namespace zypp
       return str;
     }
 
+    std::ostream &MediaFileSizeExceededException::dumpOn(std::ostream &str) const
+    {
+      str << form(_("Downloaded data exceeded the expected filesize '%s' of '%s'."), _expectedFileSize.asString().c_str(), _url.c_str() );
+      if ( !_msg.empty() )
+        str << endl << _msg;
+      return str;
+    }
+
     std::ostream & MediaTemporaryProblemException::dumpOn( std::ostream & str ) const
     {
       str << form(_("Location '%s' is temporarily unaccessible."), _url.c_str()) << endl;