ledger-core
ErrorCode.hpp
1 // AUTOGENERATED FILE - DO NOT MODIFY!
2 // This file generated by Djinni from errors.djinni
3 
4 #ifndef DJINNI_GENERATED_ERRORCODE_HPP_JNI_
5 #define DJINNI_GENERATED_ERRORCODE_HPP_JNI_
6 
7 #include "../../api/ErrorCode.hpp"
8 #include "djinni_support.hpp"
9 
10 namespace djinni_generated {
11 
13 public:
15  using JniType = jobject;
16 
17  using Boxed = ErrorCode;
18 
19  static CppType toCpp(JNIEnv* jniEnv, JniType j) { return static_cast<CppType>(::djinni::JniClass<ErrorCode>::get().ordinal(jniEnv, j)); }
20  static ::djinni::LocalRef<JniType> fromCpp(JNIEnv* jniEnv, CppType c) { return ::djinni::JniClass<ErrorCode>::get().create(jniEnv, static_cast<jint>(c)); }
21 
22 private:
23  ErrorCode() : JniEnum("co/ledger/core/ErrorCode") {}
24  friend ::djinni::JniClass<ErrorCode>;
25 };
26 
27 } // namespace djinni_generated
28 #endif //DJINNI_GENERATED_ERRORCODE_HPP_JNI_
Definition: ErrorCode.hpp:12
Definition: djinni_support.hpp:551
Definition: Account.cpp:22
Definition: djinni_support.hpp:223
ErrorCode
Definition: ErrorCode.hpp:20