Loading...
Searching...
No Matches
error.hpp
Go to the documentation of this file.
#ifndef PROTON_ERROR_HPP
#define PROTON_ERROR_HPP
/*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*
*/
#include "./internal/export.hpp"
#include <stdexcept>
#include <string>
namespace proton {
struct
PN_CPP_CLASS_EXTERN error : public std::runtime_error {
PN_CPP_EXTERN explicit error(const std::string&);
PN_CPP_EXTERN ~error() throw();
};
struct
PN_CPP_CLASS_EXTERN timeout_error : public error {
PN_CPP_EXTERN explicit timeout_error(const std::string&);
PN_CPP_EXTERN ~timeout_error() throw();
};
struct
PN_CPP_CLASS_EXTERN conversion_error : public error {
PN_CPP_EXTERN explicit conversion_error(const std::string&);
PN_CPP_EXTERN ~conversion_error() throw();
};
} // proton
#endif // PROTON_ERROR_HPP
proton::map
A collection of key-value pairs.
Definition map.hpp:69
proton
The main Proton namespace.
Definition annotation_key.hpp:33
proton::conversion_error
An error converting between AMQP and C++ data.
Definition error.hpp:56
proton::conversion_error::conversion_error
conversion_error(const std::string &)
Construct the error with a message.
proton::error
The base Proton error.
Definition error.hpp:40
proton::error::error
error(const std::string &)
Construct the error with a message.
proton::timeout_error
An operation timed out.
Definition error.hpp:48
proton::timeout_error::timeout_error
timeout_error(const std::string &)
Construct the error with a message.