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 }
GLenum GLuint GLenum GLsizei const GLchar * message
void handle_error(JNIEnv *env, rs2_error *error)
Definition: error.cpp:6
const char * rs2_get_error_message(const rs2_error *error)
Definition: rs.cpp:1259


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:47:14