1 45 package org.exolab.jms.net; 46 47 import java.rmi.RemoteException ; 48 49 import org.exolab.jms.net.proxy.RemoteInvocationException; 50 51 52 58 public class ExceptionServiceImpl implements ExceptionService { 59 60 65 public void throwThrowable() throws Throwable { 66 throw new Throwable ("ExceptionService"); 67 } 68 69 74 public void throwException() throws Exception { 75 throw new Exception ("ExceptionService"); 76 } 77 78 83 public void throwError() throws Error { 84 throw new Error ("ExceptionService"); 85 } 86 87 92 public void throwUndeclaredError() { 93 throw new Error ("ExceptionService"); 94 } 95 96 103 public void throwUndeclaredError2() throws RemoteException { 104 throw new Error ("ExceptionService"); 105 } 106 107 112 public void throwRuntimeException() throws RuntimeException { 113 throw new RuntimeException ("ExceptionService"); 114 } 115 116 121 public void throwUndeclaredRuntimeException() { 122 throw new RuntimeException ("ExceptionService"); 123 } 124 125 132 public void throwUndeclaredRuntimeException2() throws RemoteException { 133 throw new RuntimeException ("ExceptionService"); 134 } 135 136 141 public void throwUndeclaredRemoteInvocationException() { 142 throw new RemoteInvocationException("ExceptionService"); 143 } 144 145 150 public void throwRemoteException() throws RemoteException { 151 throw new RemoteException ("ExceptionService"); 152 } 153 154 } 155 | Popular Tags |