41 return str <<
form(
_(
"Failed to unmount %s"),
_path.c_str() ) <<
" : " <<
_error;
51 return str <<
form(
_(
"Medium not opened when trying to perform action '%s'."),
_action.c_str() );
56 return str <<
form(
_(
"File '%s' not found on medium '%s'"),
_filename.c_str(),
_url.c_str() );
61 return str <<
form(
_(
"Cannot write file '%s'."),
_filename.c_str() );
66 return str <<
_(
"Medium not attached") <<
": " <<
_url;
71 return str <<
_(
"Bad media attach point") <<
": " <<
_url;
77 return str <<
form(
_(
"Download (curl) initialization failed for '%s'"),
_url.c_str() );
82 return str <<
form(
_(
"System exception '%s' on medium '%s'."),
_message.c_str(),
_url.c_str() );
87 return str <<
form(
_(
"Path '%s' on medium '%s' is not a file."),
_path.c_str(),
_url.c_str() );
92 return str <<
form(
_(
"Path '%s' on medium '%s' is not a directory."),
_path.c_str(),
_url.c_str() );
99 return str <<
_(
"Malformed URI") <<
": " <<
_url;
109 return str <<
_(
"Empty host name in URI") <<
": " <<
_url;
114 return str <<
_(
"Empty filesystem in URI") <<
": " <<
_url;
119 return str <<
_(
"Empty destination in URI") <<
": " <<
_url;
124 return str <<
form(
_(
"Unsupported URI scheme in '%s'."),
_url.c_str() );
129 return str <<
_(
"Operation not supported by medium") <<
": " <<
_url;
135 return str <<
form(
_(
136 "Download (curl) error for '%s':\n"
138 "Error message: %s\n"),
_url.c_str(),
_err.c_str(),
_msg.c_str());
144 return str <<
form(
_(
"Error occurred while setting download (curl) options for '%s':"),
_url.c_str() );
151 return str <<
form(
_(
"Media source '%s' does not contain the desired medium"),
_url.c_str() );
156 return str <<
form(
_(
"Medium '%s' is in use by another instance"),
_name.c_str() );
162 return str <<
_(
"Cannot eject any media");
164 return str <<
form(
_(
"Cannot eject media '%s'"),
_name.c_str());
171 str <<
" (" <<
_url <<
")";
179 str <<
form(
_(
"Permission to access '%s' denied."),
_url.c_str());
187 str <<
form(
_(
"Timeout exceeded when accessing '%s'."),
_url.c_str() );
203 str <<
form(
_(
"Location '%s' is temporarily unaccessible."),
_url.c_str() );
211 str <<
form(
_(
" SSL certificate problem, verify that the CA cert is OK for '%s'."),
_url.c_str() );
const std::string & msg() const
Return the message string provided to the ctor.
std::string asString(unsigned field_width_r=0, unsigned unit_width_r=1) const
Auto selected Unit and precision.
std::string form(const char *format,...) __attribute__((format(printf
Printf style construction of std::string.
std::string asString() const
Returns a default string representation of the Url object.