Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
src
android
jni
error.cpp
Go to the documentation of this file.
1
// License: Apache 2.0. See LICENSE file in root directory.
2
// Copyright(c) 2019 Intel Corporation. All Rights Reserved.
3
4
#include "
error.h
"
5
6
void
handle_error
(JNIEnv *env,
rs2_error
*
error
){
7
if
(error)
8
{
9
const
char
*
message
=
rs2_get_error_message
(error);
10
env->ThrowNew(env->FindClass(
"java/lang/RuntimeException"
),
message
);
11
}
12
}
message
GLenum GLuint GLenum GLsizei const GLchar * message
Definition:
glad/glad/glad.h:136
rs2_error
Definition:
rs.cpp:139
handle_error
void handle_error(JNIEnv *env, rs2_error *error)
Definition:
error.cpp:6
error.h
rs2_get_error_message
const char * rs2_get_error_message(const rs2_error *error)
Definition:
rs.cpp:1259
unit-test-config.error
def error(args)
Definition:
unit-test-config.py:39
librealsense2
Author(s): Sergey Dorodnicov
, Doron Hirshberg
, Mark Horn
, Reagan Lopez
, Itay Carpis
autogenerated on Mon May 3 2021 02:47:14