Skip to content

Commit ced1206

Browse files
authored
[onert] Remove naming redundancy from runtime exceptions (#16257)
This commit removes redundancy from the runtime base exception by renaming `onert::OnertException` to `onert::Exception`. ONE-DCO-1.0-Signed-off-by: Arkadiusz Bokowy <a.bokowy@samsung.com>
1 parent 1808889 commit ced1206

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

runtime/onert/core/include/util/Exceptions.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,23 +22,23 @@
2222
namespace onert
2323
{
2424

25-
class OnertException : public std::exception
25+
class Exception : public std::exception
2626
{
2727
public:
28-
OnertException(const std::string &msg) : _msg{msg} {}
29-
OnertException(const std::string &tag, const std::string &msg) : _msg{tag + " : " + msg} {}
28+
Exception(const std::string &msg) : _msg{msg} {}
29+
Exception(const std::string &tag, const std::string &msg) : _msg{tag + " : " + msg} {}
3030

3131
const char *what() const noexcept override { return _msg.c_str(); }
3232

3333
private:
3434
std::string _msg;
3535
};
3636

37-
class InsufficientBufferSizeException : public OnertException
37+
class InsufficientBufferSizeException : public Exception
3838
{
3939
public:
4040
InsufficientBufferSizeException(const std::string &msg)
41-
: OnertException{"InsufficientBufferSize", msg}
41+
: Exception{"Insufficient buffer size", msg}
4242
{
4343
}
4444
};

0 commit comments

Comments
 (0)