litesoft
@ 947
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://unlicense.org 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; } } |