private void HandleException()
        {
            jthrowable exception = ExceptionOccurred();

            if (exception != jthrowable.Null)
            {
                throw new JniException(this, exception);
            }
        }
 public JniException(JniEnvironment nativeEnvironment, jthrowable throwable)
 {
     Contract.Requires <ArgumentNullException>(nativeEnvironment != null, "nativeEnvironment");
 }