SeqAn3 3.4.0
The Modern C++ library for sequence analysis.
Loading...
Searching...
No Matches
io/exception.hpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2006-2025 Knut Reinert & Freie Universität Berlin
2// SPDX-FileCopyrightText: 2016-2025 Knut Reinert & MPI für molekulare Genetik
3// SPDX-License-Identifier: BSD-3-Clause
4
9
10#pragma once
11
12#include <ios>
13#include <stdexcept>
14
16
17namespace seqan3
18{
19
20// ----------------------------------------------------------------------------
21// file open exceptions
22// ----------------------------------------------------------------------------
23
32
41
50
54{
55#if SEQAN3_WORKAROUND_GCC_NO_CXX11_ABI
56 // std::ios_base::failure is missing the std::error_code constructor in pre-C++11 ABI
57 // see https://en.cppreference.com/w/cpp/io/ios_base/failure
58 using base_t = std::ios_base::failure;
59 using base_t::base_t;
60#else // ^^^ workaround / no workaround vvv
62 explicit io_error(std::string const & s, std::error_code const & ec = std::io_errc::stream) :
64 {}
65#endif // SEQAN3_WORKAROUND_GCC_NO_CXX11_ABI
66};
67
68// ----------------------------------------------------------------------------
69// parse exceptions
70// ----------------------------------------------------------------------------
71
80
81// ----------------------------------------------------------------------------
82// write exceptions
83// ----------------------------------------------------------------------------
84
93
94} // namespace seqan3
The main SeqAn3 namespace.
Definition aligned_sequence_concept.hpp:26
SeqAn specific customisations in the standard namespace.
Provides platform and dependency checks.
file_open_error(std::string const &s)
Constructor that forwards the exception string.
Definition io/exception.hpp:38
format_error(std::string const &s)
Constructor that forwards the exception string.
Definition io/exception.hpp:90
io_error(std::string const &s, std::error_code const &ec=std::io_errc::stream)
Constructor that forwards the exception string.
Definition io/exception.hpp:62
parse_error(std::string const &s)
Constructor that forwards the exception string.
Definition io/exception.hpp:47
unexpected_end_of_input(std::string const &s)
Constructor that forwards the exception string.
Definition io/exception.hpp:77
unhandled_extension_error(std::string const &s)
Constructor that forwards the exception string.
Definition io/exception.hpp:29
Hide me