26#ifndef MYSQL_ROUTER_CLASSIC_PROTOCOL_CODEC_ERROR_H_
27#define MYSQL_ROUTER_CLASSIC_PROTOCOL_CODEC_ERROR_H_
31#include <system_error>
54 :
public std::true_type {};
59 class error_category_impl :
public std::error_category {
61 const char *
name()
const noexcept override {
return "codec"; }
62 std::string message(
int ev)
const override {
65 return "invalid input";
67 return "input too short";
69 return "missing nul-terminator";
71 return "capability not supported";
73 return "statement-id not found";
75 return "unknown field-type";
82 static error_category_impl instance;
Definition: classic_protocol_binary.h:39
const std::error_category & codec_category() noexcept
Definition: classic_protocol_codec_error.h:58
std::error_code make_error_code(codec_errc e) noexcept
Definition: classic_protocol_codec_error.h:86
codec_errc
Definition: classic_protocol_codec_error.h:35
@ capability_not_supported
Definition: gcs_xcom_synode.h:64
case opt name
Definition: sslopt-case.h:33