Add CPPTRACE_EXPORT tags to exception classes
This commit is contained in:
parent
d8ebfef347
commit
07dea09dfc
@ -312,55 +312,55 @@ namespace cpptrace {
|
|||||||
const char* message() const noexcept override;
|
const char* message() const noexcept override;
|
||||||
};
|
};
|
||||||
|
|
||||||
class logic_error : public exception_with_message {
|
class CPPTRACE_EXPORT logic_error : public exception_with_message {
|
||||||
public:
|
public:
|
||||||
explicit logic_error(std::string&& message_arg) noexcept
|
explicit logic_error(std::string&& message_arg) noexcept
|
||||||
: exception_with_message(std::move(message_arg), 1) {}
|
: exception_with_message(std::move(message_arg), 1) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
class domain_error : public exception_with_message {
|
class CPPTRACE_EXPORT domain_error : public exception_with_message {
|
||||||
public:
|
public:
|
||||||
explicit domain_error(std::string&& message_arg) noexcept
|
explicit domain_error(std::string&& message_arg) noexcept
|
||||||
: exception_with_message(std::move(message_arg), 1) {}
|
: exception_with_message(std::move(message_arg), 1) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
class invalid_argument : public exception_with_message {
|
class CPPTRACE_EXPORT invalid_argument : public exception_with_message {
|
||||||
public:
|
public:
|
||||||
explicit invalid_argument(std::string&& message_arg) noexcept
|
explicit invalid_argument(std::string&& message_arg) noexcept
|
||||||
: exception_with_message(std::move(message_arg), 1) {}
|
: exception_with_message(std::move(message_arg), 1) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
class length_error : public exception_with_message {
|
class CPPTRACE_EXPORT length_error : public exception_with_message {
|
||||||
public:
|
public:
|
||||||
explicit length_error(std::string&& message_arg) noexcept
|
explicit length_error(std::string&& message_arg) noexcept
|
||||||
: exception_with_message(std::move(message_arg), 1) {}
|
: exception_with_message(std::move(message_arg), 1) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
class out_of_range : public exception_with_message {
|
class CPPTRACE_EXPORT out_of_range : public exception_with_message {
|
||||||
public:
|
public:
|
||||||
explicit out_of_range(std::string&& message_arg) noexcept
|
explicit out_of_range(std::string&& message_arg) noexcept
|
||||||
: exception_with_message(std::move(message_arg), 1) {}
|
: exception_with_message(std::move(message_arg), 1) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
class runtime_error : public exception_with_message {
|
class CPPTRACE_EXPORT runtime_error : public exception_with_message {
|
||||||
public:
|
public:
|
||||||
explicit runtime_error(std::string&& message_arg) noexcept
|
explicit runtime_error(std::string&& message_arg) noexcept
|
||||||
: exception_with_message(std::move(message_arg), 1) {}
|
: exception_with_message(std::move(message_arg), 1) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
class range_error : public exception_with_message {
|
class CPPTRACE_EXPORT range_error : public exception_with_message {
|
||||||
public:
|
public:
|
||||||
explicit range_error(std::string&& message_arg) noexcept
|
explicit range_error(std::string&& message_arg) noexcept
|
||||||
: exception_with_message(std::move(message_arg), 1) {}
|
: exception_with_message(std::move(message_arg), 1) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
class overflow_error : public exception_with_message {
|
class CPPTRACE_EXPORT overflow_error : public exception_with_message {
|
||||||
public:
|
public:
|
||||||
explicit overflow_error(std::string&& message_arg) noexcept
|
explicit overflow_error(std::string&& message_arg) noexcept
|
||||||
: exception_with_message(std::move(message_arg), 1) {}
|
: exception_with_message(std::move(message_arg), 1) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
class underflow_error : public exception_with_message {
|
class CPPTRACE_EXPORT underflow_error : public exception_with_message {
|
||||||
public:
|
public:
|
||||||
explicit underflow_error(std::string&& message_arg) noexcept
|
explicit underflow_error(std::string&& message_arg) noexcept
|
||||||
: exception_with_message(std::move(message_arg), 1) {}
|
: exception_with_message(std::move(message_arg), 1) {}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user