コード例 #1
0
        public string markAsException(string fragment, string expression, string errorMessage)
        {
            Throwable t = new Throwable(errorMessage);
            t.setStackTrace(stackTraceElements.ToArray());

            Element element = new Element((nu.xom.Element)new TestRig()
                .ProcessFragment(fragment)
                .GetDocument()
                .query("//p")
                .get(0));

            new ThrowableRenderer(new IOUtil()).throwableCaught(new ThrowableCaughtEvent(t, element, expression));

            return element.toXML();
        }
コード例 #2
0
 /// <summary>
 /// Called by the Java Virtual Machine when a thread in this  thread group stops because of an uncaught exception.
 /// </summary>
 public void uncaughtException(Thread t, Throwable e)
 {
 }
コード例 #3
0
ファイル: Exception.cs プロジェクト: PlumpMath/CIL2Java
 public Exception(java.lang.Throwable javaE)
     : base(javaE.getMessage(), javaE.getCause())
 {
     HResult = Result;
 }
コード例 #4
0
	public override Throwable initCause(Throwable arg) {
            return null;
	}
コード例 #5
0
 /// <summary>
 /// Log a message, specifying source class, method, and resource bundle name, with associated Throwable information.
 /// </summary>
 public void logrb(Level level, string sourceClass, string sourceMethod, string bundleName, string msg, Throwable thrown)
 {
 }
コード例 #6
0
 /// <summary>
 /// Log a message, with associated Throwable information.
 /// </summary>
 public void log(Level level, string msg, Throwable thrown)
 {
 }
コード例 #7
0
ファイル: Console.cs プロジェクト: wclwksn/code
        public static void WriteThrowable(object e)
        {
            java.lang.Throwable t = (java.lang.Throwable)(object) e;

            t.printStackTrace();
        }
コード例 #8
0
 public RuntimeException(Throwable cause)
 {
 }
コード例 #9
0
		/// <summary>
		/// Wrap an existing exception in a TransformerException.
		/// </summary>
		public TransformerException(string @message, Throwable @e)
		{
		}
コード例 #10
0
		/// <summary>
		/// Wrap an existing exception in a TransformerException.
		/// </summary>
		public TransformerException(string @message, SourceLocator @locator, Throwable @e)
		{
		}
コード例 #11
0
 public void addSuppressed(Throwable exception)
 {
     throw new RuntimeException("Stub!")
 }
コード例 #12
0
 public Throwable initCause(Throwable cause)
 {
     throw new RuntimeException("Stub!")
 }
コード例 #13
0
 protected Throwable(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)
 {
     throw new RuntimeException("Stub!");
 }
コード例 #14
0
 public Throwable(String message, Throwable cause)
 {
     throw new RuntimeException("Stub!");
 }
コード例 #15
0
 /// <summary>
 /// Called by the Java Virtual Machine when a thread in this  thread group stops because of an uncaught exception.
 /// </summary>
 public void uncaughtException(Thread t, Throwable e)
 {
 }
コード例 #16
0
 public RuntimeException(string message, Throwable cause)
 {
 }
コード例 #17
0
		/// <summary>
		/// Create a new TransformerException wrapping an existing exception.
		/// </summary>
		public TransformerException(Throwable @e)
		{
		}
コード例 #18
0
 protected RuntimeException(string message, Throwable cause, bool enableSuppression, bool writableStackTrace)
 {
 }
コード例 #19
0
		/// <summary>
		/// Initializes the <i>cause</i> of this throwable to the specified value.
		/// </summary>
		public Throwable initCause(Throwable @cause)
		{
			return default(Throwable);
		}
コード例 #20
0
ファイル: BTests.cs プロジェクト: brian-2447/jni4net
 public void TypeTh()
 {
     var i = new Throwable();
     RegistryRecord record = Registry.GetRecord(i);
     Assert.IsNotNull(record);
 }
コード例 #21
0
 /// <summary>
 /// <B>Deprecated.</B> <I>This method is inherently unsafe.  See <A HREF="../../java/lang/Thread.html#stop()"><CODE>stop()</CODE></A>        (with no arguments) for details.  An additional danger of this        method is that it may be used to generate exceptions that the        target thread is unprepared to handle (including checked        exceptions that the thread could not possibly throw, were it        not for this method).        For more information, see         <a href="../../../guide/misc/threadPrimitiveDeprecation.html">Why         are Thread.stop, Thread.suspend and Thread.resume Deprecated?</a>.</I>
 /// </summary>
 public void stop(Throwable obj)
 {
 }
コード例 #22
0
 /// <summary>
 /// Log a message, specifying source class and method, with associated Throwable information.
 /// </summary>
 public void logp(Level level, string sourceClass, string sourceMethod, string msg, Throwable thrown)
 {
 }
コード例 #23
0
 public override Throwable initCause(Throwable arg)
 {
     return(null);
 }
コード例 #24
0
 /// <summary>
 /// Log throwing an exception.
 /// </summary>
 public void throwing(string sourceClass, string sourceMethod, Throwable thrown)
 {
 }
コード例 #25
0
 /// <summary>
 /// Constructs a new runtime exception with the specified detail
 /// message, cause, suppression enabled or disabled, and writable
 /// stack trace enabled or disabled.
 /// </summary>
 /// <param name="message"> the detail message. </param>
 /// <param name="cause"> the cause.  (A {@code null} value is permitted,
 /// and indicates that the cause is nonexistent or unknown.) </param>
 /// <param name="enableSuppression"> whether or not suppression is enabled
 ///                          or disabled </param>
 /// <param name="writableStackTrace"> whether or not the stack trace should
 ///                           be writable
 ///
 /// @since 1.7 </param>
 protected internal RuntimeException(String message, Throwable cause, bool enableSuppression, bool writableStackTrace) : base(message, cause, enableSuppression, writableStackTrace)
 {
 }
コード例 #26
0
 /// <summary>
 /// <B>Deprecated.</B> <I>This method is inherently unsafe.  See <A HREF="../../java/lang/Thread.html#stop()"><CODE>stop()</CODE></A>        (with no arguments) for details.  An additional danger of this        method is that it may be used to generate exceptions that the        target thread is unprepared to handle (including checked        exceptions that the thread could not possibly throw, were it        not for this method).        For more information, see         <a href="../../../guide/misc/threadPrimitiveDeprecation.html">Why         are Thread.stop, Thread.suspend and Thread.resume Deprecated?</a>.</I>
 /// </summary>
 public void stop(Throwable obj)
 {
 }
コード例 #27
0
 /// <summary>
 /// Constructs a new runtime exception with the specified detail message and
 /// cause.  <para>Note that the detail message associated with
 /// {@code cause} is <i>not</i> automatically incorporated in
 /// this runtime exception's detail message.
 ///
 /// </para>
 /// </summary>
 /// <param name="message"> the detail message (which is saved for later retrieval
 ///         by the <seealso cref="#getMessage()"/> method). </param>
 /// <param name="cause"> the cause (which is saved for later retrieval by the
 ///         <seealso cref="#getCause()"/> method).  (A <tt>null</tt> value is
 ///         permitted, and indicates that the cause is nonexistent or
 ///         unknown.)
 /// @since  1.4 </param>
 public RuntimeException(String message, Throwable cause) : base(message, cause)
 {
 }