18#include <zypp-media/MediaException>
53 return str <<
form(
_(
"Medium not opened when trying to perform action '%s'."),
_action.c_str() );
59 return str <<
form(
_(
"File '%s' not found"),
_url.c_str() );
71 return str <<
_(
"Medium not attached") <<
": " <<
_url;
76 return str <<
_(
"Bad media attach point") <<
": " <<
_url;
82 return str <<
form(
_(
"Download (curl) initialization failed for '%s'"),
_url.c_str() );
92 return str <<
form(
_(
"Path '%s' on medium '%s' is not a file."),
_path.c_str(),
_url.c_str() );
97 return str <<
form(
_(
"Path '%s' on medium '%s' is not a directory."),
_path.c_str(),
_url.c_str() );
104 return str <<
_(
"Malformed URI") <<
": " <<
_url;
114 return str <<
_(
"Empty host name in URI") <<
": " <<
_url;
119 return str <<
_(
"Empty filesystem in URI") <<
": " <<
_url;
124 return str <<
_(
"Empty destination in URI") <<
": " <<
_url;
129 return str <<
form(
_(
"Unsupported URI scheme in '%s'."),
_url.c_str() );
134 return str <<
_(
"Operation not supported by medium") <<
": " <<
_url;
141 "Download (curl) error for '%s':\n"
143 "Error message: %s\n"),
_url.c_str(),
_err.c_str(),
_msg.c_str());
149 return str <<
form(
_(
"Error occurred while setting download (curl) options for '%s':"),
_url.c_str() );
156 return str <<
form(
_(
"Media source '%s' does not contain the desired medium"),
_url.c_str() );
161 return str <<
form(
_(
"Medium '%s' is in use by another instance"),
_name.c_str() );
167 return str <<
_(
"Cannot eject any media");
169 return str <<
form(
_(
"Cannot eject media '%s'"),
_name.c_str());
175 if( !
_url.asString().empty())
184 str <<
form(
_(
"Permission to access '%s' denied."),
_url.c_str());
192 str <<
form(
_(
"Timeout exceeded when accessing '%s'."),
_url.c_str() );
208 str <<
form(
_(
"Location '%s' is temporarily unaccessible."),
_url.c_str() );
216 str <<
form(
_(
" SSL certificate problem, verify that the CA cert is OK for '%s'."),
_url.c_str() );
223 str <<
_(
"No free ressources available to attach medium.");
const std::string & msg() const
Return the message string provided to the ctor.
String related utilities and Regular expression matching.
std::string form(const char *format,...) __attribute__((format(printf
Printf style construction of std::string.
Easy-to use interface to the ZYPP dependency resolver.