Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds header for string for char[] + string #61

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions include/ear/exceptions.hpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#pragma once
#include <stdexcept>
#include <string>
#include "export.hpp"

namespace ear {
/// thrown if features are used which are not yet implemented
class EAR_EXPORT not_implemented : public std::runtime_error {

Check warning on line 8 in include/ear/exceptions.hpp

View workflow job for this annotation

GitHub Actions / windows-latest shared=true Release

non dll-interface class 'std::runtime_error' used as base for dll-interface class 'ear::not_implemented'
public:
explicit not_implemented(const std::string &what)
: std::runtime_error("not implemented: " + what) {}
Expand All @@ -14,28 +15,28 @@
/// any inputs. This can be caused by an error in the library itself (please
/// report it!) or something going wrong while building the library. This is
/// thrown by ear_assert.
class EAR_EXPORT internal_error : public std::runtime_error {

Check warning on line 18 in include/ear/exceptions.hpp

View workflow job for this annotation

GitHub Actions / windows-latest shared=true Release

non dll-interface class 'std::runtime_error' used as base for dll-interface class 'ear::internal_error'
public:
explicit internal_error(const std::string &what)
: std::runtime_error("internal error: " + what) {}
};

/// thrown if invalid ADM metadata is encountered
class EAR_EXPORT adm_error : public std::invalid_argument {

Check warning on line 25 in include/ear/exceptions.hpp

View workflow job for this annotation

GitHub Actions / windows-latest shared=true Release

non dll-interface class 'std::invalid_argument' used as base for dll-interface class 'ear::adm_error'
public:
explicit adm_error(const std::string &what)
: std::invalid_argument("ADM error: " + what) {}
};

/// thrown if an unknown loudspeaker layout is requested
class EAR_EXPORT unknown_layout : public std::invalid_argument {

Check warning on line 32 in include/ear/exceptions.hpp

View workflow job for this annotation

GitHub Actions / windows-latest shared=true Release

non dll-interface class 'std::invalid_argument' used as base for dll-interface class 'ear::unknown_layout'
public:
explicit unknown_layout(const std::string &what)
: std::invalid_argument("unknown layout: " + what) {}
};

/// thrown if other invariants on parameters are not met
class EAR_EXPORT invalid_argument : public std::invalid_argument {

Check warning on line 39 in include/ear/exceptions.hpp

View workflow job for this annotation

GitHub Actions / windows-latest shared=true Release

non dll-interface class 'std::invalid_argument' used as base for dll-interface class 'ear::invalid_argument'
public:
explicit invalid_argument(const std::string &what)
: std::invalid_argument(what) {}
Expand Down
Loading