archive_exception.hpp
Go to the documentation of this file.
1 #ifndef BOOST_ARCHIVE_ARCHIVE_EXCEPTION_HPP
2 #define BOOST_ARCHIVE_ARCHIVE_EXCEPTION_HPP
3 
4 // MS compatible compilers support #pragma once
5 #if defined(_MSC_VER)
6 # pragma once
7 #endif
8 
10 // archive/archive_exception.hpp:
11 
12 // (C) Copyright 2002 Robert Ramey - http://www.rrsd.com .
13 // Use, modification and distribution is subject to the Boost Software
14 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
15 // http://www.boost.org/LICENSE_1_0.txt)
16 
17 // See http://www.boost.org for updates, documentation, and revision history.
18 
19 #include <exception>
20 #include <boost/assert.hpp>
21 #include <string>
22 
23 #include <boost/config.hpp>
25 
26 // note: the only reason this is in here is that windows header
27 // includes #define exception_code _exception_code (arrrgghhhh!).
28 // the most expedient way to address this is be sure that this
29 // header is always included whenever this header file is included.
30 #if defined(BOOST_WINDOWS)
31 #include <excpt.h>
32 #endif
33 
34 #include <boost/archive/detail/abi_prefix.hpp> // must be the last header
35 
36 namespace boost {
37 namespace archive {
38 
40 // exceptions thrown by archives
41 //
43  public virtual std::exception
44 {
45 private:
46  char m_buffer[128];
47 protected:
48  BOOST_ARCHIVE_DECL unsigned int
49  append(unsigned int l, const char * a);
52 public:
53  typedef enum {
54  no_exception, // initialized without code
55  other_exception, // any excepton not listed below
56  unregistered_class, // attempt to serialize a pointer of
57  // an unregistered class
58  invalid_signature, // first line of archive does not contain
59  // expected string
60  unsupported_version,// archive created with library version
61  // subsequent to this one
62  pointer_conflict, // an attempt has been made to directly
63  // serialize an object which has
64  // already been serialized through a pointer.
65  // Were this permitted, the archive load would result
66  // in the creation of an extra copy of the obect.
67  incompatible_native_format, // attempt to read native binary format
68  // on incompatible platform
69  array_size_too_short,// array being loaded doesn't fit in array allocated
70  input_stream_error, // error on input stream
71  invalid_class_name, // class name greater than the maximum permitted.
72  // most likely a corrupted archive or an attempt
73  // to insert virus via buffer overrun method.
74  unregistered_cast, // base - derived relationship not registered with
75  // void_cast_register
76  unsupported_class_version, // type saved with a version # greater than the
77  // one used by the program. This indicates that the program
78  // needs to be rebuilt.
79  multiple_code_instantiation, // code for implementing serialization for some
80  // type has been instantiated in more than one module.
81  output_stream_error // error on input stream
82  } exception_code;
84 
86  exception_code c,
87  const char * e1 = NULL,
88  const char * e2 = NULL
92  virtual BOOST_ARCHIVE_DECL const char * what() const BOOST_NOEXCEPT_OR_NOTHROW ;
93 };
94 
95 }// namespace archive
96 }// namespace boost
97 
98 #include <boost/archive/detail/abi_suffix.hpp> // pops abi_suffix.hpp pragmas
99 
100 #endif //BOOST_ARCHIVE_ARCHIVE_EXCEPTION_HPP
boost::archive::archive_exception::pointer_conflict
@ pointer_conflict
Definition: archive_exception.hpp:62
boost::archive::archive_exception::exception_code
exception_code
Definition: archive_exception.hpp:53
boost::archive::archive_exception::invalid_signature
@ invalid_signature
Definition: archive_exception.hpp:58
config.hpp
boost::archive::archive_exception::unsupported_class_version
@ unsupported_class_version
Definition: archive_exception.hpp:76
boost::archive::archive_exception::incompatible_native_format
@ incompatible_native_format
Definition: archive_exception.hpp:67
boost::archive::archive_exception::multiple_code_instantiation
@ multiple_code_instantiation
Definition: archive_exception.hpp:79
boost
BOOST_MOVE_USE_STANDARD_LIBRARY_MOVE.
boost::archive::archive_exception::unregistered_cast
@ unregistered_cast
Definition: archive_exception.hpp:74
boost::archive::archive_exception::unsupported_version
@ unsupported_version
Definition: archive_exception.hpp:60
boost::archive::archive_exception::other_exception
@ other_exception
Definition: archive_exception.hpp:55
boost::archive::archive_exception::code
exception_code code
Definition: archive_exception.hpp:83
boost::archive::archive_exception::no_exception
@ no_exception
Definition: archive_exception.hpp:54
BOOST_NOEXCEPT
#define BOOST_NOEXCEPT
Definition: suffix.hpp:938
decl.hpp
assert.hpp
boost::archive::archive_exception::array_size_too_short
@ array_size_too_short
Definition: archive_exception.hpp:69
boost::archive::archive_exception::invalid_class_name
@ invalid_class_name
Definition: archive_exception.hpp:71
abi_prefix.hpp
boost::archive::archive_exception::input_stream_error
@ input_stream_error
Definition: archive_exception.hpp:70
BOOST_ARCHIVE_DECL
#define BOOST_ARCHIVE_DECL
Definition: decl.hpp:48
append
ROSCPP_DECL std::string append(const std::string &left, const std::string &right)
boost::archive::archive_exception
Definition: archive_exception.hpp:42
BOOST_SYMBOL_VISIBLE
#define BOOST_SYMBOL_VISIBLE
Definition: clang.hpp:100
boost::archive::archive_exception::unregistered_class
@ unregistered_class
Definition: archive_exception.hpp:56
BOOST_NOEXCEPT_OR_NOTHROW
#define BOOST_NOEXCEPT_OR_NOTHROW
Definition: suffix.hpp:939


sick_visionary_ros
Author(s): SICK AG TechSupport 3D Snapshot
autogenerated on Thu Feb 8 2024 03:36:32