Sha256: 0e764aed2d2dacf1f3d3ff61e84d70b4c55edd327d6210e507c9cc00636d7460

Contents?: true

Size: 1.41 KB

Versions: 119

Compression:

Stored size: 1.41 KB

Contents

/*
 * Javolution - Java(TM) Solution for Real-Time and Embedded Systems
 * Copyright (C) 2006 - Javolution (http://javolution.org/)
 * All rights reserved.
 * 
 * Permission to use, copy, modify, and distribute this software is
 * freely granted, provided that this notice is preserved.
 */
package javolution.context;

/**
 * This class encapsulates errors or exceptions raised during the execution
 * of concurrent threads ({@link ConcurrentException} are raised upon exit of
 * the {@link ConcurrentContext}). 
 * {@link ConcurrentException#getCause} identifies the source of the error.
 *
 * @author  <a href="mailto:jean-marie@dautelle.com">Jean-Marie Dautelle</a>
 * @version 1.0, October 4, 2004
 * @see     ConcurrentContext#exit
 */
public class ConcurrentException extends RuntimeException {

    /**
     * Holds the cause.
     */
    private Throwable _cause;

    /**
     * Constructs a {@link ConcurrentException} caused by the specified
     * error or exception.
     *
     * @param cause the cause of the error or exception.
     */
    ConcurrentException(Throwable cause) {
        _cause = cause;
    }

    /**
     * Returns the original cause of the exception or error.
     *
     * @return the exception or error as it has been raised by the
     *         <code>j2me.lang.Runnable</code>.
     */
    public Throwable getCause() {
        return _cause;
    }

    private static final long serialVersionUID = 1L;
}

Version data entries

119 entries across 119 versions & 1 rubygems

Version Path
rhodes-3.5.1.12 platform/bb/RubyVM/src/javolution/context/ConcurrentException.java
rhodes-3.3.5 platform/bb/RubyVM/src/javolution/context/ConcurrentException.java
rhodes-3.4.2 platform/bb/RubyVM/src/javolution/context/ConcurrentException.java
rhodes-3.3.4 platform/bb/RubyVM/src/javolution/context/ConcurrentException.java
rhodes-3.3.3 platform/bb/RubyVM/src/javolution/context/ConcurrentException.java
rhodes-3.3.3.beta.4 platform/bb/RubyVM/src/javolution/context/ConcurrentException.java
rhodes-3.3.3.beta.3 platform/bb/RubyVM/src/javolution/context/ConcurrentException.java
rhodes-3.3.3.beta.2 platform/bb/RubyVM/src/javolution/context/ConcurrentException.java
rhodes-3.3.3.beta.1 platform/bb/RubyVM/src/javolution/context/ConcurrentException.java
rhodes-3.3.2 platform/bb/RubyVM/src/javolution/context/ConcurrentException.java
rhodes-3.3.2.beta.7 platform/bb/RubyVM/src/javolution/context/ConcurrentException.java
rhodes-3.3.2.beta.6 platform/bb/RubyVM/src/javolution/context/ConcurrentException.java
rhodes-3.3.2.beta.5 platform/bb/RubyVM/src/javolution/context/ConcurrentException.java
rhodes-3.3.2.beta.4 platform/bb/RubyVM/src/javolution/context/ConcurrentException.java
rhodes-3.3.2.beta.3 platform/bb/RubyVM/src/javolution/context/ConcurrentException.java
rhodes-3.3.2.beta.2 platform/bb/RubyVM/src/javolution/context/ConcurrentException.java
rhodes-3.3.2.beta.1 platform/bb/RubyVM/src/javolution/context/ConcurrentException.java
rhodes-3.3.1 platform/bb/RubyVM/src/javolution/context/ConcurrentException.java
rhodes-3.3.0 platform/bb/RubyVM/src/javolution/context/ConcurrentException.java
rhodes-3.3.0.beta.3 platform/bb/RubyVM/src/javolution/context/ConcurrentException.java