Subversion Repository Public Repository

litesoft

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// This Source Code is in the Public Domain per: http://litesoft.org/License.txt
package org.litesoft.GWT.eventbus.client;

import org.litesoft.GWT.eventbus.client.nonpublic.*;
import org.litesoft.GWT.eventbus.client.rpc.*;
import org.litesoft.commonfoundation.issues.*;

public class ExceptionEventPackage extends AbstractNoXtraEventPackage implements ChannelEventPackage
{
    public static final String TYPE = "Exception";

    private static final long serialVersionUID = 1L;

    private Problem mProblem;

    /**
     * @deprecated GWT ONLY
     */
    public ExceptionEventPackage()
    {
    }

    /**
     * Used to retarget an event. Say A calls B calls C. C returns an exception
     * to B. Use this method to return the exception to A and make it appear to
     * be from B.
     */
    public ExceptionEventPackage( String pSourceName, String pTargetName, ExceptionEventPackage pCause )
    {
        this( pSourceName, pTargetName, pCause.getProblem() );
    }

    public ExceptionEventPackage( String pSourceName, String pTargetName, Problem pProblem )
    {
        super( pSourceName, pTargetName, TYPE );
        mProblem = pProblem;
    }

    public Problem getProblem()
    {
        return mProblem;
    }
}

Commits for litesoft/trunk/Java/GWT/OldClient/src/org/litesoft/GWT/eventbus/client/ExceptionEventPackage.java

Diff revisions: vs.
Revision Author Commited Message
943 Diff Diff GeorgeS picture GeorgeS Tue 03 Jun, 2014 04:25:50 +0000

Extracting commonfoundation

49 Diff Diff GeorgeS picture GeorgeS Mon 12 Apr, 2010 02:59:10 +0000

License Text

2 GeorgeS picture GeorgeS Sun 07 Feb, 2010 12:50:58 +0000