MCPcopy Create free account
hub / github.com/celtera/libremidi / generic_error_code_message

Function generic_error_code_message

include/libremidi/system_error2.hpp:3159–3324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3157// namespace {
3158
3159inline string_ref generic_error_code_message(std::errc code) noexcept
3160{
3161 switch (code)
3162 {
3163 case std::errc::address_family_not_supported:
3164 return "Address family not supported by protocol";
3165 case std::errc::address_in_use:
3166 return "Address already in use";
3167 case std::errc::address_not_available:
3168 return "Cannot assign requested address";
3169 case std::errc::already_connected:
3170 return "Transport endpoint is already connected";
3171 case std::errc::argument_list_too_long:
3172 return "Argument list too long";
3173 case std::errc::argument_out_of_domain:
3174 return "Numerical argument out of domain";
3175 case std::errc::bad_address:
3176 return "Bad address";
3177 case std::errc::bad_file_descriptor:
3178 return "Bad file descriptor";
3179 case std::errc::bad_message:
3180 return "Bad message";
3181 case std::errc::broken_pipe:
3182 return "Broken pipe";
3183 case std::errc::connection_aborted:
3184 return "Software caused connection abort";
3185 case std::errc::connection_already_in_progress:
3186 return "Operation already in progress";
3187 case std::errc::connection_refused:
3188 return "Connection refused";
3189 case std::errc::connection_reset:
3190 return "Connection reset by peer";
3191 case std::errc::cross_device_link:
3192 return "Invalid cross-device link";
3193 case std::errc::destination_address_required:
3194 return "Destination address required";
3195 case std::errc::device_or_resource_busy:
3196 return "Device or resource busy";
3197 case std::errc::directory_not_empty:
3198 return "Directory not empty";
3199 case std::errc::executable_format_error:
3200 return "Exec format error";
3201 case std::errc::file_exists:
3202 return "File exists";
3203 case std::errc::file_too_large:
3204 return "File too large";
3205 case std::errc::filename_too_long:
3206 return "File name too long";
3207 case std::errc::function_not_supported:
3208 return "Function not implemented";
3209 case std::errc::host_unreachable:
3210 return "No route to host";
3211 case std::errc::identifier_removed:
3212 return "Identifier removed";
3213 case std::errc::illegal_byte_sequence:
3214 return "Invalid or incomplete multibyte or wide character";
3215 case std::errc::inappropriate_io_control_operation:
3216 return "Inappropriate ioctl for device";

Callers 1

messageMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected