summaryrefslogtreecommitdiff
path: root/tools/gnu/classpath/tools/rmi/rmic/templates/Stub_12Method.jav
blob: 9aaf8f5adc0b04b1fff6f24e33b6871eb9c28a1f (plain)
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
  /** @inheritDoc */
  public #return_type #method_name(#argument_list) #throws
  {
    try
      {
        Object result =  ref.invoke(this, met_#method_name,
                   #object_arg_list,
                   #method_hash);
        #return_statement           
      }
    catch (RuntimeException e)
      {
        throw e;
      }
    catch (RemoteException e)
      {
        throw e;
      }
    catch (Exception e)
      {
        UnexpectedException uex = new UnexpectedException(exception_message);
        uex.detail = e;
        throw uex;
      }
  }