diff options
author | Anthony Barbier <anthony.barbier@arm.com> | 2017-09-28 12:01:10 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:35:24 +0000 |
commit | f6705ec6ed137233680929e941c674af6baae1dc (patch) | |
tree | 01e042ca01e80cec627cb76b537a3c5e5d65b7b5 /tests/framework/Exceptions.h | |
parent | 349feef33ed931a4b24f34f76482e80428973873 (diff) | |
download | ComputeLibrary-f6705ec6ed137233680929e941c674af6baae1dc.tar.gz |
COMPMID-417 Allow the tests to run even when assets are not present
Change-Id: Ief165b1d583a70cbe35aae93f05ddfe962196323
Reviewed-on: http://mpd-gerrit.cambridge.arm.com/89503
Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Diffstat (limited to 'tests/framework/Exceptions.h')
-rw-r--r-- | tests/framework/Exceptions.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/framework/Exceptions.h b/tests/framework/Exceptions.h index edb0ed92c9..f35c35020c 100644 --- a/tests/framework/Exceptions.h +++ b/tests/framework/Exceptions.h @@ -63,6 +63,17 @@ LogLevel log_level_from_name(const std::string &name); ::std::ostream &operator<<(::std::ostream &stream, LogLevel level); std::string to_string(LogLevel level); +/** Error class for when some external assets are missing */ +class FileNotFound : public std::runtime_error +{ +public: + /** Construct error with message + * + * @param[in] msg Error message + */ + FileNotFound(const std::string &msg); +}; + /** Error class for failures during test execution. */ class TestError : public std::runtime_error { |