Lely core libraries  2.2.5
sdo_error.cpp File Reference

This file is part of the C++ CANopen application library; it contains the implementation of the SDO error and exception functions. More...

#include "coapp.hpp"
#include <lely/co/sdo.h>
#include <lely/coapp/sdo_error.hpp>
#include <lely/util/error.hpp>
#include <iomanip>
#include <sstream>
#include <string>
Include dependency graph for sdo_error.cpp:

Go to the source code of this file.

Namespaces

 lely::canopen
 The namespace for the C++ CANopen application library.
 

Functions

const ::std::error_category & lely::canopen::SdoCategory () noexcept
 Returns a reference to the error category object for SDO abort codes.
 
::std::error_code lely::canopen::make_error_code (SdoErrc e) noexcept
 Creates an error code corresponding to an SDO abort code.
 
::std::error_condition lely::canopen::make_error_condition (SdoErrc e) noexcept
 Creates an error condition corresponding to an SDO abort code.
 
SdoErrc lely::canopen::sdo_errc (::std::error_code ec)
 Returns the SDO abort code corresponding to an error code.
 
::std::exception_ptr lely::canopen::make_sdo_exception_ptr (uint8_t id, uint16_t idx, uint8_t subidx, ::std::error_code ec) noexcept
 Creates an std::exception_ptr that holds a reference to a lely::canopen::SdoError with the specified attributes if ec is an SDO error (ec.category() == SdoCategory()), or to an std::system_error if not. More...
 
::std::exception_ptr lely::canopen::make_sdo_exception_ptr (uint8_t id, uint16_t idx, uint8_t subidx, ::std::error_code ec, const ::std::string &what_arg) noexcept
 Creates an std::exception_ptr that holds a reference to a lely::canopen::SdoError with the specified attributes if ec is an SDO error (ec.category() == SdoCategory()), or to an std::system_error if not. More...
 
::std::exception_ptr lely::canopen::make_sdo_exception_ptr (uint8_t id, uint16_t idx, uint8_t subidx, ::std::error_code ec, const char *what_arg) noexcept
 Creates an std::exception_ptr that holds a reference to a lely::canopen::SdoError with the specified attributes if ec is an SDO error (ec.category() == SdoCategory()), or to an std::system_error if not. More...
 

Detailed Description

This file is part of the C++ CANopen application library; it contains the implementation of the SDO error and exception functions.

See also
lely/coapp/sdo_error.hpp
Author
J. S. Seldenthuis jseld.nosp@m.enth.nosp@m.uis@l.nosp@m.ely..nosp@m.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition in file sdo_error.cpp.