Пример #1
0
        public void Throw(Throwable throwable)
        {
            Debug.Assert(throwable != null);

            var result = _throw(_jniEnvWrapper.JniEnvPtr, throwable.ProxyState.NativePtr);
            if (result != 0)
                throw new JvmException($"Unexpected error while throwing exception. Error code: '{result}'.");
        }
 public InvalidPropertiesFormatException(Throwable arg0)
     : base(ProxyCtor.I)
 {
     Instance.CallConstructor("(Ljava/lang/Throwable;)V", arg0);
 }
Пример #3
0
 public void uncaughtException(Thread arg0, Throwable arg1)
 {
     Instance.CallMethod("uncaughtException", "(Ljava/lang/Thread;Ljava/lang/Throwable;)V", arg0, arg1);
 }
Пример #4
0
 public void throwing(String arg0, String arg1, Throwable arg2)
 {
     Instance.CallMethod("throwing", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V", arg0, arg1, arg2);
 }
Пример #5
0
 public void logrb(Level arg0, String arg1, String arg2, ResourceBundle arg3, String arg4, Throwable arg5)
 {
     Instance.CallMethod("logrb", "(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/String;Ljava/util/ResourceBundle;Ljava/lang/String;Ljava/lang/Throwable;)V", arg0, arg1, arg2, arg3, arg4, arg5);
 }
Пример #6
0
 public void logp(Level arg0, String arg1, String arg2, String arg3, Throwable arg4)
 {
     Instance.CallMethod("logp", "(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V", arg0, arg1, arg2, arg3, arg4);
 }
Пример #7
0
 public void logp(Level arg0, String arg1, String arg2, Throwable arg3, Supplier<String> arg4)
 {
     Instance.CallMethod("logp", "(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;Ljava/util/function/Supplier;)V", arg0, arg1, arg2, arg3, arg4);
 }
 public ServiceConfigurationError(String arg0, Throwable arg1)
     : base(ProxyCtor.I)
 {
     Instance.CallConstructor("(Ljava/lang/String;Ljava/lang/Throwable;)V", arg0, arg1);
 }
Пример #9
0
 public CompletionException(String arg0, Throwable arg1)
     : base(ProxyCtor.I)
 {
     Instance.CallConstructor("(Ljava/lang/String;Ljava/lang/Throwable;)V", arg0, arg1);
 }
Пример #10
0
 public CompletionException(Throwable arg0)
     : base(ProxyCtor.I)
 {
     Instance.CallConstructor("(Ljava/lang/Throwable;)V", arg0);
 }
Пример #11
0
 public void setThrown(Throwable arg0)
 {
     Instance.CallMethod("setThrown", "(Ljava/lang/Throwable;)V", arg0);
 }
Пример #12
0
 public Throwable initCause(Throwable arg0)
 {
     return Instance.CallMethod<Throwable>("initCause", "(Ljava/lang/Throwable;)Ljava/lang/Throwable;", arg0);
 }
Пример #13
0
 public void addSuppressed(Throwable arg0)
 {
     Instance.CallMethod("addSuppressed", "(Ljava/lang/Throwable;)V", arg0);
 }
Пример #14
0
 public Throwable(String arg0, Throwable arg1)
 {
     Instance.CallConstructor("(Ljava/lang/String;Ljava/lang/Throwable;)V", arg0, arg1);
 }
Пример #15
0
 public Throwable(Throwable arg0)
 {
     Instance.CallConstructor("(Ljava/lang/Throwable;)V", arg0);
 }
 public InvalidPreferencesFormatException(String arg0, Throwable arg1)
     : base(ProxyCtor.I)
 {
     Instance.CallConstructor("(Ljava/lang/String;Ljava/lang/Throwable;)V", arg0, arg1);
 }
Пример #17
0
 public void log(Level arg0, Throwable arg1, Supplier<String> arg2)
 {
     Instance.CallMethod("log", "(Ljava/util/logging/Level;Ljava/lang/Throwable;Ljava/util/function/Supplier;)V", arg0, arg1, arg2);
 }
Пример #18
0
 public IOError(Throwable arg0)
     : base(ProxyCtor.I)
 {
     Instance.CallConstructor("(Ljava/lang/Throwable;)V", arg0);
 }