ONE - On-device Neural Engine
Loading...
Searching...
No Matches
nnfw_exceptions.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2025 Samsung Electronics Co., Ltd. All Rights Reserved
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*/
16
17
#ifndef __ONERT_API_PYTHON_NNFW_EXCEPTIONS_H__
18
#define __ONERT_API_PYTHON_NNFW_EXCEPTIONS_H__
19
20
#include <stdexcept>
21
#include <string>
22
23
namespace
onert::api::python
24
{
25
26
// Base for all NNFW errors
27
struct
NnfwError
:
public
std::runtime_error
28
{
29
explicit
NnfwError
(
const
std::string &msg) :
std
::runtime_error(msg) {}
30
};
31
32
struct
NnfwUnexpectedNullError
:
public
NnfwError
33
{
34
using
NnfwError::NnfwError
;
35
};
36
struct
NnfwInvalidStateError
:
public
NnfwError
37
{
38
using
NnfwError::NnfwError
;
39
};
40
struct
NnfwOutOfMemoryError
:
public
NnfwError
41
{
42
using
NnfwError::NnfwError
;
43
};
44
struct
NnfwInsufficientOutputError
:
public
NnfwError
45
{
46
using
NnfwError::NnfwError
;
47
};
48
struct
NnfwDeprecatedApiError
:
public
NnfwError
49
{
50
using
NnfwError::NnfwError
;
51
};
52
53
}
// namespace onert::api::python
54
55
#endif
// __ONERT_API_PYTHON_NNFW_EXCEPTIONS_H__
onert::api::python
Definition
nnfw_api_wrapper.h:32
std
Definition
CircleExporterUtils.h:53
onert::api::python::NnfwDeprecatedApiError
Definition
nnfw_exceptions.h:49
onert::api::python::NnfwError
Definition
nnfw_exceptions.h:28
onert::api::python::NnfwError::NnfwError
NnfwError(const std::string &msg)
Definition
nnfw_exceptions.h:29
onert::api::python::NnfwInsufficientOutputError
Definition
nnfw_exceptions.h:45
onert::api::python::NnfwInvalidStateError
Definition
nnfw_exceptions.h:37
onert::api::python::NnfwOutOfMemoryError
Definition
nnfw_exceptions.h:41
onert::api::python::NnfwUnexpectedNullError
Definition
nnfw_exceptions.h:33
runtime
onert
api
python
include
nnfw_exceptions.h
Generated by
1.9.8