Пример #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
 public Exception(java.lang.Throwable javaE)
     : base(javaE.getMessage(), javaE.getCause())
 {
     HResult = Result;
 }
	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
        public static void WriteThrowable(object e)
        {
            java.lang.Throwable t = (java.lang.Throwable)(object) e;

            t.printStackTrace();
        }
Пример #8
0
 public RuntimeException(Throwable cause)
 {
 }
		/// <summary>
		/// Wrap an existing exception in a TransformerException.
		/// </summary>
		public TransformerException(string @message, Throwable @e)
		{
		}
		/// <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)
 {
 }
		/// <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)
 {
 }
		/// <summary>
		/// Initializes the <i>cause</i> of this throwable to the specified value.
		/// </summary>
		public Throwable initCause(Throwable @cause)
		{
			return default(Throwable);
		}
Пример #20
0
 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)
 {
 }